Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program to figure out how many boxes of flooring materials are needed The user will enter the length and width (in feet)

Write a C++ program to figure out how many boxes of flooring materials are needed The user will enter the length and width (in feet) of the floor along with what percent extra (overage) to order You always want a little more material than you think. For example, if you install tile on an angle, you waste more than if they are not on an angle. Output the number of boxes (rounded to a whole number) and the cost Each box of materials cost $21.95 and contains 40 square feet of material For example, if the dimensions are 10.5 and 12.0 feet with a 15% overage The area of the floor is 126.0 square feet 15% overage is another 18.9 square feet That is a total of 144.9 square feet which is 3.6225 boxes 3.6225 rounded is 4 boxes (because 3.6225 is closer to 4 than 3) 4 boxes will cost $87.8

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions