Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C programming assignment. Sorting and Searching Program Note: Global variables are FORBIDDEN, going to are FORBIDDEN, and Do not ignore comments please. Student outcomes: Students

C programming assignment. Sorting and Searching Program

Note: Global variables are FORBIDDEN, going to are FORBIDDEN, and Do not ignore comments please.

Student outcomes:

Students will demonstrate the ability to create, populate, and display arrays and values within arrays.

Students will demonstrate the ability to sort values within an array.

Students will demonstrate the ability to design a menu system.

Students will demonstrate the ability to write and use functions.

The program will begin by filling an array of integers with 5000 random numbers in the range of 1 to 200.

You are to write a C program that will contain the following MENU:

In order from LOW to HIGH display the missing numbers

In order from HIGH to LOW display the UNIQUE random numbers

In any order display each random number and the number of times it was found

Display the lowest, highest and average of the random numbers

Quit

All programs from this point forward will be written using function where ever possible.

As with all programs, you need to insert comments, and write neat indented code. Once you are finished you are to attach the *.c program and design tool to the assignment thread.

NOTES/COMMENTS/HINTS

To seed a random number you will need the following once in your code:

srand((unsigned)time(NULL));//seed rand function

To use time() you will need to include time.h

To generate a random number between LOWERBOUND and UPPERBOUND you will need the following code:

theNumber = LOWERBOUND + rand() % (UPPERBOUND - LOWERBOUND + 1);

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

Students also viewed these Databases questions