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

  Calculate the exact starting address for job q in bytes

In a system using the relocatable dynamic partitions scheme, given the following situation (and using decimal form): Job Q is loaded into memory starting at memory location 42k. Calculate the exact starting address for job Q in bytes

  What are the elements of an erp system

What are the elements of an ERP system and Describe the hyper-social organization. Explain the four pillars of a hyper-social organization

  Negatives aspects of establishing crm

Customer Relationship Management explained in this answer - Can you help me with this assignment?

  Data on individuals into comprehensive databases

Collecting Data on Individuals into Comprehensive Databases - individuals into comprehensive databases.

  Business problem in the realm of information systems

Describe a business problem in the realm of information systems, information technology, or electronic commerce at your work. The objective of this section is to clearly IDENTIFY the problem and explain WHY it is a problem.

  Write research paper about data communication

Write research paper about Data Communication

  Business-to-business ecommerce

Fill in the blanks to this chart, Pretend that there is a hair cutting business and there is a store similar to yours being placed 5 miles down the road

  Gve relevant descriptive statistics including graphs run

so lets try a real correlation linear regression model that comes up quite often.try to solve this problem in r. we

  Show the bottom-up and top-down budgets

Bottom-Up and Top-Down Budgets - Contrast the strengths of bottom-up and top-down approaches to project budgeting.

  Non-technical and technical staff relationshow can a

non-technical and technical staff relationshow can a technology manager help to foster good working relationships

  Systems context diagramdefine the term system give an

systems context diagramdefine the term system. give an example of a business system and create a context diagram to

  Bottom-up and top-down budgetsbottom-up and top-down are

bottom-up and top-down budgetsbottom-up and top-down are the two traditional approaches to estimating project budgets.

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