subject
Computers and Technology, 23.05.2021 09:00 ani61

Write a C program that has the following functions: Function 1: Ask the user to enter 10 grades (between 0 and 99). The program should store the grades in an array of integers.

Function 2: Receive the grades array and compute and return the largest and smallest grades. The program should print from main these numbers.

Function 3: Receive the addresses of the smallest and largest grades (do not send the array), and swap them. For example if the smallest element is located at position 2, and largest at position 4, then after swapping, we should find the smallest element in position 4, and largest at position 2.

Function 4: print the grade followed by a number of “*” depending on the grade. Print one star for each 10 points. For example, between 90 and 99 will print 9 stars, between 80 and 89 will print 8 stars, etc..

Example if the user enters 99, 52, 77, 80, 85, 88, 90, 66, 50, 55 40:
Smallest Number: 40
Largest Number: 99

99
52
77
80
85
88
90
66
55
40

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:10
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
question
Computers and Technology, 24.06.2019 07:20
3pointsyou've found an image you want to insert into your slide presentation. youwant to make the image look more gray so that it looks like an older imagewhat would you need to adjust? 0.00o a. sizeo b. hueo c. contrasto d. tones
Answers: 2
question
Computers and Technology, 24.06.2019 08:10
Where are american poets found in the dewey decimal system
Answers: 1
You know the right answer?
Write a C program that has the following functions: Function 1: Ask the user to enter 10 grades (be...
Questions
question
Mathematics, 26.07.2019 04:30
question
Mathematics, 26.07.2019 04:30