Get the length and width of a rectangular field. Calculate the area and perimeter and display it. Length 52.5 and width 18.6
Sue sells day old chicks after they hatch from eggs. She buys the eggs at a fixed cost of 11c per egg. She determined that she spends R1.10 on electricity and other costs per egg to hatch it. she needs a program to calculate the sales price of the chicks. she would like to make 15% profit per chick. Number of chicks 5 .The program must accept the number of chicks that a client wants and then calculate and display the sales price.
a book store needs to calculate the price of an order from the book price and the number of books that were ordered .Add tax 15 % and a shipping charge of R 12.50 per book. The tax is calculated on the sum of the total book price and the shipping price. Book price R502.50 and number of books 3 .Display the order price
Answers><span itemprop="name">Programming & Computer Science</span>>Python
Write a Python program that gets a number using keyboard input. (Remember to use input for Python 3 but raw_input for Python 2.)
If the number is positive, the program should call countdown. If the number is negative, the program should call countup. Choose for yourself which function to call (countdown or countup) for input of zero.
Provide the following.
The difference between the representation of a decision structure and a loop in a flowchart.
Create a class named as Recruitment which is derived from two base classes named as
Basic qualification and interview. Basic qualification contains the Name, marks in last
qualification, Interview class contains the marks obtained in interview. Recruitment class
will display the message as recruited or not recruited. Criteria for recruitment is if the
marks in last qualification is more than 80 and interview marks are greater than equal to 6
out of 10 for interview marks. Make sure that negative marks are not allowed.
Teacher has prepared the result of a class containing n number of students. He wants to
give the award to 3 toppers of the class. Display the Result for 3 toppers as reflected as percentage
form in floating type data.
You
are required to design a software for a company to manage its employees. Given the following requirements:
There are different departments in the company, each department has a name which is unique. Within the department
there are faculty members each having a name, cnic, qualification and salary.
Each department also has staff belonging to it, information to be kept about is their name, cnic, hours worked and hourly rate
Create a class
entertainment
consisting of the following data members:
•Title
•Air_Date i.e. Release Date
•Genre
•Type (i.e. Movie, TV Show)
•Runtime
Country
•Actors
Rating