Question
Create a pseudocode that will let the user choose an application to perform from a set of Menu items. MENU: [1] Determine Prime or Composite
- Create a pseudocode that will let the user choose an application to perform from a set of Menu items.
MENU:
[1] Determine Prime or Composite Number
[2] Reverse the order of digits
[3] Determine the Largest and Smallest
[4] QUIT
Choice:
If the user chooses a number, the corresponding application will be performed. The program will only terminate if the user chooses 4 or any number not in the choices.
If the user chooses:
Determine Prime or Composite
The program will ask the user for a number and the program will output if the input number is a Prime Number or a Composite Number.
Example: Please Input a number: 11
The number is a prime number
Reverse the order of Digits
The program will ask the user for a 5-digit number (Include range checking) and the program must output the reverse order of the digits of the inputted number
Example: Input a Number: 56452
Reverse Order: 25465
Determine the Largest and Smallest
The program will ask the user for Ten numbers and the program must output the largest smallest number from the inputted numbers.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started