Printing The Letter Grade

Revision en2, by Ameerroot4, 2021-12-04 01:27:39
**Printing The Letter Grade**

                                        time limit per test: 1 second                         
                                     memory limit per test: 64 megabytes
                                             input:standard input
                                            output:standard output

One Day in school, There is a Math Teacher called Mike, He decided to move on to another country to live with his uncle, When mike found a new job in school in that country He is Facing a problem to Determine The Proper Letters Grades For his Students for their markes, Because The education system in that country is different from the one that who used to. So He Decided to write a code to Help Him to pick The Right Letter Grade at the same time He didn't know much information about coding like functions, if statements, switch, logical operators , Relational Operators, or maybe pointers or anything advance, But He is good in Variables and their types, Arithmetic Operators(+ , — , * , / , %) and their Priorities, So He decided using an equation in math and The Ascii code table to know what is letter's code number. help Mike to Write That Equation.

Write a program that reads a grade from The User and prints the following :

if the grade between 99.9-90 =====> The Program will print 'A'

if the grade between 89.9-80 =====> The Program will print 'B'

if the grade between 79.9-70 =====> The Program will print 'C'

if the grade between 69.9-60 =====> The Program will print 'D'

if the grade between 59.9-50 =====> The Program will print 'E'

if the grade between 49.9-40 =====> The Program will print 'F'

if the grade between 39.9-30 =====> The Program will print 'G'

if the grade between 29.9-20 =====> The Program will print 'H'

if the grade between 19.9-10 =====> The Program will print 'I'

for example Input : 90

========>>> Output : A

for example Input : 88.6

========>>> Output : B

for example Input : 76.54

========>>> Output : C

and so on.

Input : The Grade.

Output : The Proper Letter Grade.

(Remember Without using functions loop, nested loop, if statements, switch, logical operators , Relational Operators, or maybe pointers or anything advance).

Note:

*You can make more than one equation in your code feel free.

** You don't need to make a range for those numbers(grades) above, I mean if the user input 100 , 0 , -1..., or maybe 1-9 will print (?), it's ok. the equation will not prevent those numbers from coming up. (You cane include those numbers too).

ASCII CODE Table for Letters :

http://sticksandstones.kstrom.com/appen.html

Tags math, 800, 1200, variables, arithmetic operators, a1, b1, c1, 1400, 1600, ascii, cin/cout

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English Ameerroot4 2021-12-04 14:39:45 158
en3 English Ameerroot4 2021-12-04 14:32:07 3217
en2 English Ameerroot4 2021-12-04 01:27:39 2731 Remember Without using functions loop, nested loop, if statements, switch, logical operators , Relational Operators, or maybe pointers or anything advance). (published)
en1 English Ameerroot4 2021-12-03 09:24:43 105 Initial revision (saved to drafts)