Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ You want to use roll-wallpaper to cover the walls of a room. Consider the following input: - room dimensions: length = width = 14ft;

C++ You want to use roll-wallpaper to cover the walls of a room. Consider the following input: - room dimensions: length = width = 14ft; height = 8ft; - standard wallpaper roll dimensions: rollLength = 33ft; rollWidth = 21in; Calculate the number of rolls required.

Hint: - use : 'int'variables; - prompt the user and get the above three room dimensions in ft; - for calculations, change the above room dimensions to inches; - calculate number of strips you can get from a roll, based on the room height; - calculate room perimeter and get total strips required; - calculate number of rolls required and display it. Note: for the given dimensions, did you get 8 rolls ?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Statistics Learning From Data

Authors: Roxy Peck

1st Edition

495553263, 978-1285966083, 1285966082, 978-0495553267

More Books

Students also viewed these Programming questions