Tags:
view all tags
---+ Fifth lab: Calendar: Part 2 ---++ Learning Objective(s) 1 Learn to use methods 1 Add to an existing program to get further along in the project ---++ Overview of the program This lab should print out a calendar for an entire year specific month. ---++ * This program needs to output (nicely) an entire year. You are to get from the user the year and the day that year starts on (0 for Sunday). * I recommend you use code from the previous year. * The year can be from 1800 to 2300 * You are to create a method to get the year from the user. It must return a valid year. * You are to create a method to get the starting day (from 0 to 6) from the user. It must return a valid starting day. * You are to create a method that determines the number of days in a month (given a specific year and month). * You are to write a method the outputs an entire calendar for a given month. * You are to write a method that returns the name of the month to be printed by the method that calls it. * Use all previous methods to output a calendar for an entire year. * The program should be called <b>Calendar</b> ---++ Submission 1 Create an empty zip folder. 1 Place your program (.java file) in it 1 Place your software development report in it. 1 Submit the zip folder on canvas ---++ Optional improvements Optional improvements should ONLY be worked on once the program is completing working. In addition, the work is to be done on your own with little if any help for lab assistants or the instructor. 1. Have your program determine what day the month starts on instead of inputting it. 1. Write only one method that gets one value from the user (for the starting day or year) and call it twice. It still must check for a valid number and use appropriate prompts. The method itself needs to be very generic and not know it is working with years, etc. 1. Create a printWeek method (and use it appropriately) that will print any given week.
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2022-02-08
-
cathybareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 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