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

  Explain a functioning design in unity game engine

Need a functioning design in Unity Game Engine. The rough draft only needs the game level scene, skybox, the terrain (shaped, textured, with trees and grass), the buildings (with functioning doors), the avatar, and being able to "pick up" the two ..

  Creating code for method tostring

Fill in the code for method toString, which must return a string containing the name, account number, and balance for the account.

  Write script in fedora to automate complex system task

Write a script in fedora 10 that will automate a complex system task. The task I have chose is one that will determine the processes that are consuming system resources.

  Create class using static variable to store annual interest

Create class SavingAccount. Use a static variable annualInterestRate to store the annual interest rate for all account holders. Each object of the class contains a private instance variable savingsBalance indicating the amount.

  Assess the key practices and improvement activities from

suppose you are working as a senior software development manager in a software house. the company develops custom

  Write a shell script to send customized mail message to user

Write a shell script to send a customized mail message to the users listed on the command line by login (user) name, only if they are currently logged on. If no users are listed on the command line, an error message should be printed.

  Prepare console application to examine contents of text file

Prepare the C++ console application which examines the contents of a text file. Your program must count the number of: * lines (hint: use getline).

  How many scores they will enter

Because all users may not have 10 scores and we want to keep the scores they entered for use at a later date, the above program will have to be modified to add a menu that lets the user decide how many scores they will enter

  Create a program to compute car-s miles-per-gallon

Create a program which ask's the user for number of miles driven and gallons of gas used. It must compute the car's miles-per-gallon and show the result on the screen.

  2 steps of handling data and invoking procedures

2 steps of handling data and invoking procedures2 steps of handling data and invoking procedures

  Write software application development coding practices

Use the Library and other resources to write a software application development coding practices guide. Your guide should include recommendations

  Design employee objects-display each object-s yearly salary

Design two employee objects and display each object's yearly salary. Then provide each employee 10% raise and display each Employee's yearly salary again.

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