Exercise 1: Using Lab 2.2 as an example, develop a program that will deter-mine the area and perimeter of a rectangle. The length and width can begiven as constants. (LENGTH=8 WIDTH=3)Exercise 2: Compile and run your program. Continue to work on it until youget the following output. the area of the rectangle is 24 The perimeter of the rectangle is 22.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 21PE
icon
Related questions
Question

Exercise 1: Using Lab 2.2 as an example, develop a program that will deter-
mine the area and perimeter of a rectangle. The length and width can be
given as constants. (LENGTH=8 WIDTH=3)
Exercise 2: Compile and run your program. Continue to work on it until you
get the following output.

the area of the rectangle is 24

The perimeter of the rectangle is 22.

 

AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning