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 07:30
In the film "epic 2015," epic is the name for:
Answers: 3
question
Computers and Technology, 23.06.2019 08:30
All of these are true about using adhesive except: a. dissimilar materials can be joined. b. mixing tips are product and material specific. c. a specific application gun may be required. d. two-part adhesives are dispensed using two mixing tips
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
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, 25.06.2019 07:00
question
Biology, 25.06.2019 07:00