Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HELP SOLVE THIS OTHER BUSINESS LAW QUIZ. OWN WORK PLEASE. I WILL HIGHTLY APPRECIATE. C PROGRAMMING LANGUAGE: gradesc grades: will contain 2 mctions, grade and

HELP SOLVE THIS OTHER BUSINESS LAW QUIZ.

OWN WORK PLEASE. I WILL HIGHTLY APPRECIATE.

C PROGRAMMING LANGUAGE:

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
gradesc grades: will contain 2 mctions, grade and gradePrint. grade will do the following: I 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 nal exam grade. The last 4 integers will represent the percentage values for the attendance, assignments, programs, and quizzes. - Return an integer that will he the final grade for the course. * [filly grade received is less than [I or more than IDS, the function will return -1. a If an},I percentage received is less than H or more than 101], the mction will return -2 - The sum of all the percentages can not exceed l. Il"the3,.:r do, the function will return -3. - The percentage for the nal will be computed as the difference between the sum of the percentages received and 100. .gradePrint will do the following: - Receive an integer that represents the numeric grade for the course. i If the integer received is not in the range of [l 105, then the error message \" ## is not a valid grade", where #5 is the value received. It will then exit with a value of l - Convert the course numeric grade into a letter grade. See the class syllabus final grade assignments to do the conversion. Note: 11+ goes to a grade of \"3'5 - Display the course grade and a message using the following and return a value of (1': grade A+, A, or A Message: Excellent grade 13+, E, or 33- Message: Good grade (3+, [3, or {3- Message: Fair grade 13+, D, or 13- Message: Poor grade F Message: Failing Grade 97- 109 At 77 - 79 = C+ 94 -96 = A 74 - 76 90 -93 = A- 70 - 73 = 87 -89 = B+ 60 - 69 = 84- 86 = B Below 60 = 80 -83 = BExample of Output (only for first 3 entries Adams, Tom Grade A Excellent Curry, Jane Grade B+ Good Franklin, John Grade F Failing GradeCIS158 Programming Assignment - P06 Grades Program Name cis 158gl Description The program will compute the final grade for the students listed below. The program will use the following files cis158gl.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 Attendance Assignment Programs Quiz Final 5% 20% 35% 25% 20% Adams, Tom 95 93 95 99 94 Curry, Jane 95 86 88 87 89 Franklin, John 70 50 65 50 57 George, Pat 85 78 81 82 88 Keene, Mary 35 72 75 58 75 Kraft, Martin 80 85 80 88 93 Martin, James 75 65 55 52 55 Oakley, Ann 95 85 95 88 92 Smith, Luke 95 85 75 81 75 grades.h Will only contain the prototypes for all the functions in grade.c

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions