logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

area of a rectangle is the rectangle's length times its width.  Write a program that asks for the length and width of two rectangles

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Programming Assignment for Chapter 4

Chapter 4 Assignment   (25 points)

View the instructions for this assignment below:

Create a folder named “YourLastname_YourFirstname_Chapter4Assignment”, where “YourLastname” is your actual last name and “YourFirstname” is your actual first name.  When assignment is completed, compress (zip – DO NOT USE rar [Roshal Archive]) the folder containing your file(s), then upload the compressed “YourLastname_YourFirstname_Chapter4Assignment” folder in the dropbox for grading.

In MSWindows, to compress/zip a folder, right click folder and below the middle of the dropdown menu, select “Send to” and in the dropdown submenu, select “Compressed (zipped) folder”.

 Assignment:

The area of a rectangle is the rectangle's length times its width.  Write a program that asks for the length and width of two rectangles.  The program should tell the user which rectangle has the greater area or if the areas are the same.

The program should be run three (3) times with three (3) sets of data.

Files to be submitted:

 source.cpp which is the program source code

 image1.jpg which is a screen image of run 1

 image2.jpg which is a screen image of run 2

 image3.jpg which is a screen image of run 3

For example a run might look like this:

Rectangle 1: length:20 width:10 area:200

Rectangle 2: length:5 width:30 area:150

Area of Rectangle 1 is greater than Area of Rectangle 2.

 

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

509 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

893 Answers

Hire Me
expert
Husnain SaeedComputer science

939 Answers

Hire Me
expert
Atharva PatilComputer science

587 Answers

Hire Me