//code for the above problem:
#include <bits/stdc++.h>
using namespace std;
void Takeinput(int subject[],int n)
{
int i;
for(i=0;i<n;i++)
{
cin>>subject[i];
}
}
int findaverage(int subject[],int n)
{
int i,sum;
sum=0;
for(i=0;i<n;i++)
{
sum=sum+subject[i];
}
return sum/n;
}
int main()
{
int n;
cout<<"enter the number of attempts:";
cin>>n;
int English[n],History[n],Cpp[n],Math[n];
cout<<"English ";
Takeinput(English,n);
cout<<"History ";
Takeinput(History,n);
cout<<"C++ ";
Takeinput(Cpp,n);
cout<<"Math";
Takeinput(Math,n);
cout<<"Beverly's Grades"<<endl;
cout<<"English
"<<findaverage(English,n)<<endl;
cout<<"History
"<<findaverage(History,n)<<endl;
cout<<"C++ "<<findaverage(Cpp,n)<<endl;
cout<<"Math
"<<findaverage(Math,n)<<endl;
return 0;
}
//If you have any queries ,please ask in the comment section
//If you ot the answer,please upvote:)
write a program that uses a function to read in the grades for four classes and...
Please help me with this program.You are to write a C++ program that will read in up to 15 students with student information and grades. Your program will compute an average and print out certain reports. Format: The information for each student is on separate lines of input. The first data will be the student�s ID number, next line is the students name, next the students classification, and the last line are the 10 grades where the last grade is...
Write a program that uses the keys(), values(), and/or items() dict methods to find statistics about the student grades dictionary. Find the following: Print the name and grade percentage of the student with the highest total of points. Also print the grade as per the below grading scale 90 to 100 A 80 to 89 B 70 to 79 C 60 to 69 D Below 60 F Find the average score of each assignment. Use the following data:...
Microsoft Excel Question.
I'm having trouble using the vlookup function, I have calculated
a final numerical grade for a hypothetical course, and and trying
to use a set of numerical grades with their corresponding letter
grades to get a vlookup function to return the letter grade from
the numerical grade.
However the function for some reason only returns the lowest
value out of the set grades, not the closest match.
Projects Classwork Teamwork/Integrity 100 100 A+ 98 A+ 97 A...
Write a program to calculate students’ average test scores and their grades. You may assume the following data: Johnson 85 83 77 91 76 Aniston 80 90 95 93 48 Cooper 78 81 11 90 73 Gupta 92 83 30 69 87 Blair 23 45 96 38 59 Clark 60 85 45 39 67 Kennedy 77 31 52 74 83 Bronson 93 94 89 77 97 Sunny 79 85 28 93 82 Smith 85 72 49 75 63 Use three...
Write a program to calculate students’ average test scores and their grades. You may assume the following data: Johnson 85 83 77 91 76 Aniston 80 90 95 93 48 Cooper 78 81 11 90 73 Gupta 92 83 30 69 87 Blair 23 45 96 38 59 Clark 60 85 45 39 67 Kennedy 77 31 52 74 83 Bronson 93 94 89 77 97 Sunny 79 85 28 93 82 Smith 85 72 49 75 63 Use three...
C++: Create a grade book program that includes a class of up to 20 students each with 5 test grades (4 tests plus a Final). The sample gradebook input file (CSCI1306.txt) is attached. The students’ grades should be kept in an array. Once all students and their test scores are read in, calculate each student’s average (4 tests plus Final counts double) and letter grade for the class. The output of this program is a tabular grade report that is...
Write a java program to read a list of exam grades given as int's in the range of 0 to 100. Your program will display the total number of grades and the number of grades in each letter-grade category as follows: A 93 <= grade <= 100 A- 90 <= grade < 93 B+ 87 <= grade < 90 B 83 <= grade < 87 B- 80 <= grade < 83 C+ 77 <= grade < 80 C 73 <=...
Having a bit of trouble in my c++ class, was wondering if anyone can help.Write a program to calculate students' average test scores and their grades. You may assume the following input data:Johnson 85 83 77 91 76Aniston 80 90 95 93 48Cooper 78 81 11 90 73Gupta 92 83 30 68 87Blair 23 45 96 38 59Clark 60 85 45 39 67Kennedy 77 31 52 74 83Bronson 93 94 89 77 97Sunny 79 85 28 93 82Smith 85 72...
5. Mark’s class just took the admission test for business school and averaged 87.05. Chapter 10 Data Set 2 contains the population of scores for the 10 other classes in Mark’s university. How did Mark’s class do? Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 Class 10 78 81 96 85 88 78 90 79 96 86 77 78 97 90 88 82 86 93 87 89 78 93 88...
Javascript Problem: Using the data set as a pre-defined variable in your program, write code that uses the dataset to print the first names of people with above average math grades and below average age from the dataset. Requirements: Cannot use any built-ins except filter(), map(), and reduce(). Apply higher-order functions to your solution. Dataset: var dataSet = [ { "name": "Maura Glass", "age": 60, "math": 97, "english": 63, "yearsOfEducation": 4 }, { "name": "James Gates", "age": 55, "math": 72,...