- Check if the season is Dry, Rainy, Harmattan or Heat. If the user input is :
For example, if the user input is the following:
- September, October or November, the season is Harmattan.
- December, January or February, the season is Rainy.
- March, April or May, the season is Heat
- June, July or August, the season is Dry
-
Write a code which can give grades to students according to their scores: 80-100, A 70-89, B 60-69, C 50-59, D 0-49, F
-
Get user input using prompt(“Enter your age:”). If user is 18 or older , give feedback:'You are old enough to drive' but if not 18 give another feedback stating to wait for the number of years he needs to turn 18.
-
Enter your age: 30
- Resp: You are old enough to drive.
-
Enter your age:15
- Resp: You are left with 3 years to drive.
Further Research: Research the input method "prompt()".
ND: Try your best to solve this without AI. For team presentation, i'll pick one of this questions for any of your team members to code live in class on saturday.