Display employee information for the second employee object

Assignment Help Programming Languages
Reference no: EM131324958

Lab Assignment

We begin our investigation of object-oriented programming by creating an object-oriented program with a class called Employee. You will create two objects based on the Employee class, along with a class that contains the main method. The attributes, constructors, and methods for this class must satisfy the requirements in Steps 1 through 3. After you create the objects, you will prompt the user for information and then display it.

Use the following UML diagram to build the class. The first section specifies the attributes. The second section specifies the behaviors, and the first character specifies the access modifier value, where:

"-" means that the class member is private, and

"+" means that the class member is public

Create an Employee object using the default constructor.

Prompt for and then set the first name, last name, gender, dependents, and annual salary. (Remember that you have to convert gender, dependents, and annual salary from strings to the appropriate data type.)

Using your code from last week, display a divider that contains the string "Employee Information"

Format the currency using the following formatting services:Display the Employee information.

Create a second Employee object using the multi-argument constructor, setting each of the attributes with appropriate valid values.

Using your code from last week, display a divider that contains the string "Employee Information".

Display the Employee information for the second Employee object.

Reference no: EM131324958

Questions Cloud

Determine the short-run average variable cost : Determine the short-run average variable cost and marginal cost at the output level obtained in Part (d).
Production of a new human being : The primary goal of the reproductive system is the production of a new human being. Let's consider each step of that process, beginning with the formation of gametes (sperm and eggs) and ending with birth. Can someone start us off with the formati..
Did capitalism emerge in the city or the countryside : Did capitalism emerge in the city or the countryside? What ‘social property relations' were necessary for the development of capitalism? Why did they develop in agrarian communities? How do these differ from pre-capitalist relations according to W..
Detected low levels of calcium in the bloodstream : Once the hypothalamus has detected low levels of calcium in the bloodstream, describe the full cascade of events that leads to low bone density.
Display employee information for the second employee object : CIS247B- Display the Employee information for the second Employee object. Create a second Employee object using the multi-argument constructor, setting each of the attributes with appropriate valid values.
Find probability that cool-aire will incur an operating loss : The Occupational Safety and Health Administration (OSHA) requires the firm to install new ventilating equipment in its plant. (Assume that this action has no effect on worker productivity.)
What is annie experiencing : What is Annie experiencing? What are the three stages of General Adaptation Syndrome (GAS)? What stage is she currently experiencing? What hormone is released during this phase and how does it affect the body? What are the main organs involved in thi..
Describe three specific actions aetna could take : Discuss the relationship between the two and describe three specific actions Aetna could take to accomplish the diversity implication. Include at least one citation and reference in your initial post
Describe who called for the initial appointment : Describe the presenting problem from the point of view of the person who called for the appointment and then from the perspective of each member of the family.describe the problem from a societal point of view and from the perspective of each of t..

Reviews

Write a Review

Programming Languages Questions & Answers

  Find the end-to-end delay on each of the three links

Note that the transmission rates are in Mbps and the link distances are in Km. Assume a packet length of 16000 bits. Give your answer in milliseconds.

  Write program to compute summation of four grades

when user press, the program computes summation of four grades (Grade1+Grade2+Grade3+Grade4) and print the result in the picture box (picSum).

  In the context of information processing computer security

1.in the context of information processing computer security and trusted systems explain what is meant by the following

  Identify two key object-oriented concepts

Identify two key OO concepts and explain them as if you were communicating with a nonprogrammer with a limited technology background, using non-programming, non-computing, real-world analogies.

  Write program to establish two savings accounts

Write program which establishes two savings accounts with saver1 having account number 10002 with initial balance of $2,000, and saver2 having account 10003 with initial balance of $3,000.

  Why small to medium sized firm implement pki solution

Why would a small to medium sized firm implement a PKI solution? What are the characteristics required in using a password that will provide security protection for a company?

  Design a class for string field for toppings

Design a class named pizza. Data fields include a string field for toppings (such as pepperoni) and numeric fields for diameter in inches (such as 12) and price (such as 13.99).

  Create gui application that allows the user to enter the

A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie company. Create a GUI application that allows the user to enter the data into text fields.

  How many bitstrings of length

How many bitstrings of length 8 are there that contain 4 (or more) consecutive 0’s or contain 4 (or more) consecutive 1’s?Justify your answer.

  Compare and contrast database connectivity in vb and c#

Compare and contrast database connectivity in VB® and C#. If you studied database connectivity in Java®, include Java® in the comparison. In which language do you find it easiest to implement a connection to a database? Why

  Write a small driver class called testemployee

ITECH1000/5000 Programming Assignment.

  Modify the inventory program to include an add button

Modify the Inventory Program to include an add button, a delete button, and a modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each ..

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