Write a C program that can be used to calculate the score needed on the final ex
ID: 3620540 • Letter: W
Question
Write a C program that can be used to calculate the score needed on the final exam to obtain each possible grade in the class given the scores obtained up to that point. Refer to your syllabus for the grading policy used in this class. Be sure your program includes the following:• An informative heading comment that includes your name, the name of the course, the name of the assignment, the date the code was initially created, the date the code was last modified, and a brief description of what the code does.
• Output indicating the title of the program.
• A series of informative prompts asking the user to input his/her grades for every assignment in the course up to the final exam (use provided data).
• An informative summary display indicating the total number of points earned before the final exam, the possible grades that can be earned in the course, the number of points needed on the final exam to get each grade, and the percentage grade needed on the final exam to earn each grade.
Use the following set of data when creating the three screenshots submitted with the program
Trial #1 Trial #2 Trial #3
Project #1 150 75 22
Project #2 150 14 56
Project #3 150 150 123
Project #4 150 75 112
Exam #1 150 0 33
Attendance/Participation 100 100 60
Grading
Consult the provided assessment rubric for grading details.
Sample Output
CIS 111 Grade Calculator
------------------------
Instructions: Please enter your grade (in points) after
each prompt and press the enter key.
Programming Assignment #1 Grade (150 point maximum): 150
Programming Assignment #2 Grade (150 point maximum): 150
Programming Assignment #3 Grade (150 point maximum): 150
Programming Assignment #4 Grade (150 point maximum): 150
Mid-term exam Grade (150 point maximum): 150
Attendance/Participation (100 point maximum): 100
Total Points So Far: 850
Minimum Final Exam Scores Needed to Earn Each Grade:
<Course Grade> : <Points Needed on Final> : <Percentage Needed on Final>
A : 50 : 33.33%
B : -50 : -33.33%
C : -150 : -100.00%
D : -250 : -166.67%
Any score below -250 points (-166.67%) will result in a failing
grade for the course.
NOTE: The Final Exam is worth 150 points.
Press any key to continue
Explanation / Answer
please rate - thanks message me if any questions/problems #include <stdio.h>#include <conio.h>
int main()
{int t1,t2,t3,t4,exam,atten,sum,need;
double pct;
printf("CIS 111 Grade Calculator ");
printf("------------------------ ");
printf("Instructions: Please enter your grade (in points) after ");
printf("each prompt and press the enter key. ");
printf("Programming Assignment #1 Grade (150 point maximum): ");
scanf("%d",&t1);
printf("Programming Assignment #2 Grade (150 point maximum): ");
scanf("%d",&t2);
printf("Programming Assignment #3 Grade (150 point maximum): ");
scanf("%d",&t3);
printf("Programming Assignment #4 Grade (150 point maximum): ");
scanf("%d",&t4);
printf("Mid-term exam Grade (150 point maximum): ");
scanf("%d",&exam);
printf("Attendance/Participation (100 point maximum): ");
scanf("%d",&atten);
sum=t1+t2+t3+t4+exam+atten;
printf("Total Points So Far: : %d ",sum);
printf("Minimum Final Exam Scores Needed to Earn Each Grade: ");
printf("<Course Grade> : <Points Needed on Final> : <Percentage Needed on Final> ");
need=1000*.90-sum;
pct=need/150.*100.;
printf("A : %d : %.2f%% ",need,pct);
need=1000*.80-sum;
pct=need/150.*100.;
printf("B : %d : %.2f%% ",need,pct);
need=1000*.70-sum;
pct=need/150.*100.;
printf("C : %d : %.2f%% ",need,pct);
need=1000*.60-sum;
pct=need/150.*100.;
printf("D : %d : %.2f%% ",need,pct);
printf("Any score below %d points (%.2f%%) will result in a failing ",need,pct);
printf("grade for the course. ");
printf("NOTE: The Final Exam is worth 150 points. ");
printf("Press any key to continue ");
getch();
return 0;
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.