Difference: CSC121S2022Lab7 (3 vs. 4)

Revision 42022-03-15 - cathybareiss

Line: 1 to 1
 
META TOPICPARENT name="CSC121SylS2022"

Seventh lab: Calendar: Part 3

Learning Objective(s)

Line: 37 to 37
 3.5 write code

Added:
>
>

Partial sample dialogue

Which do you want to do?
1) add a task to a day
2) display everything assigned to a day
3) display the number of hours assigned to a day
4) display the number of hours assigned to a month
0) quit
1
What year, month, and day associated with your task?
2022 5 15
What is the task?
code
How many hours do you think it will take?
3
Which do you want to do?
1) add a task to a day
2) display everything assigned to a day
3) display the number of hours assigned to a day
4) display the number of hours assigned to a month
0) quit
1
What year, month, and day associated with your task?
2022 5 15
What is the task?
study
How many hours do you think it will take?
2.5
Which do you want to do?
1) add a task to a day
2) display everything assigned to a day
3) display the number of hours assigned to a day
4) display the number of hours assigned to a month
0) quit
1
What year, month, and day associated with your task?
2022 4 21
What is the task?
relax
How many hours do you think it will take?
1.5
Which do you want to do?
1) add a task to a day
2) display everything assigned to a day
3) display the number of hours assigned to a day
4) display the number of hours assigned to a month
0) quit
2
What year, month, and day associated with your task?
2022 5 15
The tasks for that day are:
3.0    code
2.5    study
Which do you want to do?
1) add a task to a day
2) display everything assigned to a day
3) display the number of hours assigned to a day
4) display the number of hours assigned to a month
0) quit
3
What year, month, and day associated with your task?
2022 5 15
The total number of hours for that day are 5.5.
Which do you want to do?
1) add a task to a day
2) display everything assigned to a day
3) display the number of hours assigned to a day
4) display the number of hours assigned to a month
0) quit
0
 

Submission

  1. Create an empty zip folder.
  2. Place your program (.java file) in it
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback