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

  Information technology and the changing fabric

Illustrations of concepts from organizational structure, organizational power and politics and organizational culture.

  Case study: software-as-a-service goes mainstream

Explain the questions based on case study. case study - salesforce.com: software-as-a-service goes mainstream

  Research proposal on cloud computing

The usage and influence of outsourcing and cloud computing on Management Information Systems is the proposed topic of the research project.

  Host an e-commerce site for a small start-up company

This paper will help develop internet skills in commercial services for hosting an e-commerce site for a small start-up company.

  How are internet technologies affecting the structure

How are Internet technologies affecting the structure and work roles of modern organizations?

  Segregation of duties in the personal computing environment

Why is inadequate segregation of duties a problem in the personal computing environment?

  Social media strategy implementation and evaluation

Social media strategy implementation and evaluation

  Problems in the personal computing environment

What is the basic purpose behind segregation of duties a problem in the personal computing environment?

  Role of it/is in an organisation

Prepare a presentation on Information Systems and Organizational changes

  Perky pies

Information systems to adequately manage supply both up and down stream.

  Mark the equilibrium price and quantity

The demand schedule for computer chips.

  Visit and analyze the company-specific web-site

Visit and analyze the Company-specific web-site with respect to E-Commerce issues

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