Question: Assignment 6 CS210.03 Spring 2017 Due Monday April 24th @ 7pm Assignment 6 consists of practicing creating classes and using objects. You are required to

Assignment 6

CS210.03

Spring 2017

Due Monday April 24th @ 7pm

Assignment 6 consists of practicing creating classes and using objects. You are required to create two new classes: Student and Date. These two classes will have the following fields: Student:

-String name

-int id

-Date birthdate Date:

-int month

-int day

-int year

Both classes will have a constructor that takes arguments to set the intial values for each of their fields. Both classes will have a method titled toString that returns a String in the following format:

Student.toString() returns:

:

Birthdate: Student ID:

Date.toString() returns:

//

Write a simple main method in your public class that creates a new student object and prints the object in the correct format.

Sample output is as follows:

~/Desktop java A6 tyler

Student ID: 1001

Birthdate: 9/23/1994

~/Desktop

Deliverables:

You may work in groups of two for this project. Submit a compressed (.zip) folder to the iLearn submission link for assignment 2. The folder will contain two files: your java code, and a writeup, in PDF format, stating what you did, who (if anyone) your partner was, any difficulty you had, and what you learned.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!