Question: estion # 1 : ( 7 Points ) Vrite a C + + program that declares an array of ten integer values and includes the

estion #1:
(7 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 : 12140101
' Number : One
k:10
01/2024-07/01/2024
Palestine Technical University - Kadoorie
Assignment #3
Semester 2022-2023
Instructor's Name :
Student's Name:
Student's Number:
Section's Number:
stion #2:
(3 Points)
Suppose the grades of 6 students are stored in a two-dimensional array. Each student has 4 marks, each row represents a student, the first cell in the row stores the number of the student (Student_id), 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 +5 to each mark to each student who has the minimum average.
 estion #1: (7 Points) Vrite a C++ program that declares an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!