Write a program of the dating game

Assignment Help JAVA Programming
Reference no: EM131176132

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

Reference no: EM131176132

Questions Cloud

Stands convicted for the heinous murder : Fozze Bear, stands convicted for the heinous murder of Miss Piggy. Your supervising attorney is filing an appeal based, in part, on negative comments made by the prosecutor regarding Mr. Bear. Apparently, prosecution referred to the defendant as “evi..
Yourself in regards to the behavior-attitude-motivation : Self-assessment detailing how you see yourself in regards to the behavior, attitude, motivation, stress, and decision making.  Assess your current stress level and address ways that you managed it? What techniques/strategies do you use in the decisio..
Behavior-attitude-motivation-stress and decision making : Self evaluation Exercise detailing how you see yourself in regards to the behavior, attitude, motivation, stress, and decision making. What motivates you most in the current job? What techniques have previous/current bosses used to motivate you and h..
How good are your communication skills : Consider the results that you received on all of the self-assessments you have taken so far this term and the culture of your organization. Where are the areas of conflict? How do you work through these conflicts, and what aspects of the culture keep..
Write a program of the dating game : 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.
Write a program that determines the day of the week : You are to write a program that determines the day of the week for New Year's Day in the year 3000. To do this, you must create your own date class (MyDate) and use the following interface and main program.
Write a program to compute statistics on a list of exam : You are to write a program to compute statistics on a list of exam scores, the Exam Statistics Program (ESP). The input is the name of a text file that contains the number of scores followed by the list of scores.
Write the exam statistics program : Programming Assignment #2 The Exam Statistics Program Include a Table of Contents here... * Assignment #2: The Exam Statistics Program
Design programs that communicate with web servers : Design programs that communicate with Web servers and server-side applications through the Hypertext Transfer Protocol (HTTP). Design Java programs that use the Structured Query Language to query and update relational databases. Describe the Java Ser..

Reviews

Write a Review

 

JAVA Programming Questions & Answers

  Development of a graphical user interface

To understand actual communication with an SMTP server can be achieved using TCP Sockets and understand the development of a graphical user interface (GUI) and use of event handling.

  Program to convert fahrenheit to celsius

Layout the planned structure and steps to accomplish the individual programs. Ensure brief, accurate and complete detailed instructions in the form of pseudocode, not code. Construct two brief explanations for the pseudocode. Provide both programs..

  Sequence of method in vector class

Construct a Vector class implementing a number of vector operations as methods along with a testing program to verify the class is working.

  Explain how a borderlayout manages its display area

Write a Java statement to make the window associated with the object from question 1 visible. Explain how a BorderLayout manages its display area. Explain how a FlowLayout manages its display area

  Advance programming hi i want two copies of the assignment

hi ltbrgti want two copies of the assignment me and my friend are doing same assignment. ltbrgtwe need both the

  How to detect the correct ip address and run it locally

When you compile the two modules, with disabling the package statement, it runs on one single machine, that's running the server

  The string class and/or the stringbuffer class in java

Create a simple Java application that uses the String class and/or the StringBuffer class and at least 4 of the class methods. Show the code, demonstrate it works properly and describe what it is doing.

  Test plan outline a test plan for a substantial real-life

test plan outline a test plan for a substantial real-life system of your choosing. some possible examplesbullbaggage

  Simulating the behaviour of a train management system

You will develop the component classes of a program for simulating the behaviour of a train management system - You must implement these classes as if other programmers were, at the same time, implementing the code that instantiates them and calls t..

  Create a sales tracking program named salestracking.java

create a sales tracking program named SalesTracking.java. This program must track monthly sales as well as compute average yearly sales, total sales for the year, and which month had the highest sales and which month had the lowest sales.

  Write a java program to implement the finite field

Write a program called "GF2.java" to implement the finite field GF(p n ) where p is a prime number and n is a positive integer.  You also need to write four methods to realize "+", "-", "´", and "/".

  Write a java program that prompts the user

Write a Java program that prompts the user to input three numbers.  This program should then output the numbers in an ascending order.

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