Program to Find the Room with the Largest Perimeter
Not what you're looking for?
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.
Specifications:
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:
#include "d_rect.h"
Purchase this Solution
Solution Summary
C++ program attached takes number and size of rooms as input and finds the total area of the house as well as the room with the largest perimeter. Program output also attached in Word.
Purchase this Solution
Free BrainMass Quizzes
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Javscript Basics
Quiz on basics of javascript programming language.
C# variables and classes
This quiz contains questions about C# classes and variables.