Write a small driver class called testemployee

Assignment Help Programming Languages
Reference no: EM131063528

Programming Assignment-

The assignment task consists of implementing a tool which would assist the manager of a small company in scheduling employees. The Appendix at the back of this document provides a sample screenshot showing a working solution to the assignment as a guide to how it should function.

Learning Outcomes Assessed - The following course learning outcomes are assessed by completing this assessment:

• identify and use the correct syntax of a common programming language;
• recall and use typical programming constructs to design and implement simple software solutions;
• reproduce and adapt commonly used basic algorithms;
• explain the importance of programming style concepts (documentation, mnemonic names, indentation);
• utilise pseudocode and/or algorithms as a major program design technique;
• write and implement a solution algorithm using basic programming constructs;
• demonstrate debugging and testing skills whilst writing code;
• describe program functionality based on analysis of given program code
• develop self-reliance and judgement in adapting algorithms to diverse contexts;
• design and write program solutions to identified problems using accepted design constructs

Assessment Details

The assignment task consists of implementing a tool which would assist the manager of a small company in scheduling employees. The details of the company's operations are as follows:

• It operates on 5 days of the week (not on the weekends). On each day the company runs four shifts, and a single employee is required for each shift.

• The company employs both permanent employees and casual employees.

• Permanent employees are allocated to the same shift for all 5 days of a week, and are paid a fixed weekly wage.

• Casual employees can be allocated to any number of shifts per week (including zero), and are paid a fixed amount per shift worked.

The Employee Class

The first stage in this assignment is to define a Java class for an Employee based on the UML diagram on the next page. The methods of Employee should perform as follows:

- The constructor simply initialises the instance variables to the values provided as parameters, and sets shiftsWorkedThisWeek to 0

- The accessor methods (gets) simply return the value of their corresponding variable

- There are no set methods - it is assumed that the employee's name and ID will not change

- resetShiftsWorkedThisWeek() sets shiftsWorkedThisWeek to 0

- incrementShiftsWorkedThisWeek () adds one on to the current value of shiftsWorkedThisWeek

- calculateWeeklyPay() is provided so that it can be over-ridden by the subclasses - this method can be declared as abstract

- the toString method returns a String describing the Employee

You should also write a small driver class called TestEmployee, and thoroughly test the Employee class before proceeding further.

Attachment:- Assignment.rar

Reference no: EM131063528

Questions Cloud

What is the estimated annual operating cash flow : A company is considering a 5-year project to open a new product line. A new machine with an installed cost of $110,000 would be required to manufacture their new product, which is estimated to produce sales of $80,000 in new revenues each year. If st..
Employee salary reduction contributions : Which of the following are true of contributions to a SIMPLE IRA? (1) employee salary reduction contributions are subject to FICA (2) eligible employees may make catch-up contributions of $5,000 in 2011 (3)
What is the initial investment outlay : Talbot Industries is considering launching a new product. The new manufacturing equipment will cost $10 million, and production and sales will require an initial $3 million investment in net operating working capital. What is the initial investment o..
Non-performing assets and their impact on bank profitability : Write a report on "Non-Performing Assets and Their impact on Bank Profitability", Today, we are living in the age of market. Every day, domination is made by the market and discourse and political reality is done every day. From the respective market..
Write a small driver class called testemployee : ITECH1000/5000 Programming Assignment.
The balance owed in the purchase : Bob sells investment property in the city for $1.2 million in which he has a basis of $300,000 to Sue. Sue pays Bob $240,000 in cash and gives him a promissory note for $960,000 for the balance owed in the purchase.
Performance specifications of robotic hand that can write : Performance specifications of robotic hand that can write
Compare samsung and apple ratios to the industry : Compare Samsung and Apple Ratios to the industry (peer) averages and comment on how they stand when you benchmark the results?
Determine linear correlation between the two variables : find the value of the linear correlation coefficient r, and find the critical values of r from Table VI, Appendix A, p. A-14, of your textbook Elementary Statistics. Use α = 0.05.

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