Write a c program which does the following activities: a. Create an array size of 40 of type float. b. Read size from user. Of type int c. Call the function readQuizMarks which reads the marks into array and it takes two parameters, name of the array and size as parameters. The function is void and it prototype as shown. void readQuizMarks (float(], int); d. Call the function maxQuizMarks to find the maximum of the quiz marks and returns the max. It takes two parameters, name of the array and size as parameters. The function returns float and it prototype as shown. float maxQuizMarks (float[], int); e. Call the function minQuizMarks to find the minimum of the quiz marks and returns the min. It takes two parameters, name of the array and size as parameters. The function returns float and it prototype as shown. float minquizMarks (float[], int); 1. Call the function sumQuizMarks to find the sum of the quiz marks and returns the sum. It takes two parameters, name of the array and size as parameters. The function returns float and it prototype as shown. float sumQuizMarks (float[], int); Output: Enter how many students in class you have Enter the quiz marks <= 100 89.67 45.89 23.56 34.23 90.56 45.90 67.78 Sun Maximum = 90.56 Minimum = 23.56 397.59

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Use C language
Q1: (15 marks)
Write a c program which does the following activities:
a. Create an array size of 40 of type float.
b. Read size from user. Of type int
c. Call the function readQuizMarks which reads the marks into array and it
takes two parameters, name of the array and size as parameters. The function
is void and it prototype as shown.
void readQuizMarks (float[], int);
d. Call the function maxQuizMarks to find the maximum of the quiz marks and
returns the max. It takes two parameters, name of the array and size as
parameters. The function returns float and it prototype as shown. float
maxQuizMarks (float[], int);
e. Call the function minQuizMarks to find the minimum of the quiz marks and
returns the min. It takes two parameters, name of the array and size as
parameters. The function returns float and it prototype as shown. float
minQuizMarks (float[], int);
f. Call the function sumQuizMarks to find the sum of the quiz marks and returns
the sum. It takes two parameters, name of the array and size as parameters.
The function returns float and it prototype as shown.
float sumQuizMarks (float(], int);
Output:
Enter how many students in class you have
Enter the quiz marks <= 100
89.67
45.89
23.56
34.23
90.56
45.90
67.78
Sun
Maximum = 90.56
Minimum = 23.56
397.59
%3!
Transcribed Image Text:Q1: (15 marks) Write a c program which does the following activities: a. Create an array size of 40 of type float. b. Read size from user. Of type int c. Call the function readQuizMarks which reads the marks into array and it takes two parameters, name of the array and size as parameters. The function is void and it prototype as shown. void readQuizMarks (float[], int); d. Call the function maxQuizMarks to find the maximum of the quiz marks and returns the max. It takes two parameters, name of the array and size as parameters. The function returns float and it prototype as shown. float maxQuizMarks (float[], int); e. Call the function minQuizMarks to find the minimum of the quiz marks and returns the min. It takes two parameters, name of the array and size as parameters. The function returns float and it prototype as shown. float minQuizMarks (float[], int); f. Call the function sumQuizMarks to find the sum of the quiz marks and returns the sum. It takes two parameters, name of the array and size as parameters. The function returns float and it prototype as shown. float sumQuizMarks (float(], int); Output: Enter how many students in class you have Enter the quiz marks <= 100 89.67 45.89 23.56 34.23 90.56 45.90 67.78 Sun Maximum = 90.56 Minimum = 23.56 397.59 %3!
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY