Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Array Menu With C++ using functions Array Menu Write a program that displays the following menu: 0. Create array 1. Find high, low, sum average

Array Menu

With C++ using functions

image text in transcribedimage text in transcribedimage text in transcribed

Array Menu Write a program that displays the following menu: 0. Create array 1. Find high, low, sum average 2. Add a number to the end 3. Find the index of a number 4. Insert number at index 5. Remove number at index 6. Remove number 7. Quit Functionality We suggest that you develop your program incrementally. Meaning one menu tem at a time. If it works correctly, add another one and so on. Create an array of integers with size 100. Use a variable to store the number of filled elements (not all 100 elements will hold user data). 0. Create array: Asks user how many numbers to fill (the length of the partially filled array), with random numbers 0-9. Validate the user entered number (1-99). Fill the array with random numbers 0-9. The number of elements should be equal to the value specified by the user 1. Calculates and prints the highest value, lowest, sum, and average of the partially filled array 2. Add a number to the end asks user to enter a number and adds it to the end of the partially filled array. 3. Find index of a number: Displays the index of a number if it exists otherwise a message saying that the number is not found. 4. Insert number at index: Ask the user to enter a number and the index to insert it in. Display error message if the specified index is outside the current partially filled array size. 5. Remove number: Ask the user to enter a number, remove it if it exists otherwise display a message to indicate that it does not exist. 6 Remove number at index: Ask the user to enter the index. Remove the number at the specified index or display error message if the specified index is outside the current partially filled array size Example: 0. Create array 1. Find high, low, sum average 2. Add a number to the end 3. Find the index of a number 4. Insert number at index 5. Remove number 6. Remove number at index 7. Quit

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

what are 10 attributes of indicators for an agricultural project?

Answered: 1 week ago

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago