Calculating Area
From CompSciWiki
Back to the Program-A-Day homepage
ProblemIt's time to replace the carpet in your living room, but how much will it cost? The carpet you want costs $5 per square foot plus an installation fee of $500. Write a program that accepts as input the length and width (as integers) of a room. Calculate the total cost of carpeting by multiplying the square footage by the price per square foot, plus installation. Your program will print the total square footage and the total cost. |
SideSectionTitle
An image or By Students section | |
---|---|---|
Solution | ||
CodeSolutionCode goes here. Please DO NOT put your code in <pre> tags! |