Placeholder

CSIS 212 Programming Assignment 6 Date Class

$19.00

Description

Exercise 7.13 JHTP (Date Class): Create a class called Date that includes 3 instance variables—a month (type int), a day (type int), and a year (type int). Provide a constructor that initializes the 3 instance variables and assumes the values provided are correct. Provide a set and a get method for each instance variable. Provide a method displayDate that displays the month, day, and year separated by forward slashes(/). Write a test application named DateTest that demonstrates class Date’s capabilities.
SCREENSHOTS
SOLUTION
PAYMENT
CSIS212 Assignment 6 Report
CSIS212 Assignment 6 Screenshot
The solution consists of:
A report word document for this assignment
All Java programs in case you want to run theses programs on your computer.
Screenshots while running programs
Attachments [Move over files to preview content of those files]
CSIS212_Assignment_6.zip (251.96 KB)
CSIS212-Assignment-6-Report-Screenshot.png
CSIS212-Assignment-6-Screenshot-1.png
CSIS_212_Assignment_6_Report.docx
Source Code
Date.java
DateTest.java
Preview Date.java
}
xxxxxx xxx xxxxxx() {
xxxxxx xxx;
}
public void setDay(int d) {
day = d;
}

public int getMonth() {
return month;
}

public void setMonth(int m) {
month = m;
}
xxxxxx xxx xxxxxxx() {
xxxxxx xxxx;
}
xxxxxx xxxx xxxxxxx(xxx x) {
Preview DateTest.java
xxxxxx xxxxx xxxxxxxx {
xxxxxx xxxxxx xxxx xxxx(xxxxxx[] xxxx) {
xxxxxx.xxx.xxxxxxx(“xxxxxx xxxxx xxxx xxxxxx: xxx=1, xxxxx=11, xxxx=2017”);
xxxx xxxxxxxxx = xxx xxxx(1, 11, 2017);
firstDate.displayDate();
System.out.println(“Create second Date object: day=5, month=7, year=1990”);
Date secondDate = new Date(5, 7, 1990);
secondDate.displayDate();
}
}
}
Price: $19
You May Also Like:
CSIS 212 Programming Assignment 1 Create Five Programs
CSIS 212 Programming Assignment 2 Salary Calculator
CSIS 212 Programming Assignment 3 Bar Chart Printing Program
CSIS 212 Programming Assignment 4 Multiples Circle Area Computer-Assisted Instruction
CSIS 212 Programming Assignment 5 Variable-Length Argument List Dice Rolling
CSIS 212 Programming Assignment 7 Rectangle Class
CSIS 212 Programming Assignment 8 Payroll Modification

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.