Lab Objectives This lab was designed to reinforce programming concepts from Chapter 3 of Java How to Program: 11/e. In this lab you will practice: • Declaring and using class & methods • Using class objects Problem Description Build the class Employee and the application program to use this class as described in the following programming exercise.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 5PE: Using classes, design an online address book to keep track of the names, addresses, phone numbers,...
icon
Related questions
Question
100%

Hello can you please help me do this Java program?

Lab
Objectives
This lab was designed to reinforce programming concepts from Chapter 3 of Java How to
Program: 11/e. In this lab you will practice:
Declaring and using class & methods
• Using class objects
Problem Description
Build the class Employee and the application program to use this class as described in the
following programming exercise.
Projects Employee
3.13 (Employee Class) Create a class called Employee that includes three instance variables-a first
name (type String), a last name (type String) and a monthly salary (double). Provide a constructor
that initializes the three 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 app named eleves Test that
demonstrates class Employee's capabilities. Create two Employee obj Projects. Employee Test Your Initial
yearly salary. Then give each Employee a 10% raise and display each Employee's yearly salary again.
Transcribed Image Text:Lab Objectives This lab was designed to reinforce programming concepts from Chapter 3 of Java How to Program: 11/e. In this lab you will practice: Declaring and using class & methods • Using class objects Problem Description Build the class Employee and the application program to use this class as described in the following programming exercise. Projects Employee 3.13 (Employee Class) Create a class called Employee that includes three instance variables-a first name (type String), a last name (type String) and a monthly salary (double). Provide a constructor that initializes the three 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 app named eleves Test that demonstrates class Employee's capabilities. Create two Employee obj Projects. Employee Test Your Initial yearly salary. Then give each Employee a 10% raise and display each Employee's yearly salary again.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning