Create a constructor to initialize student''s attributes

Assignment Help Management Information Sys
Reference no: EM13766564

Submit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running.

Assignment 1

In this assignment, you are to create a Person class with the following private attributes:

Last name - type String

First name - type String

Social Security Number - type String

Date of birth - type Date which is a class you create that has the following 3 attributes: int day, int month, and int year and its toString() method returns the date in the "day/month/year" format.

Use a constructor to initialize the Person attributes. Encapsulate each of these attributes and test the setters by using them in the constructor to set the attributes. In the Person class override the Object toString() method so that it will return a String with all of a person's information when called. Use your getter methods to implement the toString() method (do not access the Person attributes directly from toString(). Test your class by creating a PersonTest class and instantiating 3 different students and then using the toString() method to print out all the information on each student.

Your test run should look like the following:

Assignment 2

In this assignment, you are going to create a subclass of Person called student. The Student class has the following private attributes:
Student ID - type String. The student ID must be derived using the private method setStudendID() of the Student class. setStudentID() should use the first 2 letters of the student's last name (converted to upper case) and the last 4 characters of the SSN to derive studentID.

Course - type String. This is the name of their current class (assume a student can only take 1 class).

Professor - type String. This is the name of their current professor.

Create a constructor to initialize Student's attributes and use setters (you need to encapsulate your attributes). In the constructor, use the setter methods to set the attributes rather than setting them directly. The constructor should take the following arguments: first name, last name, SSN, date of birth, course, and professor.

Your test run should look something like the following:

Assignment 3

In this assignment, you are going to create an interface called Transcripts with 2 methods: getGPA() and getTotalCredits(). Implement these methods in the Student class you created for Assignment 2.

getGPA()'s return type is double and it returns the value 3.5

getTotalCredits()'s return type is int and it returns the value 125

Modify the toString() method in Student class to include the student's GPA and total credits.

Your test run should look something like the following:

Instructions

Submit all of your assignments in a zip file. Your zip file must include the .java and .class files as well as a Word document with a screen shot of your program running.

Assignment 4: Oracle eKit Practice: Using a Try/Catch Block to Handle an Exception

In this assignment, you handle an exception thrown by the parse() method of SimpleDateFormat. During the assignment, you:

Use the Java API documentation to examine the SimpleDateFormat class and find the exception thrown by its parse() method.

Create a class that calls that parse() method.

Write a try/catch block to catch the exception thrown by parse().

See your eKit Activity Guide for more details. Run DateTest with both correctly and incorrectly formatted dates and include screen shots of both runs when you submit the rest of your assignment.

Assignment 5: Enhance Assignment 3 with Exception Handling and Deploy

In this assignment, you are going to modify your Assignment 6-3 code to include exception handling for the setDay() and setMonth() setter methods in your Date class. If the user via the Date constructor or the setDay() method tries to set the day attribute to a value less than 1 or greater than 31, setDay() should throw an IllegalArgumentException. setMonth() should insure that the month attribute is between 1 and 12 or throw an IllegalArgumentException. The calling methods or constructors should use try/catch blocks when calling either setDay() or setMonth(). Modify your PersonTest class, as necessary, to demonstrate your exception handling.

Once you have your exception handling enhancements in place, create a JAR file for deployment and submit it along with your java, class, and Word (screen shot) files.

Reference no: EM13766564

Questions Cloud

What is an aggressive financing strategy : What is an aggressive financing strategy? What are the components of aggressive finance strategies? What is difference between the aggressive and conservative financing model?
Research the regulations regarding rental income and expense : IRS Code Section 280A provides guidance on what expenses are allowed on rental property and how to allocate those expenses. Use the tax research methodology to research the regulations regarding rental income and expenses.
Where and how to search for appropriate research materials : This portion of the Application is designed to help you discover where and how to search for appropriate research materials. Here, you are not engaging in a full review of the literature as you might do for a research paper, a KAM, or your final t..
The barometric pressure 1 atm : a) For a system having internal pressure of 760 mm Hg, would have what gage pressure if the barometric pressure 1 atm?b) For the same barometric pressure and a gage pressure of -136 mm H2O, what would be the absolute pressure?
Create a constructor to initialize student''s attributes : Create a constructor to initialize Student's attributes and use setters (you need to encapsulate your attributes). In the constructor, use the setter methods to set the attributes rather than setting them directly. The constructor should take the ..
What embarrassing thing does ralph say to himself : What embarrassing thing does Ralph say to himself near the beginning of the chapter that he?s afraid someone might have overheard? What does he mean by it?
Importance of accrual based financial statements : Draft a memo to the client to explain the importance of accrual based financial statements, make sure you: explain the difference between a cash basis and an accrual basis measure of performance.
Introducing new privacy or security options to consumers : Name one way the article suggests introducing new privacy or security options to consumers. What is a possible use of the Internet of Things in a "Mega-City"?
How the event relates to the history of psychotherapy : How the event relates to the history of psychotherapy and therapeutic techniques, Prevalent psychotherapy theories and concepts related to the event, Theorists associated with the event, if any

Reviews

Write a Review

 

Management Information Sys Questions & Answers

  Skills for a technology manager

Skills for a technology manager and What are some of the skills you think a technology manager should have?

  Provide details of how the mobile self-service

Prototyping, Write a proposal to the University including the following. The prototypes that could be created.The type of usability testing to use in determining the design that will provide the best user experience.

  Evaluate the impact of the internet on newspaper

Evaluate the impact of the Internet on newspaper and book publishers using the value chain and competitive forces models

  What is the difference in the way

Interpeting question - What is the difference in the way the web is used today from the 1.0 world

  Explain internal controls and risk management

Internal Controls and Risk Management - The separation of the programming and operating functions is explained step-by-step in this solution. The response also has the sources used.

  Patient-centric management systems

Patient-Centric Management Systems-Suggest a significant advantage to integrating a computerized physician order entry system (COPE) and a clinical decision support system (CDSS), as part of an organization's EHR. Provide support for your rationale

  What type of disaster plan should this organization have

Identify a health care facility in your area (Maryland preferred). What type of disaster plan should this organization have in place? What are three specific events that an HIM professional should prepare to prevent

  Cost and benefits analysis with roi

Cost and benefits Analysis with ROI included - Prepare the analysis as you would present it to you business stakeholders& other important business and project members.

  It department objectives and goals

Specific - Objectives should specify what they want to achieve and Measurable - You should be able to measure whether you are meeting the objectives or not.

  Compare and contrast the management information systems

Compare and contrast the management information systems (MIS) in place in 2 distinctly different organizations. Compare each organization's use of information systems to help manage internal operations and to make decisions.

  Presentation for the enterprise security plan

Finalize your presentation for the Enterprise Security Plan. The presentation should target senior leadership at the organization and should effectively cover the material in the paper.

  How it might relate to your everyday life

describe, in your own words, why the issue is important to you and how it might relate to your everyday life and Describe how you feel about the issue

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd