Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Proficiency with Microsoft Word, Excel, PowerPoint

Answered: 1 week ago

Question

Experience with SharePoint and/or Microsoft Project desirable

Answered: 1 week ago