En cours

simple java program

You will modify the SpeedDating class, but only by completing the method bodies of the three methods already declared. Do not add any other methods or instance variables to the SpeedDating class, do not modify the constructor, and do not modify the method declarations (“headings”) provided! (Not necessary!)

Complete the SpeedDating Class

Write the method bodies for each of the 3 methods declared in SpeedDating. Study the method declarations and documentation so that you understand what each method does.

it must use one of the Java loops. Nested loops are not necessary.

Do not modify the method declarations (“headings”) in any way!

Note that, by law, Thanksgiving occurs on the 4th Thursday of November

Write a Test Class for Your SpeedDating Class

Your test class will have a main method that does the following:

Create a SpeedDating object

Have the user enter a year, and call the beMyValentine method to print the day of the week on which Valentine’s Day will occur for the next 10 years, starting with the input year. Valentine’s Day (Formerly, Saint Valentine’s Day) is celebrated on February 14th.

Have the user enter another year, call the discoverColumbusDay method, and print the Date object returned. Print the Date in the main method, not in SpeedDating.

Have the user enter the data (month, day, and year) for two Date objects - an earlier date and a later one. Create the two Date objects, call the getHalfWayDate method, and print the Date object returned. Print the Date in the main method, not in SpeedDating.

(Make sure your implementations of the SpeedDating methods have sufficient “internal” documentation)

Compétences : Programmation C++, Java

Voir plus : variables programming, valentine one programming, study programming, starting programming, programming variables, programming methods, objects programming, loops programming, java programming test, programming loops, speeddating java program, valentine, thanksgiving , implementations, any program, java program simple, create java object, java test program, nested, call method, february month, test program, java add data, object method, complete program

Concernant l'employeur :
( 9 commentaires ) Immokalee, United States

N° du projet : #1010453

Décerné à :

thanhhungqb

Please see pmb, thanks.

30 $ USD en 0 jours
(64 Commentaires)
5.0

3 freelance ont fait une offre moyenne de 30 $ pour ce travail

claudiu07

Hello, I will be delighted to work on this project. Let's start.

30 $ USD en 1 jour
(18 Commentaires)
4.7
decato0110

hi, lets start...

30 $ USD en 0 jours
(5 Commentaires)
2.6