Question: estion # 1 : ( 7 Points ) Vrite a C + + program that declares an array of ten integer values and includes the
estion #:
Points
Vrite a C program that declares an array of ten integer values and includes the ollowing functions:
A function to print the frequency of the smallest value in the array.
A function to return an array having the counts of digits of each element in the array.
A function to return the greatest sum of values of all possible subarrays.
function that returns the maximum prime numbers within the array. If the array does not contain any prime numbers, replace the smallest number with the next prime number following the maximum value in the array.
Name : C
Number :
Number : One
:
Palestine Technical University Kadoorie
Assignment #
Semester
Instructor's Name :
Student's Name:
Student's Number:
Section's Number:
stion #:
Points
Suppose the grades of students are stored in a twodimensional array. Each student has marks, each row represents a student, the first cell in the row stores the number of the student Studentid and the last cell in the row stores the calculated average for the student's marks.
Write functions which do the following:
Display the number of the student that has the highest mark
Sort the rows by Student Id;
Add bonus to each mark to each student who has the minimum average.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
