The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Lab 6.3: Function with Return
Here is the problem specification:
A painting company has determined that for every 415 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges $18.00 per hour for labor. Write a modular program that allows the user to enter the number of rooms that are to be painted and the price of the paint per gallon. It should also ask for the square feet of wall space in each room. It should then display the following data:
Input validation: Do not accept a value less than 1 for the number of rooms. Do not accept a value less than $10.00 for the price of paint. Do not accept a negative value for square footage of wall space.Â
Sample run:
Enter the price of the paint, per gallon: 10 Enter the number of rooms to be painted: 2 Room 1: Enter the area of wall space in square feet: 30 Room 2: Enter the area of wall space in square feet: 50 ESTIMATED CHARGES ------------------ Gallons of paint: 1 Hours of labor : 1.54 Price per gallon: $10.00 Paint cost: $10.00 Total labor: $27.76 Total charges: $37.76
Requirements:
Â
example included.
Â
Kevin Fong, Rubul Grewal, Jonathan Garcia, Joseph FernandesLab 4.2: Working with ifA teacher wants a program that allows a student to enter the amount of money a customer owes andthe amount of money the customer paid. The program should calculate and display the amount ofchange, as well as how many dollars, quarters, dimes, nickels, and pennies to return to the customer.Display an appropriate message when the amount paid is less than the amount owed.
Kevin Fong, Rubul Grewal, Jonathan Garcia, Joseph FernandesLab 4.4: Logical OperatorsWrite a program that asks for the names of three runners and the Tme it took each of them to ±nish a race. ²he programshould display who came in ±rst, second, and third place.Input ValidaTon: Only accept posiTve numbers for the Tmes.
Attachments:
-----------