This assignment focuses on programming basics; expressions, variables, constants, the use of loops and if-statements.
LogicFoo Limited needs a program to calculate how much to pay their casual employees who are paid on an hourly basis. The Australian Department of Employment stipulates that employees should be paid time and a half for any hours over 40 that they work in a single week. In addition, LogicFoo is required to deduct income tax from each employee at a fixed Income Tax Rate set at 15%. For example, if an employee works 45 hours, they get 5 hours of overtime, at 1.5 times their base pay. The department requires that hourly employees be paid at least $18.00 an hour. LogicFoo Limited requires that an employee not work more than 60 hours in a week.
An employee gets paid (hours worked) × (base pay), for each hour up to 40 hours. For every hour over 40, they get overtime = (base pay) × 1.5. The base pay must not be less than the minimum wage ($18.00 an hour), if it is, the program should print an error. And if the number of hours is greater than 60, the program should also print an error message.
· Create a new class called MITnnnnnLogicFoo were MITnnnnn is your MIT student ID.
· Include documentation before the start of the class to include your name, ID and a description of the program
· Include a main method
· Inside the main method declare and initialise the variables; base pay and hours worked.
· Other variables should include gross pay, overtime, net pay and pay you as gain.
· Include if statements that check for base pay and the limit of 60 hours in a week and prints to the console the respective error messages.
· Include statements to calculate overtime, gross pay, pay as you go and net pay
Include statements that print to the console a payslip for an employee using the example shown below.
Do not try to write the entire program in one go. It is much easier to write a small piece and test it, then write another small piece and test it. For example, start by writing just a skeleton of your method and your main program. Then add the code to do the normal salary computation, without any special rules. Then add each additional rule, one at a time. You should test your program with simple test inputs to check that you handle each case.
Marking criteria is shown in following table. Marks are allocated as follows:
Our Service Charter
Excellent Quality / 100% Plagiarism-FreeWe employ a number of measures to ensure top quality essays. The papers go through a system of quality control prior to delivery. We run plagiarism checks on each paper to ensure that they will be 100% plagiarism-free. So, only clean copies hit customers’ emails. We also never resell the papers completed by our writers. So, once it is checked using a plagiarism checker, the paper will be unique. Speaking of the academic writing standards, we will stick to the assignment brief given by the customer and assign the perfect writer. By saying “the perfect writer” we mean the one having an academic degree in the customer’s study field and positive feedback from other customers.
Free RevisionsWe keep the quality bar of all papers high. But in case you need some extra brilliance to the paper, here’s what to do. First of all, you can choose a top writer. It means that we will assign an expert with a degree in your subject. And secondly, you can rely on our editing services. Our editors will revise your papers, checking whether or not they comply with high standards of academic writing. In addition, editing entails adjusting content if it’s off the topic, adding more sources, refining the language style, and making sure the referencing style is followed.
Confidentiality / 100% No DisclosureWe make sure that clients’ personal data remains confidential and is not exploited for any purposes beyond those related to our services. We only ask you to provide us with the information that is required to produce the paper according to your writing needs. Please note that the payment info is protected as well. Feel free to refer to the support team for more information about our payment methods. The fact that you used our service is kept secret due to the advanced security standards. So, you can be sure that no one will find out that you got a paper from our writing service.
Money Back GuaranteeIf the writer doesn’t address all the questions on your assignment brief or the delivered paper appears to be off the topic, you can ask for a refund. Or, if it is applicable, you can opt in for free revision within 14-30 days, depending on your paper’s length. The revision or refund request should be sent within 14 days after delivery. The customer gets 100% money-back in case they haven't downloaded the paper. All approved refunds will be returned to the customer’s credit card or Bonus Balance in a form of store credit. Take a note that we will send an extra compensation if the customers goes with a store credit.
24/7 Customer SupportWe have a support team working 24/7 ready to give your issue concerning the order their immediate attention. If you have any questions about the ordering process, communication with the writer, payment options, feel free to join live chat. Be sure to get a fast response. They can also give you the exact price quote, taking into account the timing, desired academic level of the paper, and the number of pages.