subject
Engineering, 14.11.2019 06:31 asherkbohannan

Write a program to sort the student’s names (ascending order), calculate students’ average test scores and letter grades (use the 10 point grading scale). in addition, count the number of students receiving a particular letter grade. you may assume the following input file data :
johnson 85 83 77 91 76
aniston 80 90 95 93 48
cooper 78 81 11 90 48
gupta 92 83 30 69 87
muhammed 23 45 96 38 59
clark 60 85 45 39 67
patel 77 31 52 74 83
abara 93 94 89 77 97
abebe 79 85 28 93 82
abioye 85 72 49 75 63
(40%) use four arrays: a one-dimensional array to store the students’ names, a (parallel) two dimensional array to store the test scores, a one-dimensional array to store the student’s average test scores and a one-dimensional array to store the student’s letter grades.
(60%) your program must contain at least the following functions :
a function to read and store data into two arrays,
a function to calculate the average test score and letter grade,
a function to sort all the arrays by student name, and
a function to output all the results (i. e. sorted list of students and their corresponding grades)
have your program also output the count of the number of students receiving a particular letter grade.
note : no non-constant global variables are to be used. you can name the arrays and functions anything you like. you can use the operator > = to sort the strings.
in c++

ansver
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, BardiFan
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
image
Engineering, 04.07.2019 18:10, ahmedeldyame
Aloaded platform of total mass 500 kg is supported by a dashpot and by a set of springs of effective stiffness 72 kn/m. it is observed that when the platform is depressed through a distance x = 12.5 cm below its equilibrium position and then released without any initial velocity; it reaches its equilibrium position in the shortest possible time without overshoot. find the position and velocity of the loaded platform 0.10 sec. after its release. if a further load of 400 kg is added to the platform, find, i) the frequency of damped vibrations, and i) the amplitude of vibration after 2 complete oscillations, given that the initial amplitude is 15 cm.
Answers: 1
image
Engineering, 04.07.2019 18:10, ayoismeisjjjjuan
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
image
Engineering, 04.07.2019 18:10, katelynn73
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
You know the right answer?
Write a program to sort the student’s names (ascending order), calculate students’ average test scor...

Questions in other subjects:

Konu
Mathematics, 18.03.2021 02:10
Konu
Mathematics, 18.03.2021 02:10
Konu
Mathematics, 18.03.2021 02:10