Write a function called letterGrade( ) that returns the letter grade | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a function called letterGrade( ) that returns the letter grade

For example, letterGrade(91) returns A, while letterGrade(71) returns C, and so on. Hint: Use nested if … else … to determine the letter grade.

19th Jun 2018, 3:06 PM
RaVon
RaVon - avatar
7 Answers
+ 2
I have corrected your code. Hope it helps. https://code.sololearn.com/cpDobow8B0uU/?ref=app
22nd Jun 2018, 6:32 PM
Dragonxiv
Dragonxiv - avatar
+ 3
Do you have a question or do you want that someone programms that for you. Please provide more infos.
19th Jun 2018, 3:09 PM
Dragonxiv
Dragonxiv - avatar
+ 1
Thank you!! what If you want to get the char, because im using visual studio and think you suppose to use #inlcude <string.h> correct? Also if im trying to pull just the character it self, I would return 'A' or 'A-'?
22nd Jun 2018, 10:49 PM
RaVon
RaVon - avatar
+ 1
may I send you what I have?
22nd Jun 2018, 11:28 PM
RaVon
RaVon - avatar
0
I need to know how to start it off Percentile Grade Percentile Grade 90% or above A 87% - 89% A- 84% - 86% B+ 80% - 83% B 77% - 79% B- 74% - 76% C+ 70% - 73% C 67% - 69% C- 64% - 66% D+ 60% - 63% D 57% - 59% D- Less than 57% F The main( ) function should first ask the user for a numeric value between 0 and 100, and then calls the letterGrade( ) function to get the letter grade. Once the letter grade is returned, it will be printed on the screen.
19th Jun 2018, 3:21 PM
RaVon
RaVon - avatar
0
I have code if you would like to see, but I did it wrong
19th Jun 2018, 4:10 PM
RaVon
RaVon - avatar
0
i dont fully understand what you actually want to achive.
23rd Jun 2018, 11:54 AM
Dragonxiv
Dragonxiv - avatar