Print out and display a month object properly

Assignment Help JAVA Programming
Reference no: EM131591639

The question is as follows:

Write a program that prompts the user for a year (e.g. 1945) and then prints a calendar for that year. The entire year should be laid out in 4 rows of months each consisting of 3 months. Each month should be printed in the following format.
January
S M T W T F S
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

Hint: Use a multidimensional array to store month objects. Implement a method called weekString in the month class that given an integer x between 0-5 returns the string representing the xth week. weekString(2) sent to the month object shown below should return "12 13 14 15 16 17 18". You can't change code until you understand it. Go over the calPrinter classes carefully before you begin.

I've attatched the programs we are given to build the solution out of.

So far ive only been able to use a system.print inside the loop that creates the days of the month to display the month in the Month class. This is completely unformatted and seems like the incorrect way to go about it.

Even some tips or approaches to take would be really helpful. I don't know whether to make a new class or what.

I basically need to print out and display a Month object properly, which is a 2d array. After I can do this, I need to make an array of month objects, and print them out line by line in a 4x3 grid.

Attachment:- Month.rar

Reference no: EM131591639

Questions Cloud

Explain the importance of yield-to-maturity : Explain the feature in detail and explain the importance of yield-to-maturity.
What is your initial deposit into your account : What is a ‘short sale?’ Suppose you short 10,000 shares of stock at a price of $40. What is your initial deposit into your account?
Globalization on strategic management planning : Evaluate the effects of globalization on strategic management planning.
What are your next steps to help manage the given crisis : What are your next steps to help manage this crisis? What referrals would most likely be added to her new intervention plan?
Print out and display a month object properly : Print out and display a Month object properly, which is a 2d array. After I can do this, I need to make an array of month objects, and print them out line
Reconstruct the summary journal entries : Compute Microsoft's accounts receivable turnover for 2011 and discuss your results. Microsoft had sales revenue of $69,943 million in 2011.
What is the role of state-based action coalitions : Identify the importance of the IOM "Future of Nursing" report related to nursing practice, nursing education and nursing workforce development.
Future value of multiple annuities assume : Future Value of Multiple Annuities Assume that you contribute $130 per month to a retirement plan for 20 years.
What is your rate of return on your investment : Suppose you buy 1,000 shares of Google at $300 per share. What is your rate of return on your investment?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd