Question: Write a C-shell script that asks the users for 10 numbers and stores them in an array. Then your script should present a menu to

Write a C-shell script that asks the users for 10 numbers and stores them in an array. Then your script should present a menu to the user as follows:

(1) Press 1 for sum of all numbers

(2) Press 2 for highest number

(3) Press 3 for the lowest number

(4) Press 4 for the average of all numbers

(5) Press 5 to exit the script

For each option pressed by the user, do what the option states with the numbers in the array and print out the result. The user should be presented back with the menu after every option unless option 5 is chosen to exit. Make sure to clear the screen after showing each option (you can sleep for a certain time or press another key to take you back to the menu).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!