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, 24.06.2019 00:00
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
Aproject involves many computing systems working together on disjointed task towards a single goal what form of computing would the project be using
Answers: 3
question
Computers and Technology, 24.06.2019 21:30
Jenny wants to create an animated short video to add to her website. which software will she use to create this animated video?
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
True or false technology is often discovered by accident
Answers: 2
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, 20.09.2020 01:01
question
Mathematics, 20.09.2020 01:01
Questions on the website: 13722360