In this task you are going to create a program that prints a nice calendar overview...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In this task you are going to create a program that prints a nice calendar overview of a month and year specified by the user. The program should be called PrintCalendar.java and it should begin with asking the user for a year and a month. The program will then print an overview of the month with days and the number for each day (see below.) Important in this course is that you need to create a suitable number of methods in your program. You will not pass if you do everything in main. With suitable, we expect you to do five to ten different methods, each well defined and only doing one thing. You do not need to validate user input too much, you need, however, to be able to calculate for example leap year and so on. You do not need to handle years before 1800. You should not use the built in Java class for calendar. Also, the week starts on Mondays Enter a year after 1800: 1975 Enter a month (1-12): 8 August 1975 Mon Tue Wed Thu Fri Sat Sun 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Another example: Enter a year after 1800: 2020 Enter a month (1-12): 11 November 2020 Mon Tue Wed Thu Fri Sat Sun 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 In this task you are going to create a program that prints a nice calendar overview of a month and year specified by the user. The program should be called PrintCalendar.java and it should begin with asking the user for a year and a month. The program will then print an overview of the month with days and the number for each day (see below.) Important in this course is that you need to create a suitable number of methods in your program. You will not pass if you do everything in main. With suitable, we expect you to do five to ten different methods, each well defined and only doing one thing. You do not need to validate user input too much, you need, however, to be able to calculate for example leap year and so on. You do not need to handle years before 1800. You should not use the built in Java class for calendar. Also, the week starts on Mondays Enter a year after 1800: 1975 Enter a month (1-12): 8 August 1975 Mon Tue Wed Thu Fri Sat Sun 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Another example: Enter a year after 1800: 2020 Enter a month (1-12): 11 November 2020 Mon Tue Wed Thu Fri Sat Sun 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Expert Answer:
Answer rating: 100% (QA)
Code import javautil public class PrintCalendar public stati... View the full answer
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date:
Students also viewed these databases questions
-
The Taylor polynomial for sin(x) for a near 0 to order 5 is 1 1 sin(x) = x - + -x +0(x7) 6 120 The figure below shows a plot of sin(x) [blue] and the above Taylor polynomial [red]. 0.8 0.6 0.4 0.2 1...
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Find and draw y(t) for the system below X(t)-21tl and h(t) as below h(t)
-
Why can the P/E ratio be viewed as a type of payback period?
-
A circular double-stranded DNA molecule contains 4200 base pairs. In solution, the molecule is in a B-form helix, with about 10.5 base pairs per turn. The DNA circle has 12 superhelical turns. What...
-
Use Laplace transforms to convert the following system of differential equations into an algebraic system, and find the solution of the differential equations. \[\begin{aligned} & x^{\prime \prime}=3...
-
Prepare the entries for the following transactions using a general journal: 1. Discarding an asset. (a) On January 4, shelving units, which had a cost of $6,400 and had accumulated depreciation of...
-
Product A is produced for $3.52 per pound. Product A can be soldwithout additional processing for $4.04 per pound or processedfurther into Product B at an additional cost of $0.43 per pound.Product 2...
-
You are part of the engagement team for the audit of Suzuki Manufacturing for the year ended December 31, 2019, and are responsible for auditing the acquisition cycle. Download the Excel file for the...
-
The Regal Cycle Company manufactures three types of bicycles a dirt bike, a mountain bike, and a racing bike. Data on sales and expenses for the past quarter follow: Total Dirt Bikes Mountain Bikes...
-
1. How can low-income individuals make housing choices, and how income-inducive housing choices can impact the ability of an individual to engage in wealth creation and inter-generation wealth...
-
Name: [6] A statistical analysis of 5,000 long-distance telephone calls made from the headquarters of a certain chain store indicates that the length of these calls is normally distributed with an...
-
You work for Dynamo Consulting Inc., a business consultancy, helping small to medium business owners make better financial decisions. W.T. runs Grant's Emporium, a 'five and dime' store. He's...
-
In the 1992 presidential election, Alaska's 40 election districts averaged 2004 votes per district for President Clinton. The standard deviation was 567. (There are only 40 election districts in...
-
Describe the relationship between financial institutions and financial markets and suggest a method by which this relationship could run smoother. Support your rationale with at least one citation...
-
Problem 8-30 Investment Criteria (LO1, LO2, LO4, LO5) A new furnace for your small factory is being installed right now, will cost $39,000, and will be completed in one year. At that point, it will...
-
Briefly describe the following types of group life insurance plans: a. Group term life insurance b. Group accidental death and dismemberment insurance (AD&D) c. Group universal life insurance d....
-
Describe the flow of costs from raw materials to cost of goods sold in a manufacturing organization.
-
Why do organizations allocate revenues to responsibility centers?
-
What is a benchmarking (performance) gap?
-
\(\sqrt{17} \times(5+3.6)=\sqrt{17} \times 5+\sqrt{17} \times 3.6\) Identify the property of real numbers that is being illustrated.
-
\(\frac{3}{\sqrt{7}} \times 1=\frac{3}{\sqrt{7}}\) Identify the property of real numbers that is being illustrated.
-
\(5 \times 13 \times 4\) Use properties of real numbers and mental math to calculate the expression.
Study smarter with the SolutionInn App