C programing (condition using pointers) Q1) Write a function called letter grade that has a type int input parameter called points and returns through an output parameters gradepLetter and...


C programing (condition using pointers)


Q1) Write a function called letter grade that has a type int input parameter called points and
returns through an output parameters gradepLetter and gradepNumber. The appropriate letter
grade matching is given in the table below. Return through a second output parameter
(just_missedp) an indication of whether the student just missed the next higher grade (true for
89, 79, 64 and so on).
Prototype: void letter_grade(int points, char *gradepLetter, char
*gradepNumber, char *just_missedp);


Q1) Write a function called letter grade that has a type int input parameter called points and<br>returns through an output parameters gradepLetter and gradepNumber. The appropriate letter<br>grade matching is given in the table below. Return through a second output parameter<br>(just_missedp) an indication of whether the student just missed the next higher grade (true for<br>89, 79, 64 and so on).<br>Prototype: void letter_grade (int points, char *gradepLetter, char<br>*gradepNumber, char *just_missedp);<br>Points<br>Grade<br>Points | Grade<br>95-100<br>A1<br>65-69<br>C1<br>90-94<br>A2<br>60-64<br>C2<br>85-89<br>АЗ<br>55-59<br>C3<br>80-84<br>B1<br>50-54<br>D<br>75-79<br>B2<br>49-0<br>F3<br>70-74<br>B3<br>Example results:<br>Please enter the points for grading: 94<br>Letter grade is : A2<br>Student missed the next grade with a single point? Y<br>Please enter the points for grading: 80<br>Letter grade is : B1<br>Student missed the next grade with a single point? N<br>

Extracted text: Q1) Write a function called letter grade that has a type int input parameter called points and returns through an output parameters gradepLetter and gradepNumber. The appropriate letter grade matching is given in the table below. Return through a second output parameter (just_missedp) an indication of whether the student just missed the next higher grade (true for 89, 79, 64 and so on). Prototype: void letter_grade (int points, char *gradepLetter, char *gradepNumber, char *just_missedp); Points Grade Points | Grade 95-100 A1 65-69 C1 90-94 A2 60-64 C2 85-89 АЗ 55-59 C3 80-84 B1 50-54 D 75-79 B2 49-0 F3 70-74 B3 Example results: Please enter the points for grading: 94 Letter grade is : A2 Student missed the next grade with a single point? Y Please enter the points for grading: 80 Letter grade is : B1 Student missed the next grade with a single point? N

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here