Create a constructor to initialize student''s attributes

Assignment Help Management Information Sys
Reference no: EM13767257

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 3attributes: 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 3different 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 2letters of the student's last name (converted to upper case) and the last 4characters of the SSN to derive studentID.

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

• 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 2methods: getGPA() and getTotalCredits().Implement these methods in the Student class you created for Assignment 6-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.

Reference no: EM13767257

Questions Cloud

Refund of state income taxes paid last year : In addition to the above sales, Spencer received a $100 refund of state income taxes paid last year. Spencer used the standard deduction last year to compute his tax liability. Prepare Form 1040 and Schedule D and Form 8949 for him
Competitive markets-price-quality and monopoly : From the e-Activity, analyze at least two (2) primary economic assumptions and examine their short- and long-term impact on promoting the competitive market model in the healthcare environment.
Which of the following are assertions : Which of the following are assertions (claims)?A. Some chicken-pluckers are banjo-players. B. If an earthquake occurs in Japan, a tsunami could hit California. C. What will become of us?
History of process costing in the united states : Research the history of process costing in the United States. When did it begin to be used in manufacturing companies? What type of company would use a process costing system?
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
Product of the accounting cycle : Financial statements are a product of the accounting cycle. Think about two different companies: a manufacturing company, and a retail company. Why would different companies have different accounting cycles?
Write a paper on iat predictive validity : Write a paper on IAT Predictive Validity, A Meta-Analysis on the Correlation Between the Implicit Association Test and Explicit Self-Report Measures, Understanding and Using the Implicit Association Test: II
Role of police when they apply the broken window theory : What is the role of police when they apply the broken window theory to specific actions on the street
Determine the subgame perfect equilibria : What is the salary t predicted by the standard bargaining solution and what is the salary t predicted by the standard bargaining solution - Draw the extensive form of game and determine the subgame perfect equilibria.

Reviews

Write a Review

Management Information Sys Questions & Answers

  Identifiable and unidentified information

Differentiate between the privacy rule and the security rule as it applies to actual use in the laboratory. Differentiate between identifiable and unidentified information and their uses

  Provide an example of a dmz

Your senior network architect suddenly left the company that you work for, and you are left alone with your manager and 3 help desk support staff who you are not too familiar with the network operation of the organization

  How will the composition of the dream team

How will the composition of the dream team be changed if the following constraints are changed as follows: the average number of rebounds among the 12 selected players needs to be at least 8 rebounds per game

  Relationship between business and the internet

Discuss how you view the relationship between business and the Internet, Web, Intranets and Extranets. Research organizations that are in the forefront of Internet or Web innovation

  Multidimensional analysis data versus information1 how can

multidimensional analysis data versus information1. how can you use a relational database to store data be specific.2.

  List the problems associated with information silos what is

list the problems associated with information silos. what is the fundamental problem of information silos? how can this

  Differences between an outpatient and an inpatient record

Compare and discuss the differences between an outpatient and an inpatient record. In your discussion, identify the differences in content and explain why these differences are necessary

  Advantages of computer-based medical recordsthe office

advantages of computer-based medical recordsthe office manager of the physician practice office where you work has

  Initiating and implementation of drone delivery system

Topic: "Initiating and implementation of drone delivery system in a retail environment." Paper should consist of a one-page summary of progress and include the summary of the company, company's needs analysis, and systems analysis

  Consider the potential future of the energy economy on a

consider the potential future of the energy economy on a global scale. describe the future path of the economics of oil

  Sdlv versus agile explained in detail

SDLV versus Agile Explained in Detail - The SDLC methodology uses a cascading flow in the process phases of conception, feasibility and analysis, design and development, implementation, testing, release and maintenance.

  Analysis of use of new technologywhat are some of the pros

analysis of use of new technologywhat are some of the pros and cons of using newer communications technologies when

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