Program Name cis158g1 ₁ ( Q Search CIS158 Programming Assignment - P06 Grades p06 grades.png Description The program will compute the final grade for the students listed below. The program will use the following files cis158g1.c, grades.c, and grades.h The program will use format and words displayed in the Example of Output. Requirements cis158g1.c Will contain only one function, main. It will do the following: • Will use the functions in grades.c to complete display a grade for each student listed in the table below. • The students listed below, their grade averages, and percentages for each category are to be hard coded in the function. . For the message format listed below, the students name is to be produced by the main function. • The final grade both numeric and letter are to be produced by the functions in grades.c Name Adams, Tom Curry, Jane Franklin, John George, Pat Keene, Mary Kraft, Martin Martin, James Oakley, Ann Smith, Luke Attendance Assignment Programs Quiz Final 5% 20% 35% 25% 95 93 95 99 86 50 50 95 7 70 85 85 80 75 95 95 78 72 85 65 85 85 88 65 81 75 80 65 95 75 grades.h Will only contain the prototypes for all the functions in grade.c 87 50 82 68 88 52 88 81 94 89 57 88 75 93 55 92 75 . Q . p06 2.png ( grades.c grades.c will contain 2 functions, grade and gradePrint. grade will do the following: • Receive 9 positive integers. The first 4 integers will be the student average for attendance, assignments, programs and quizzes. The 5 integer will be the final exam grade. The last 4 integers will represent the percentage values for the attendance, assignments, programs, and quizzes. • Return an integer that will be the final grade for the course. • CIS158 Programming Assignment - P06 Grades The sum of all the percentages can not exceed 100. If they do, the function will return -3. • The percentage for the final will be computed as the difference between the sum of the percentages received and 100. Q Search If any grade received is less than 0 or more than 105, the function will return -1. If any percentage received is less than 0 or more than 100, the function will return -2 • gradePrint will do the following: • Receive an integer that represents the numeric grade for the course. . If the integer received is not in the range of 0-105, then the error message"## is not a valid grade", where ### is the value received. It will then exit with a value of 1 • Convert the course numeric grade into a letter grade. See the class syllabus final grade assignments to do the conversion. Note: A+ goes to a grade of 105 Display the course grade and a message using the following and return a value of 0: grade A+, A, or A- Message: Excellent grade B+, B, or B- Message: Good grade C+, C, or C- Message: Fair • • grade D+, D, or D- Message: Poor • grade F Message: Failing Grade CIS158 Programming Assignment - P06 Q Screenshot at Mar 27 23-42-08.p Q Sea CIS158 Programming Assignme Grades Example of Output (only for first 3 entries) Adams, Tom Curry, Jane Franklin, John Grade A Grade B+ Grade F Excellent Good Failing Grade
Program Name cis158g1 ₁ ( Q Search CIS158 Programming Assignment - P06 Grades p06 grades.png Description The program will compute the final grade for the students listed below. The program will use the following files cis158g1.c, grades.c, and grades.h The program will use format and words displayed in the Example of Output. Requirements cis158g1.c Will contain only one function, main. It will do the following: • Will use the functions in grades.c to complete display a grade for each student listed in the table below. • The students listed below, their grade averages, and percentages for each category are to be hard coded in the function. . For the message format listed below, the students name is to be produced by the main function. • The final grade both numeric and letter are to be produced by the functions in grades.c Name Adams, Tom Curry, Jane Franklin, John George, Pat Keene, Mary Kraft, Martin Martin, James Oakley, Ann Smith, Luke Attendance Assignment Programs Quiz Final 5% 20% 35% 25% 95 93 95 99 86 50 50 95 7 70 85 85 80 75 95 95 78 72 85 65 85 85 88 65 81 75 80 65 95 75 grades.h Will only contain the prototypes for all the functions in grade.c 87 50 82 68 88 52 88 81 94 89 57 88 75 93 55 92 75 . Q . p06 2.png ( grades.c grades.c will contain 2 functions, grade and gradePrint. grade will do the following: • Receive 9 positive integers. The first 4 integers will be the student average for attendance, assignments, programs and quizzes. The 5 integer will be the final exam grade. The last 4 integers will represent the percentage values for the attendance, assignments, programs, and quizzes. • Return an integer that will be the final grade for the course. • CIS158 Programming Assignment - P06 Grades The sum of all the percentages can not exceed 100. If they do, the function will return -3. • The percentage for the final will be computed as the difference between the sum of the percentages received and 100. Q Search If any grade received is less than 0 or more than 105, the function will return -1. If any percentage received is less than 0 or more than 100, the function will return -2 • gradePrint will do the following: • Receive an integer that represents the numeric grade for the course. . If the integer received is not in the range of 0-105, then the error message"## is not a valid grade", where ### is the value received. It will then exit with a value of 1 • Convert the course numeric grade into a letter grade. See the class syllabus final grade assignments to do the conversion. Note: A+ goes to a grade of 105 Display the course grade and a message using the following and return a value of 0: grade A+, A, or A- Message: Excellent grade B+, B, or B- Message: Good grade C+, C, or C- Message: Fair • • grade D+, D, or D- Message: Poor • grade F Message: Failing Grade CIS158 Programming Assignment - P06 Q Screenshot at Mar 27 23-42-08.p Q Sea CIS158 Programming Assignme Grades Example of Output (only for first 3 entries) Adams, Tom Curry, Jane Franklin, John Grade A Grade B+ Grade F Excellent Good Failing Grade
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Code this "Grading Assignment" in C.
[Note] this is not C99
Please add comments for this assignment.
Thank you!
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY