Create a class called date that includes 3 instance variable

Assignment Help Programming Languages
Reference no: EM13773612

Exercise 1. (Modified GradeBook Class) Modify class Gradebook (fig. 3.10) as follows:

Include a String instance variable that represents the name of the course's instructor.

Provide a set method to change the instructor's name and a get method to retrieve it.

Modify the constructor to specify 2 parameters-one for the course name and 1 for the instructor's name.

Modify method displayMessage to output the welcome message and course name, followed by "This course is presented by:" and the instructor's name.

Exercise 2. JHTP (Employee Class) Create a class called Employee that includes 3 instance variables-a first name (type String), a last name (type String), and a monthly salary (double). Provide a constructor that initializes the 3 instance variables. Provide a set and a get method for each instance variable. If the monthly salary is not positive, do not set its value. Write a test application named EmployeeTest that demonstrates class Employee's capabilities. Create 2 Employee objects and display each object's yearly salary. Then give each Employee a 10% raise and display each Employee's yearly salary again.

Exercise 3. JHTP (Date Class) Create a class called Date that includes 3 instance variables-a month (type int), a day (type int), and a year (type int). Provide a constructor that initializes the 3 instance variables and assumes the values provided are correct. Provide a set and a get method for each instance variable. Provide a method displayDate that displays the month, day, and year separated by forward slashes(/). Write a test application named DateTest that demonstrates class Date's capabilities.

Reference no: EM13773612

Questions Cloud

Verbal and nonverbal communication : Write a 1,750- to 2,100-word paper describing how verbal and nonverbal communication can affect communication in the following areas:
Including images in documents is a professional option : Explain whether or not you believe including images in documents is a professional option when creating a document. Justify your response with at least one (1) example.
Health and chronic conditions issues : Describe the role of seniors in the chosen minority groups. Explain the changes in the role of seniors over the years.
What would be the best type of presentation : What would be the best type of presentation to give to the committee members to get them to help you locate alumni?
Create a class called date that includes 3 instance variable : Create a class called Date that includes 3 instance variables-a month (type int), a day (type int), and a year (type int). Provide a constructor that initializes the 3 instance variables and assumes the values provided are correct.
Cure of chronic illness issues : How does Qi Gong combine the social aspect of well-being in producing a greater patient immunity response?
Type of environmental health problem : The study of environmental health is crucial to one's understanding of the hazards and potential adverse effects posed by environmental agents and the extent to which environmental factors play a role in human disease. This foundation is essential..
Discuss the effects of your own enculturation : Discuss the effects of your own enculturation or group identification that may have influenced your biases. State your position on the topic you selected for Assignment.
Examine the steps and types of testing and quality assurance : Examine the steps and types of testing and quality assurance needed in software development.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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