Chat with us, powered by LiveChat The purpose of this homework is for you to apply your knowledge | Writedemy

The purpose of this homework is for you to apply your knowledge

The purpose of this homework is for you to apply your knowledge

Question

Instructions
The purpose of this homework is for you to apply your knowledge of Java to create a simple Java program that implements two different APIs.

Develop a simple Java program that implements two different APIs:

1. (Use the Random class) Create a Random object with seed 1000 and display the first 50 random integers between 0 and 100 using the nextInt(100) method.

2. (Use the GregorianCalendar class) Java API has the GregorianCalendar class in the java.util package, which you can use to obtain the year, month, and day of a date. The no-arg constructor constructs an instance for the current date, and the methods get(GregorianCalendar.YEAR), get(GregorianCalendar.MONTH), and get(GregorianCalendar.DAY_OF_MONTH) return the year, month, and day. Perform two tasks:
a. Display the current year, month, and day.
b. The GregorianCalendar class has the setTimeInMillis(long), which can be used to set a specified elapsed time since January 1, 1970. Set the value to 1234567898765L and display the year, month, and day.

Deliverables:

Java source code file(s).
Java source code must compile. Uncompiled source code will incur an automatic 10 point deduction in grade.
Java source code must follow object-oriented principles of inheritance, encapsulation, and polymorphism. Examples: all data variables of the class are private; constructors, methods, and class names are public, proper syntax for inheritance or interface, etc.
Java source code must contain a comprehensive commented documentation section that contains the Approach, Lessons Learned, Test Plan, and Possible Improvement sub-sections with at least 4 bullet points each.
For modularity, you only can have one class or interface per Java file maximum.

Develop a simple Java program that implements two different APIs:

1. (Use the Random class) Create a Random object with seed 1000 and display the first 50 random integers between 0 and 100 using the nextInt(100) method.

2. (Use the GregorianCalendar class) Java API has the GregorianCalendar class in the java.util package, which you can use to obtain the year, month, and day of a date. The no-arg constructor constructs an instance for the current date, and the methods get(GregorianCalendar.YEAR), get(GregorianCalendar.MONTH), and get(GregorianCalendar.DAY_OF_MONTH) return the year, month, and day. Perform two tasks:
a. Display the current year, month, and day.
b. The GregorianCalendar class has the setTimeInMillis(long), which can be used to set a specified elapsed time since January 1, 1970. Set the value to 1234567898765L and display the year, month, and day.

Deliverables

Java source code file(s).
Java source code must compile. Uncompiled source code will incur an automatic 10 point deduction in grade.
Java source code must follow object-oriented principles of inheritance, encapsulation, and polymorphism. Examples: all data variables of the class are private; constructors, methods, and class names are public, proper syntax for inheritance or interface, etc.
Java source code must contain a comprehensive commented documentation section that contains the Approach, Lessons Learned, Test Plan, and Possible Improvement sub-sections with at least 4 bullet points each.
For modularity, you only can have one class or interface per Java file maximum.
Lateness penalties: 10 points deducted for each late day of submission.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order