+ 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.
3 Réponses
+ 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.
+ 1
@Igwe Done