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, 21.06.2019 23:30
Acomputer is a multipurpose device that accepts input, processes data, stores data, and produces output, all according to a series of stored . the processing unit of most modern computers is a(n) . the instructions that tell a computer how to carry out a task are referred to as computer , which are distributed as software. computers run three main types of software: software, system software, and development tools. an example of system software is a computer system, which is essentially the master controller for all the activities that a digital device performs. digital devices are constructed using tiny electronic components that represent data bits as electrical signals. the system unit houses the system board, which contains several circuits made from semiconducting materials. computers come in three popular form factors: component, , and slate. many of today's digital devices operate on battery power supplied by ion batteries. battery life and lifespan can be extended by following good battery management practices.
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
question
Computers and Technology, 24.06.2019 02:10
Consider the usual algorithm to convert an infix expression to a postfix expression. suppose that you have read 10 input characters during a conversion and that the stack now contains these symbols: (5 points) | | | + | | ( | bottom |_*_| now, suppose that you read and process the 11th symbol of the input. draw the stack for the case where the 11th symbol is
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, 26.06.2019 00:40
question
English, 26.06.2019 00:50
question
Mathematics, 26.06.2019 00:50
Questions on the website: 13722367