Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Problem: The program will determine the gross wages of each employee type, salaried and hourly, and output the total gross wages to be paid for each employee type.


Prompt the user to enter the number of employee wages to be calculated.

1.The program will end when the data for all the employees has been entered.


2. For each employee, indicate if the employee is salaried or paid hourly.


3. Define and implement functions for the following:

a) If the employee is salaried, enter the annual salary. The gross for that employee will be determined by dividing the annual salary by 24. Add the result to the total salaried wage. b) If the employee is paid hourly, enter hours worked (40 ≥ hours ≥ 0) and rate per hour. The gross for that employee is determined by multiplying hours worked by rate per hour. Add the result to the total hourly wages.


4. After performing the calculations for each employee, display the total wages for salaried employees, total wages for hourly employees, and total gross wages.


Prompt the user to enter the number of employee wages to be calculated. The program will end when the data for all the employees has been entered.


For each employee, indicate if the employee is salaried or paid hourly


- If the employee is salaried, enter the annual salary. The gross for that employee will be determined by dividing the annual salary by 24. Add the result to the total salaried wage.


-If the employee is paid hourly, enter hours worked (40 ≥ hours ≥ 0) and rate per hour. The gross for that employee is determined by multiplying hours worked by rate per hour. Add the result to the total hourly wages.


-After performing the calculations for each employee, display the total wages for salaried employees, total wages for hourly employees, and total gross wages.


Write a function called maximum() that accepts three integer

numbers as parameters. The maximum() that returns maximum value

of three arguments that are passed to the function when it is

called. Assume that all three arguments will be of the same data

type.


Create a method named check_angles. The sum of a triangle's three angles should return True if the sum is equal to 180, and False otherwise. The method should print whether the angles belong to a triangle or not.

11.1 Write methods to verify if the triangle is an acute triangle or obtuse triangle.

11.2 Create an instance of the triangle class and call all the defined methods.

11.3 Create three child classes of triangle class - isosceles_triangle, right_triangle and equilateral_triangle.

11.4 Define methods which check for their properties.


Create an empty dictionary called Car_0 . Then fill the dictionary with Keys : color , speed , X_position and Y_position.

car_0 = {'x_position': 10, 'y_position': 72, 'speed': 'medium'} .

a) If the speed is slow the coordinates of the X_pos get incremented by 2.

b) If the speed is Medium the coordinates of the X_pos gets incremented by 9

c) Now if the speed is Fast the coordinates of the X_pos gets incremented by 22.

Print the modified dictionary.


Create a simple Card game in which there are 8 cards which are randomly chosen from a deck. The first card is shown face up. The game asks the player to predict whether the next card in the selection will have a higher or lower value than the currently showing card.

For example, say the card that’s shown is a 3. The player chooses “higher,” and the next card is shown. If that card has a higher value, the player is correct. In this example, if the player had chosen “lower,” they would have been incorrect. If the player guesses correctly, they get 20 points. If they choose incorrectly, they lose 15 points. If the next card to be turned over has the same value as the previous card, the player is incorrect.


Consider an ongoing test cricket series. Following are the names of the players and their scores in the test1 and 2.

Test Match 1 :

Dhoni : 56 , Balaji : 94

Test Match 2 :

Balaji : 80 , Dravid : 105

Calculate the highest number of runs scored by an individual cricketer in both of the matches. Create a python function Max_Score (M) that reads a dictionary M that recognizes the player with the highest total score. This function will return ( Top player , Total Score ) . You can consider the Top player as String who is the highest scorer and Top score as Integer .

Input : Max_Score({‘test1’:{‘Dhoni’:56, ‘Balaji : 85}, ‘test2’:{‘Dhoni’ 87, ‘Balaji’’:200}}) Output : (‘Balaji ‘ , 200)


Write a Python program to demonstrate Polymorphism.

1. Class Vehicle with a parameterized function Fare, that takes input value as fare and

returns it to calling Objects.

2. Create five separate variables Bus, Car, Train, Truck and Ship that call the Fare

function.

3. Use a third variable TotalFare to store the sum of fare for each Vehicle Type. 4. Print the TotalFare.

Write a Python program to demonstrate multiple inheritance.

1. Employee class has 3 data members EmployeeIDGender (String), Salary and

PerformanceRating(Out of 5of type int. It has a get() function to get these details from

the user.

2. JoiningDetail class has a data member DateOfJoining of type Date and a function

getDoJ to get the Date of joining of employees.

3. Information Class uses the marks from Employee class and the DateOfJoining date

from the JoiningDetail class to calculate the top 3 Employees based on their Ratings and then Display, using readData, all the details on these employees in Ascending order of their Date Of Joining.


A theatre sells seats for shows and needs a system to keep track of the seats they have sold tickets for. Define a class for a type called ShowTicket. The class should contain private member variables for the row, seat number and whether a ticket has been sold or not. Your class should include the following member functions: • a default constructor that initialises the row and seat number to 0 and the sold status to false • an overloaded constructor which accepts as arguments the row and seat number and sets the sold status to false • a member function to check if the ticket has been sold • a member function to update the ticket status to sold • a member function to print the row, seat number and sold status • a destructor. Embed your class definition in a test program which creates some ShowTicket objects, set some tickets as sold, and prints each of them out.


LATEST TUTORIALS
APPROVED BY CLIENTS