PatrickFrankAIU / ITWEB220-2404A

Learning resources for students in ITWEB 220, term 2404A.
0 stars 0 forks source link

Exercise: What Day of the Week Is It? #7

Open PatrickFrankAIU opened 3 months ago

PatrickFrankAIU commented 3 months ago

Write a program in which the user inputs a number (1-7) and the program responds with the name of that day (Monday, Tuesday, etc). (For our purposes, Day 1 is Sunday.) Use the Switch-Case algorithm for this program. If the user enters a number other than 1-7, respond with "Invalid Day".

Stretch Goal: Use an IF/ELSE algorithm to also tell the user how many days are remaining from the inputted day until the weekend. (Tip: Add a variable to track the remaining days until Saturday, and set its value within each of the Case statements of the main algorithm.)

bufnjon commented 3 months ago

committed my changes /vickie/main6.js

PatrickFrankAIU commented 3 months ago

committed my changes /vickie/main6.js

Great job, Vickie!