only two questions in c++ the rest of question 2 in the second page ,, the description in the attachment .
1. Write a C++ program containing the following functions (20 pts)
a. Function to take in 8 numbers from the user to fill an array
b. Function that takes in an array and determines if it is a palindrome or not. Output
appropriate message. A palindrome is anything that is the same forwards and
backwards. Ex. 53544535 is a palindrome.
c. Function that outputs every multiple of 3 in the array
d. Function that prints the array in reverse.
2
Make use of the appropriate function calls. (ALL WORKING CODE SHOULD BE DONE IN THE
FUNCTIONS). Only thing the main can contain, if it contains anything at all, is function calls and
declarations
2 Write a C++ program that contains the following functions; Use as many arrays as you need (30
pts)
a.
A function that reads input from a file that contains the test scores of students in the
Math department, with values ranging from 0-200, into an array of size 25. Use values
76, 98, 150, 145, 200, 46, 11, 100, 172, 38, 188, 199, 167, 175, 108, 99, 129, 149, 176,
190, 71, 35, 159, 8, 133 inside your file.
b.
a function to determine the number of students that fall into the following ranges
0-24,25 – 49,50 – 74, 75 – 99, 100 – 124, 125 – 149, 150 – 174, 175 – 200
c
C.
a function to output each range along with a statement showing the number of students
falling into that range
d.
Help the computer science professor at your school with grading a multiple choice test.
Each question has 5 choices (A, B, C, D, E). A file contains the correct answer to the 40
questions as its first entry and the choices made by the student as the next entry
ACCBDEBCACACADEBDABDEADBDCABDAB CBDEBEACD
AACBCEEBACADADBCDACDCXDDB CABBXBCADDBEAXD
In cases where the student leaves a question unanswered, X is recorded as the choice.
Perform the grading using the following grading system, for questions that are answered
correctly 5 points is awarded, for incorrect attempts, 2 points is awarded, and for
questions not answered, 0 point is awarded.
Have a function read in the input
Have a function perform the grading based on the grading system above
Have a function display what letter grade the student achieved using the system
90 – 100 A
80-89
B
70-79
C С
60-89 D
0-59
F