SThis program allows the user to choose various geometry caleulations from a menu. elif choice = TRIANGLE_PERIMETER CHOICE: Scall the triangle perimeter funetion triangle _perimeter () print () elif choice QUIT_CHOICE: print ('Exiting the program) else: #Problem statement SAlgorithm #Imports print ('Error: Invalid selection!11') The main function definition. def main () : *Choice variable controls the loop tand holds the user's menu choice. Task #1 the display menu function displays a menu. #The display _menu function displays a menu. choice 0 Task #2 define void functions. *Named constanta for the menu choices CIRCLE_AREA_CHOICE 1 RECTANGLE_AREA_CHOICE = 2 TRIANGLE AREA CHOICE = 3 CIRCLE_CIRCUMFERENCE_CHOICE = 4 RECTANGLE_PERIMETER_CHOICE = 5 TRIANGLE_PERIMETER_CHOICE -6 QUIT CHOICE = 7 #1) circle_area function #2) rectangle_area function 43) triangle_area function #4) cirele_eireumference funetion while (choice != QUIT_CHOICE) : Task #1 display the menu. tcall the display_menu function #5) rectangle perimeter funetion Get the user's choice. choice = int (input ('Enter your choice: ')) #6) triangle perimeter function Task 13 function calls. #Perform the user selected action. if choice = CIRCLE AREA_CHOICE: tcall the cirele_area funetion eirele area () print () elif choice == RECTANGLE_AREA_CHOICE: tcall the rectangle_area function rectangle_area () print () elif choice = TRIANGLE_AREA_CHOICE: tcall the triangle_area funetion triangle_area () print () elif choice == CIRCLE_CIRCUMFERENCE_CHOICE: Scall the eirele_circumference funetion circle_circumference () print () elif choice == RECTANGLE_PERIMETER_CHOICE: tcall the rectangle_perimeter function rectangle perimeter () print () Task 14 define value-returning funetions. +call the main funetion. main ()
SThis program allows the user to choose various geometry caleulations from a menu. elif choice = TRIANGLE_PERIMETER CHOICE: Scall the triangle perimeter funetion triangle _perimeter () print () elif choice QUIT_CHOICE: print ('Exiting the program) else: #Problem statement SAlgorithm #Imports print ('Error: Invalid selection!11') The main function definition. def main () : *Choice variable controls the loop tand holds the user's menu choice. Task #1 the display menu function displays a menu. #The display _menu function displays a menu. choice 0 Task #2 define void functions. *Named constanta for the menu choices CIRCLE_AREA_CHOICE 1 RECTANGLE_AREA_CHOICE = 2 TRIANGLE AREA CHOICE = 3 CIRCLE_CIRCUMFERENCE_CHOICE = 4 RECTANGLE_PERIMETER_CHOICE = 5 TRIANGLE_PERIMETER_CHOICE -6 QUIT CHOICE = 7 #1) circle_area function #2) rectangle_area function 43) triangle_area function #4) cirele_eireumference funetion while (choice != QUIT_CHOICE) : Task #1 display the menu. tcall the display_menu function #5) rectangle perimeter funetion Get the user's choice. choice = int (input ('Enter your choice: ')) #6) triangle perimeter function Task 13 function calls. #Perform the user selected action. if choice = CIRCLE AREA_CHOICE: tcall the cirele_area funetion eirele area () print () elif choice == RECTANGLE_AREA_CHOICE: tcall the rectangle_area function rectangle_area () print () elif choice = TRIANGLE_AREA_CHOICE: tcall the triangle_area funetion triangle_area () print () elif choice == CIRCLE_CIRCUMFERENCE_CHOICE: Scall the eirele_circumference funetion circle_circumference () print () elif choice == RECTANGLE_PERIMETER_CHOICE: tcall the rectangle_perimeter function rectangle perimeter () print () Task 14 define value-returning funetions. +call the main funetion. main ()
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 7PE
Related questions
Question
100%
The Instructions, Question and Source Code needed are in the photos.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 9 images
Knowledge Booster
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.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr