Calculating The Final Grade Using Structure C Languge

Question Description

Write a grading program for a class with the following gradingpolicies:-

a. There are two quizzes, each graded on the basis of 10 points.

b. There is one midterm exam and one final exam, each graded onthe basis of 100 points.

c. The final exam counts for 50 percent of the grade, the midtermcounts for 25 percent and the two quizzes together count for a total of 25percent.

Grading system is as follows:-

>90A

>=80 and <90B

>=70 and <80C

>=60 and <70D

<60E

The program should read in the student’s scores and output thestudent’s record, which consists of two quiz and two exam scores as well as thestudent’s average numeric score for the entire course and the final lettergrade. Define and use a structure forthe student record.

Utilize these function prototypes:-

void input(StudentRecord * student); //should prompt for input for one student andset the structure variable members.

void computeGrade(StudentRecord * student); //use this tocalculate the numeric average and letter grade.

void output(const StudentRecord student); //outputs the student record.

Sample Output:-

Sample data for the test run:-

1 7 10 90 95

2 9 8 90 80

3 7 8 70 80

4 5 8 50 70

5 4 0 40 35

Output:

enter the student number: 1

enter two 10 point quizes

7 10

enter the midterm and final exam grades. These are 100 point tests

90 95

enter the student number: 2

enter two 10 point quizes

9 8

enter the midterm and final exam grades. These are 100 point tests

90 80

enter the student number: 3

enter two 10 point quizes

7 8

enter the midterm and final exam grades. These are 100 point tests

70 80

enter the student number: 4

enter two 10 point quizes

5 8

enter the midterm and final exam grades. These are 100 point tests

50 70

enter the student number: 5

enter two 10 point quizes

4 0

enter the midterm and final exam grades. These are 100 point tests

40 35

The record for student number: 1

The quiz grades are: 7 10

The midterm and exam grades are: 90 95

The numeric average is: 91.25

and the letter grade assigned is A

The record for student number: 2

The quiz grades are: 9 8

The midterm and exam grades are: 90 80

The numeric average is: 83.75

and the letter grade assigned is B

The record for student number: 3

The quiz grades are: 7 8

The midterm and exam grades are: 70 80

The numeric average is: 76.25

and the letter grade assigned is C

The record for student number: 4

The quiz grades are: 5 8

The midterm and exam grades are: 50 70

The numeric average is: 63.75

and the letter grade assigned is D

The record for student number: 5

The quiz grades are: 4 0

The midterm and exam grades are: 40 35

The numeric average is: 32.5

and the letter grade assigned is F

Get 20% Discount on The assignment
Pages (550 words)
Approximate price: -

Try it now!

Get 20% Discount on The Assignment

We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

EssayBrill has stood as the world’s leading custom essay writing services providers. Once you enter all the details in the order form under the place order button, the rest is up to us.

Essays

Essay Writing Services

At EssayBrill, we prioritize on all aspects that bring about a good grade such as impeccable grammar, proper structure, zero-plagiarism and conformance to guidelines. Our experienced team of writers will help you completed your essays and other assignments.

Admissions

Admission and Business Papers

Be assured that you’ll definitely get accepted to the Master’s level program at any university once you enter all the details in the order form. We won’t leave you here; we will also help you secure a good position in your aspired workplace by creating an outstanding resume or portfolio once you place an order.

Editing

Editing and Proofreading

Our skilled editing and writing team will help you restructure you paper, paraphrase, correct grammar and replace plagiarized sections on your paper just on time. The service is geared toward eliminating any mistakes and rather enhancing better quality.

Coursework

Technical papers

We have writers in almost all fields including the most technical fields. You don’t have to worry about the complexity of your paper. Simply enter as much details as possible in the place order section.