Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CS 140 Calendar Assignment Part 1 Key topics: Printing, data types, methods, operators, expressions, variables, for loops, class constants, parameters, returns, String objects, Scanner objects

image text in transcribed
image text in transcribed
CS 140 Calendar Assignment Part 1 Key topics: Printing, data types, methods, operators, expressions, variables, for loops, class constants, parameters, returns, String objects, Scanner objects Learning Outcomes: Begin to become familiar with setup, design, execution and testing of basic Java programs Design and develop a multi-method program in good style Demonstrate the ability to decompose a problem and reduce redundancy using methods Apply tools and techniques introduced in class to form a working program By the end of this assignment, you should be familiar with the material covered in class so far and be able to demonstrate the ability to use it properly in practice. Task: Your task is to create a basic calendar using Java. You will name the file MyCalendar java. Over the course of the quarter, we will be adding to this very basic calendar to make it more functional and robust. For this part, you will be drawing the calendar to the console. The calendar's size should be scalable using class constants. You have some creative freedom with designing the calendar. What characters you use for the outline of the calendar and where you place the date in each calendar cell is up to you. An example of what a calendar might look like with a size of 10 after completing this assignment is on the next page. Functional Rundown: Upon executing your program, the console should ask what date you would like to look at, as seen in the example below. The user should be able to input a date in the format "mid" or "mm/dd all as one String. The month of that date should be displayed at the top of the calendar The month and day input by the user should be broken up and displayed at the bottom of the calendar as shown below. After asking the user for a date and printing the calendar for that date, your program should print a calendar for today's date followed by the month and day broken up. Ultimately, after execution, your calendar should display a prompt to get a date from the user, a calendar for that month from the user input, the month and day input by the user broken up, a second calendar for the current month, and finally the month and day for the current day broken up. For now, you may have every month that the calendar displays have 35 days instead of the actual number. We will change that in a later part of the assignment. Example Run: What date would you like to look at? (mm/dd) 04/05 12 13 14 15 16 STI 125 126 127 128 129 130 Month: 4 Day: 5 This month: 11 12 13 129 130 13 Month:10 Day: 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

Describe four content motivation theories.

Answered: 1 week ago