Understand the uml class diagram

Assignment Help Business Management
Reference no: EM131496633

STEP 1: Understand the UML Class Diagram

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.

STEP 2: Code the Employee Class

  1. Create a new project called "CIS247B_Week2Lab_YourName".
  2. Using the provided Class Diagram from Step 1, code the Employee class in the new project (i.e., "Realize the UML Class diagrams").
  3. The default constructor should set the attributes as follows: firstName = "not given", lastName = "not given", gender = "U" (for unknown), dependents = 0, and annualSalary = 20,000.
  4. The multi-arg constructor should initialize all of the attributes using values passed in using its parameter list.
  5. As shown in the Class diagram, each attribute should have a "getter" to retrieve the stored attribute value, and a "setter" that modifies the value.
  6. The calculatePay( ) method of the Employee class should return the value of annual salary divided by 52 (return annualSalary / 52;).
  7. The displayEmployee() method should display all the attributes of the Employee object in a well-formatted string with logical labels applied to each attribute. Don't forget to call calculatePay from within the displayEmployee method in order to display the Employee's weekly pay as well!

STEP 3: Code the Main Program

In the Main class, create code statements that perform the following operations. Be sure you follow proper commenting and programming styles (header, indentation, line spacing, etc.).

  1. Create an Employee object using the default constructor.
  2. 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.)
  3. Using your code from last week, display a divider that contains the string "Employee Information"
  4. Format the currency using the following formatting services:
  5. Display the Employee information.
  6. Create a second Employee object using the multi-argument constructor, setting each of the attributes with appropriate valid values.
  7. Using your code from last week, display a divider that contains the string "Employee Information".
  8. Display the Employee information for the second Employee object.

STEP 4: Compile and Test

When done, compile and run your code.

Then, debug any errors until your code is error-free.

Check your output to ensure that you have the desired output, modify your code as necessary, and rebuild.

STEP 5: Screen Prints

Capture the Console output window and paste into a Word document. The following is a sample screen.

STEP 6: Submit Deliverables

  • Capture the Console output window and paste into a Word document.
  • Put the zip file and screen shots (Word document that contains programming code and screen shots of program output) in the Dropbox.

Reference no: EM131496633

Questions Cloud

Identify your favorite science fiction movie : Identify your favorite science fiction movie and corresponding book/short story and compare the adaptation to the original.
Structured analysis-design : Why is project management different from normal management?
Describe skills or attitudes regarding transferable skills : Describe the knowledge, skills and/or attitudes regarding each of the transferable skills that you've gained as a result of completing this particular project/a
Which of seven types listed by hackman have you experienced : Recall times when you have been part of a team.
Understand the uml class diagram : Use the following UML diagram to build the class. The first section specifies the attributes. The second section specifies the behaviors.
In what ways would such teams meet the above definition : Note down a few words that express the differences between the examples given. Do some sound more like a group or a team than others?
Evaluating the business operations : Write a 2- to 3-page paper evaluating the business operations and network design of your current organization or a previous employer. Include the following:
Discuss and debate the effects of court outcomes : Discuss/debate the effects of court outcomes for those charged with aggravated assault pertaining to domestic violence.
Describe the company and the companys product : Gulf Regional Legal Environment of Business - Describe the company and the company's product. Reflect the objective of your coursework

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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