Question: Read the notes very carefully! Develop a flowchart and then write a menu-driven C++ program to solve the following problem. Upon execution of the program,
Read the notes very carefully! Develop a flowchart and then write a menu-driven C++ program to solve the following problem. Upon execution of the program, the menu will be displayed, properly centered as shown below. You will be using Selection Constructs and the Looping Constructs for this assignment. Help Arithmetic Relational Logical Quit Once the menu is displayed, the user is prompted for a menu selection. A wrong menu option is flagged as an error and the menu is displayed again. H or h (for Help) will briefly explain the problem being solved and the purpose of each menu options. Once the user strikes a key, the menu will appear again. R or r (for Relational) will prompt the user for two integer numbers followed by a relational operation to be performed according to the following convention. If the user inputs 1 for the operation, the less than (-) will be performed.If the user inputs 2, the great Any other number should be flagged as an error and the user is prompted again for the operation. At no time the program should be terminated. You will decide the output format to be displayed. Once the user viewed the results, striking a key will display the menu and the user is prompted again for a men selection er than or equal (>-) operation will be performed. A or a (for Arithmetic) will prompt the user for two integer numbers followed by an arithmetic operation to be performed according to the following convention. If the user inputs 1 for the operation, th multiplication will be performed. If the user inputs 2, a subtraction will be performed. Any other number rogram should be flagged as an error and the user is prompted again for the operation. At no time the p should be terminated. You will decide the output format to be displayed. Once the user viewed the results, striking a key will display the menu and the user is prompted again for a menu selection. L or I (for Logical) will prompt the user for two integer numbers followed by a logical operation to be performed according to the following convention. If the user inputs 1 for the operation, the logical AND will be performed between the two integer numbers. If the user inputs 2, the logical OR will be negation (1) will be performed between the two integer numbers. If the user inputs 3, the logical performed on the second integer number. Any other number should be flagged as an error and the user is prompted again for the operation. At no time the program should be terminated. You will decide the output format to be displayed. Once th the user is prompted again for a menu selection. e user viewed the results, striking a key will display the menu and Q or q (for Quit) will clear the screen and terminate the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
