Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions: Write a C+t program that calculates the cost of painting a room, assuming the room is rectangular and has four full walls and 9-foot
Instructions: Write a C+t program that calculates the cost of painting a room, assuming the room is rectangular and has four full walls and 9-foot ceilings, the length of the room is 30 feet, and the width of the room is 16 foet. The price of the job is $6 per square foot. Sample program run Cost of job for 30 by 16 roon is $4968 Reguirements: 1. Program Description: your program must have a comment at the top briefly describing what the program does. Usually, one sentence is enough. 2. Course coding conventions: organizations use coding conventions to ensure consistency in their programs and facitate code maintenance, in this course, we will start using the lollowing. a. Variable names: une camnl canes do not use underscore. Exampie: totalCost instead of total cost. b. Constant names: use all uppercase; use undernoore to separate words. Example: MAX_WDTH c. References: Naming Comutikest and Grading_Crenia 1. Program Description. 10\%\% 2. Following coutse coding conventions: 10% 3. Accuracy of results. 80\% thetas 1. You may only uie materal covitied on this doune so tac i e no loops. fecienich functions, ote 2. Proginms with wniak eitoss wit net be accestes. Elriali it at
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started