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)
-
What carbonyl compounds give the following alcohols on reduction with LiAlH4? Show allpossibilities. (a) CH- (b) CHCH3 (d) (CH)2HCH20 (c)
-
A space station is built in the shape of a three- dimensional simplex whose nodes are at the positions 0. e1, e2, e3 R3, and each pair of nodes is connected by a bar. (a) Sketch the space station...
-
When you remove a dielectric slab from between the plates of a charged isolated capacitor, what happens to the energy stored in the capacitor? Why does this happen to the stored energy?
-
Ocean Division currently earns $780,000 and has divisional assets of $3.9 million. The division manager is considering the acquisition of a new asset that will add to profit. The investment has a...
-
4. 5. In which of following conditions a real gas would behave ideally? (a) Low pressure and low temperature ha (b) At value of temperature equal to its Boyle's temperature (c) Between its critical...
-
Company A is a global company based in the United States that operates in the financial industry. Company A serves its customers with financial products, such as checking accounts, bank cards, and...
-
Using the account information on the following page, prepare a multiple-step income statement and a statement of retained earnings. To qualify for full points, your assignment must meet the following...
-
State the appointment procedure and terms of office of CAG of India.
-
Information and means of information are by no means equivalent terms. Explain.
-
State the main features of departmental undertakings.
-
How and in what way does verification of assets and liabilities differ from vouching?
-
What are the Acts relevant for bank audit?
-
IQ scores typically are standardized to have a mean of 100 and astandard deviation of 15. GRE scores are standardized to havea mean of 500 and a and a standard deviation of 100. T-scoresare...
-
Discuss whether responsible human resources management should apply different standards for the home company and suppliers, for developed countries and developing countries, and for large companies...
-
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?
-
Use the numbers for the alcohol and tobacco category from the table in the Application "Goods with a Large Consumer Surplus Loss from Price Increases" to draw a figure that illustrates the roles that...
-
Change the answer given in the Challenge Solution for the short run rather than for the long run.
-
Because many consumers choose between coffee and tea, the coffee and tea demand functions depend on both prices. Suppose the demand curves for coffee and tea are where \(Q_{c}\) is the quantity of...
Study smarter with the SolutionInn App