Write a program that prompts for the number of rooms in a house. Use the input, n, to declare an array of rectangles dynamically. In a loop, input the dimensions for the n rooms, and then output the total area of the house. Scan the array to identify the room with the largest perimeter, and output its dimensions.
This program prompts the user for a number of rooms in a house.
creates dynamically an array of rectangles to hold the dimensions of each room.
calculates and output the total area of the house
identifies the room with the largest perimeter and output it's dimensions.
the main file to use is:
Recently Asked Questions
- What would you do if an employer asked you an interview question that you knew was illegal? Why? What would you do if your employer asked you to ask job
- Please refer to the attachment to answer this question. This question was created from BSBMGT502_Assessment Task 1_V 2.0.docx.
- How would the routing protocols discussed help in the monitoring of passing traffic over the corporate network and the Internet under safe and secure