subject

Develop a C-program that helps user managing an 1-D array of integer numbers (maximum of 100 elements) , with initial number of elements is 0, using the following simple menu: 1-Add a value
2-Search a value
3-Remove the first existence of a value
4-Remove all existence of a value
5- Print out the array
6-Print out even values in array
7-Print out the maximum value of the array
8-Print out values in a range
9- Print out the array in ascending order (bubble sort)
0- End.

-When the option 1 is chosen, user will enter a valid value then it is added to the end of the array.
-When the option 2 is chosen, user will enter a valid value. If that value exists in the array, the program will print out all the locations of that value, otherwise it will print the message not found.
-When the option 3 is chosen, user will enter a valid value. If the value exists in more than one position, delete the first number. If the number does not exist, print the message not found.
-When the option 4 is chosen, user will enter a valid value. If the value exists in more than one position, delete all those values.
-When the option 5 is chosen, the values in the array will be output.
-When the option 6 is chosen, even values in array will be printed out.
-When the option 7 is chosen , the maximum value in the array will be printed.
-When the option 8 is chosen, user will enter 2 values, minVal and maxVal, the values in array which are between minVal and maxVal are printed out (minVal <=value<=maxVal).
-When the option 9 is chosen, values in array will be printed out in ascending order (Note: sort on sub-array, use bubble sorting algorithm).
-When the option 0 is chosen, the program ends.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
Write a function that draws a pool ball. this function should take as parameters, the color, the number that should go on the pool ball, and the location of the center of the pool ball. the radius of the pool balls should be pool_ball_radius, and the font of the number should be pool_ball_font. the text of the pool ball font should be white. drawpoolball(color.orange, 5, 100, 100); drawpoolball(color.green, 6, 50, 200); drawpoolball(color.red, 3, 150, 350); drawpoolball(color.blue, 2, 250, 140); to center the numbers on the pool ball, you should use the getwidth() and getheight() methods. you are allowed to call these methods on your text object, such as txt.
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
question
Computers and Technology, 23.06.2019 12:20
When guido van rossum created python, he wanted to make a language that was more than other programming languages. a. code-based b. human-readable c. complex d. functional
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
You know the right answer?
Develop a C-program that helps user managing an 1-D array of integer numbers (maximum of 100 element...
Questions
question
Mathematics, 01.12.2019 03:31
Questions on the website: 13722359