- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExercise21.java
More file actions
Latest commit
14 lines (12 loc) · 625 Bytes
/
Copy pathExercise21.java
File metadata and controls
14 lines (12 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
publicclassExercise21 {
publicstaticvoidmain(Stringarg[]) {
// You only have class on Monday, Tuesday, THursday, and Friday during
// the fall semester, and only on Tuesday through Friday during the Spring.
// On those days you need to wake up early. On all other days, you can sleep in.
// Write a program that prints "You can sleep in today" or "You must wake
// up early today" depending on the current date, which is input by the user.
// Example:
// What is the day of the week? Monday
// What semester is it? Spring
// You can sleep in today!
}