Question: 2 . Write a C + + program that does the following: a . Create a C + + file with the name problem 2

2.Write a C++ program that does the following:
a.Create a C++ file with the name problem2.cpp.
b.Declare two variables to store the width and height of a letter-size (8.5 x 11 inches) sheet of paper.
c.Compute and print the area (width times height) of the sheet of paper.
d.Compute and print the perimeter (two times width plus two times height) of the sheet of paper.
Sample run of the program:
The area of a letter-size sheet of paper is 93.5
The perimeter of a letter-size sheet of paper is 39

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!