Challenge:(make use of *SWITCH* statement) create a code that evaluates the students score, grading according to teachers input. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Challenge:(make use of *SWITCH* statement) create a code that evaluates the students score, grading according to teachers input.

Min score = 0% Max score = 100% Grade A is above 70% //Excellent result Grade B is 60% to 69% //very good result Grade C is 50% to 59% //Good result Grade D is 40% to 49%//More Effort needed Grade E is 30% to 39% //Passed Grade F is below 29% //Failed Instruction: Switch statement only Example: Teacher inputs "45" and click enter, the browser *alerts* "students grade is D, ...more effort needed. Optional Tips: 1. Display your message with alert. 2. Make grade bold in alert box.

9th Sep 2017, 12:34 AM
Novich
Novich - avatar
3 Answers
+ 3
@Kartikey Sahu you are good what a very great Technic and skills, you good it right. But need some adjustments in the code to make 30, 40, 50 and 60 display a valid number.
9th Sep 2017, 1:39 AM
Novich
Novich - avatar
9th Sep 2017, 1:28 AM
Kartikey Sahu
Kartikey Sahu - avatar
+ 1
@Igwe Done
9th Sep 2017, 8:41 AM
Kartikey Sahu
Kartikey Sahu - avatar