Ask C/C++ Expert


Home >> C/C++

This assignment should be done individually. The assignment consists of 4 parts:

1) Writing a test plan;

2) Writing a C program with reasonable comments and sensible variable names;

3) Test and documenting the testing of your c program

4) A report

The day field is a number with the following meaning

Number

Meaning

1

Sunday

2

Monday

3

Tuesday

4

Wednesday

5

Thursday

6

Friday

7

Saturday

8

The worker Died while Picking

9

The worker has 9 or more children

NOTE-1: Each file has between 2 and 10 lines

NOTE-2: Each file has a last line with a day of 0 the remainder of that line should be ignored (it will always have four fields of which the first and last are numeric)

NOTE-3: Times are in fractional hours (not HH:MM)

NOTE-4: Day 8 and 9 are special conditions for students wishing to get a grade of more than 74% for the assignment

NOTE-5: If you choose to process day 9 then you need to store the necessary vales in a suitable variable (eg array)for later processing. You may not read the file twice in the processing of a single menu option.

NOTE-6: Day 8 and day 9 records can occur anywhere in the file

Rates of pay:

The first 40 hours of work for the week is paid at minimum pay rate of $18.70 per hour worked

All pay on Sunday is paid at $33.73per hour worked

The overtime rate is $27.79per hour worked; Overtime must be paid for any hours over 40 worked in the period Monday to Saturday.

 Rates of pay (special conditions DI/HD extension part):

Due to the union agreement of 1827, and its amendment in 1932 (part B clause 57, 2nd dot point, paragraph 2) "any worker who dies while picking fruit shall receive payment of 500 silver coins of the realm as funeral expenses, delivered to next of kin.

In Australia in 1988 the $2 coin was minted and it became the official silver coin of the realm. Traitors are therefore paid $60 equivalent to 30 silver coins of the realm.

Under the hopelessly unfathomable fair work policy of successive governments and the union agreement of 1215 (See British Law - after all Australia is far too small to have its own laws). "it is necessary to pay a bonus of 5 silver coins of the realm to fruit pickers if it be that they have more than 8 dependent children; and that they labour 7.5 hours or more of toil in a single day."

Plain English translation

  • If you die while apple picking you get $1000;
  • If you have 9 or more kids at home you get a 10$ bonus any day you work 7.5 hours or more;

He needs the program to have the following options:

Option

Program Function

Notes

1 -Print a pay Cheque

 

Ask to enter file name:

 

Print out a nicely formatted cheque

 

 

2 - Payroll Report

 

Ask to enter file name:

 

Echo the input file data:

Sum the hours:

Display hours at minimum wage and total paid

Display overtime and payment

Display Sunday rate and payments

 

Print out a meaningful set of information to help explain how the pay cheque was calculated

 

Print out the cheque total

 

 

 

3 - Special Case processing (optional)

special rules for the following conditions:

 

a) Apple pickers that die while working.

b) Apple pickers that have 9 or more children if they workfor 7.5 or more hours on any day.

 

Ask to enter file name:

 

Compute and print out a pay slip and a nicely formatted cheque that includes death and children bonuses

This is the HD/DI extension its optional

4-exit

 

Exits the program cleanly

 

 

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M91300243
  • Price:- $35

Guranteed 24 Hours Delivery, In Price:- $35

Have any Question?


Related Questions in C/C++

Question 1find the minimum and maximum of a list of numbers

Question: 1. Find the Minimum and Maximum of a List of Numbers: 10 points File: find_min_max.cpp Write a program that reads some number of integers from the user and finds the minimum and maximum numbers in this list. Th ...

Software development fundamentals assignment 1 -details amp

Software Development Fundamentals Assignment 1 - Details & Problems - In this assignment, you are required to answer the short questions, identify error in the code, give output of the code and develop three C# Console P ...

What are the legal requirements with which websites must

What are the legal requirements with which websites must comply in order to meet the needs of persons with disabilities? Why is maximizing accessibility important to everyone?

There are several ways to calculate the pulse width of a

There are several ways to calculate the pulse width of a digital input signal. One method is to directly read the input pin and another method (more efficient) is to use a timer and pin change interrupt. Function startTi ...

Assignment word matchingwhats a six-letter word that has an

Assignment: Word Matching What's a six-letter word that has an e as its first, third, and fifth letter? Can you find an anagram of pine grave. Or how about a word that starts and ends with ant (other than ant itself, of ...

1 implement the binary search tree bst in c using the node

1. Implement the Binary Search Tree (BST) in C++, using the Node class template provided below. Please read the provided helper methods in class BST, especially for deleteValue(), make sure you get a fully understanding ...

Assign ment - genetic algorithmin this assignment you will

ASSIGN MENT - GENETIC ALGORITHM In this assignment, you will use your C programming skills to build a simple Genetic Algorithm. DESCRIPTION OF THE PROGRAM - CORE REQUIREMENTS - REQ1: Command-line arguments The user of yo ...

Project - space race part a console Project - Space Race Part A: Console Implementation

Project - Space Race Part A: Console Implementation INTRODUCTION This assignment aims to give you a real problem-solving experience, similar to what you might encounter in the workplace. You have been hired to complete a ...

Why do researcher drop the ewaste and where does it end

Why do researcher drop the ewaste and where does it end up?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As