Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Programming Assignment #3

The Dating Game

Table of Contents for each section of this submission (i.e. Source Code listing, screen captures and UML design) here….Also, may include Javadoc source here.

Source code listing here….

import java.io.*;

importjava.util.Scanner;

* Year3000 program

 * Driver program for the DateInterface and MyDate class.

 * @authorStudent Name

* @date24 June 2013

* @version 1.0

publicclass Year3000 {

publicstaticvoid main(String[] args) throwsIOException {

logic here…

}

* userMenu method

*

* This method displays the user menu to the console.

*

* @authorStudent Name

* @date24 June 2013

* @version 1.0

publicstaticvoiduserMenu() {

logic here…

}

}

/**

Interface for Date objects to be used by the Year3000 driver program.

*/

publicinterfaceDateInterface

{

/** @return the day of the month (1-31) */

publicintgetDay();

/** @return the day of the week (0-6) */

publicintgetDow();

/** @return the month of the year (1-12) */

publicintgetMonth();

/** @return the year (four digits) */

publicintgetYear();

/** sets the date

@param m the month of the year (1-12)

@param d the day of the month (1-31)

@param y the year (four digits)

@paramdow the day of the week (0-6) */

publicvoid set(int m, int d, int y, intdow);

/** moves the date forward by exactly one day

@return */

publicvoid tomorrow();

/** @return the date as a String in the format "Monday March 18, 2002" */

public String toString();

/** Moves the date backward by exactly one day. */

publicvoid yesterday();

/** sets the date to today;

make this empty {} unless you do the extra credit. */

publicvoid today();

}

importjava.util.Calendar;

importjava.util.GregorianCalendar;

 * MyDate Class

*

 * Description here….

*

 * Preconditions:

 * Postconditions:

 *

 * @authorStudent Name

* @date24 June 2013

* @version 1.0

*

publicclassMyDateimplementsDateInterface {

declarations here….

publicMyDate() {

}

* MyDate d

*

* Description here….

*

* Preconditions:

* Postconditions:

*

* @authorStudent Name

* @date24 June 2013

* @version 1.0

* @param d

publicMyDate(MyDate d) {

logic and method calls for date here…

}

* set method

*

* Description here…

*

* Preconditions:

* Postconditions:

*

* @authorStudent Name

* @date24 June 2013

* @version 1.0

* @paramDateInterface

* @param #set(int, int, int, int)

publicvoid set(int m, int d, int y, intdw) {

variable assignments here…

}

* tomorrow method

*

* Description here…

*

* Preconditions:

* Postconditions:

*

* @authorStudent Name

* @date24 June 2013

* @version 1.0

* @paramDateInterface

* @returnMyDate

public void tomorrow() {

logic here…

}

* checkLeapYear method

*

* Description here….

*

* Preconditions:

* Postconditions:

*

* @authorStudent Name

* @date24 June 2013

* @version 1.0

* @returnboolean

public boolean checkLeapYear() {

logic here…

}

* checkDaysInMonth method

*

* Description here….

*

* Preconditions:

* Postconditions:

*

* @authorStudent Name

* @date24 June 2013

* @version 1.0

* @return integer

* @paramlpYr

public int checkDaysInMonth(booleanlpYr) {

logic here….

}

* toString method

*

* Description here….

*

* Preconditions:

* Postconditions:

*

* @authorStudent Name

* @date24 June 2013

* @version 1.0

* @return String

* @param java

* @return formatted dateString

public String toString() {

logic here…

}

* yesterday method

*

* Description here….

*

* Preconditions:

* Postconditions:

*

* @authorStudent Name

* @date24 June 2013

* @version 1.0

* @return String

* @paramDateInterface

* @returnMyDate

public void yesterday() {

logic here….

}

* today method

*

* Description here….

*

* Pre-conditions:

* Post-conditions:

*

* @authorStudent Name

* @date24 June 2013

* @version 1.0

* @return void

* @paramDateInterface

* @return month, day, year, dow as integers

public void today() {

logic here…

}

}

Place screen captures here of at least 3 runs (different scenarios) of your program (be sure they are readable)…

Insert UML design diagrams here…


Attachment:- Programming Assignment 3 - The Dating Game Templateb.docx

Java, Programming

  • Category:- Java
  • Reference No.:- M91930545
  • Price:- $90

Guranteed 48 Hours Delivery, In Price:- $90

Have any Question?


Related Questions in Java

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

Can someone help me please with those question1what is the

Can someone help me please with those question 1:what is the best data type for student id datatime,currency,number,decimal 2:which relationshipis preferable? one to one,one to many,many to many 3:if you add table A's pr ...

Can someone kindly help me to consider whether java

Can someone kindly help me to consider whether Java provides the facility of operator overloading? If it does, may you kindly describe how overloading operators can be accomplished? If not, may you kindly describe why yo ...

Assessment instructionsin this assessment you will complete

Assessment Instructions In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using th ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As