Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab Assignment Requirements Write a program in a cpp file called roomInformation_LastNameFirstName.cpp that determines the area of the room and the number of boxes; it

image text in transcribed

Lab Assignment Requirements

Write a program in a cpp file calledroomInformation_LastNameFirstName.cpp that determines the area of the room and the number of boxes; it will take to cover the rooms floor. Each box of tile will only cover 15.5 square feet. The program should prompt the user to input the following information: room name, length of the room, and the width of the room. The program then outputs the inputs (the name of the room, length of the room, and width of the room), area of the room, and the number of boxes of tiles needed.

Your program must contain at least two functions: one called getData to get the user input and another one called calculateRoomInformation to determine and return both values (area of the room and the number of boxes) needed for the project.

Hint: Use Pass by References

No global variable (-5 pts if you do)

Mailings View AaBbCcD Normai No Spacing Lab Assignment Requirements Write a program in a cpp file called roominformation LastNameFirstName.cpp that determines the area of the room and the number of boxes; it will take to cover the room's floor. Each box of tile will only cover 15.5 square feet. The program should prompt the user to input the following information: room name, length of the room, a the width of the room. The program then outputs the inputs (the name of the room, length of the room, and width of the room), area of the room, and the number of boxes of tiles needed. Your program must contain at least two functions: one called getData to get the user input and another one called calculateRoominformation to determine and return both values (area of the room and the number of boxes) needed for the project Hint: Use Pass by References o global variable (-5 pts if you do) (You can test other inputs too) For example: Enter the roon nane: Living Roon Enter the length, and the width: 15 15 To cover the Living Roon with a length = 15 and a width-15 that has an area of 225 will take 14.52 hoxes. ould you like to enter nore roon and infornations (/ND:Y Enter the roon nane: Kitchen Enter the length, and the width: 15 8 To cover the Kitchen with a length-15 and a width hat has an area of 120 will take 7.74 boxes. ould you like to enter nore roon and informations ANN MacBook Air

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_2

Step: 3

blur-text-image_3

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions