Question
I need to make a menu driven program in C Programming but I'm having trouble. The program allows a user to enter five numbers and
I need to make a menu driven program in C Programming but I'm having trouble. The program allows a user to enter five numbers and then asks the user to select a choice from a menu. The menu should offer following options
1. Display the smallest number entered
2. Display the largest number entered
3. Display the sum of the five numbers entered
4. Display the average of the five numbers entered
5. Exit
You must use a "switch" statement in your code to determine what action to take. Provide an error message if an invalid choice is entered. Run the program five times, once with each option and once with an invalid option. Each run is to use the following set of data (but your program needs to work with any five numbers entered by the user): 18, 21, 17, 44, 9.
I want to use this in microsoft visual studio and please provide screenshots
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