Question
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
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