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: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 1 Day Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
A remodeling company needs a program to determine the cost of painting a room. Write a C++ program that lets the user enter the length and width of a room in feet as integers, and then calculates the total square footage of the room, the number of cans of paint rounded to the next whole number, and the cost of the paint. The height of the room is 8 feet, and the price of a can of paint is 12.99. A one-gallon can of paint covers 250 square feet. You do not need to factor in the area for doors and windows, but include the ceiling. There are a number of ways to solve this problem. You may want to check the description for the ceil and floor functions in Display 4.2. The program should loop until the user enters 0 for length. Use the pretest while structure as you did in Project Two. The loop structure should be part of the main function.
Attachments:
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly