Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question

C++

Assignment
Write a program that displays a menu with shape options, for example:
1-) Triangle
2-) Rectangle
3-) Diamond
Your menu should contain 5 shapes. Have the user select a shape by typing the number corresponding to
the shape. Have your program ask the user for the dimension values for that shape, then display the AREA
for that shape.
Sample Run
1-) Triangle
2-) Rectangle
3-) Diamond
Enter your selection: 2
Enter width: 10
Enter height: 10
The area for your Rectangle is: 100
Pay close attention to the innovation. You can innovate in many ways, remember what we learned in
previous weeks about displaying TEXT ART! Use that to display the shapes, the menu, the results...etc.
Transcribed Image Text:Assignment Write a program that displays a menu with shape options, for example: 1-) Triangle 2-) Rectangle 3-) Diamond Your menu should contain 5 shapes. Have the user select a shape by typing the number corresponding to the shape. Have your program ask the user for the dimension values for that shape, then display the AREA for that shape. Sample Run 1-) Triangle 2-) Rectangle 3-) Diamond Enter your selection: 2 Enter width: 10 Enter height: 10 The area for your Rectangle is: 100 Pay close attention to the innovation. You can innovate in many ways, remember what we learned in previous weeks about displaying TEXT ART! Use that to display the shapes, the menu, the results...etc.
Expert Solution
steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT