Computers and Technology, 16.12.2019 19:31 bbyarxi
You will be given a file that will contain averages for classes which are divided into sections in the following format. the name of this file will be "grades. txt".
a 93
b 82
a 86
c 75
f 83
you are to write a program that computes the averages for the sections of classes, they are divided into groups that are denoted by a capital letter. you are to use arrays to calculate the average. i recommend using two arrays one to keep a sum of the averages and the other a counter for how many classes have been added to the sum.
the equation for calculating the average is:
(sum of numbers in list) / (number of numbers in list)
given this you can have one array to keep a sum of the numbers that you are given and the other to keep a count of the number of classes in that section. the section names will be from a - z and will always be capital letters. the averages will be from 0 - 100 inclusively.
your program should output to the console the highest average section, lowest average section, and the average score across all of the sections. output both the section name and the score for that section. to a file you will print the average for each section in alphabetical order. always output the scores with two decimal places.
to the console:
highest average: : 98.00
lowest average: : 73.00
average score: .00
to a file named "results. txt":
a: 98.00
b: 93.00
c: 85.21
d: 95.12
.
.
.
z: 78.25
in c++
Answers: 1
Computers and Technology, 22.06.2019 23:00
In which part of a professional email should you try to be brief, but highly descriptive?
Answers: 1
Computers and Technology, 23.06.2019 08:00
Match the items with their respective descriptions.
Answers: 1
Computers and Technology, 23.06.2019 20:50
3.11.3 quiz: comparing and analyzing function typesquestion 4 of 102 pointswhat can you say about the y-values of the two functions f(x) = 3x2-3 andg(x)=2* - 3?
Answers: 2
You will be given a file that will contain averages for classes which are divided into sections in t...
Chemistry, 02.12.2021 22:30
English, 02.12.2021 22:30
Physics, 02.12.2021 22:30
Medicine, 02.12.2021 22:30
History, 02.12.2021 22:30
Social Studies, 02.12.2021 22:30
Mathematics, 02.12.2021 22:40