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:
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started