The data file being used contains records

Assignment Help JAVA Programming
Reference no: EM13164462

This program will read the data file that was created from another program. The file is a text file: payroll.txt. Copy that data file into the root directory of the Project Folder.

The data file being used contains records with an employee's name, the number of hours they worked, and their hourly pay rate. Write a program to read the records of information and output (to the Output window or a dialog box) the employee's name and their Gross Pay.

Compute their gross pay by using the following formulas:

If the employee worked 40 hours or less, their pay should be: hours * hourlyPayRate

But if the employee worked more than 40 hours, they get paid their regular amount for the first 40 hours plus "time and a half" for the hours worked over 40. Time and a half means 1.5 times their hourly pay rate. Use the following formula: (40 * hourlyPayRate) + (hours-40) * 1.5 * hourlyPayRate

Reference no: EM13164462

Questions Cloud

Calculate the total pressure in this flask at equilibrium : A flask containing only NO2(g) at an initial pressure of 8.60 atm is allowed to reach equilibrium. Calculate the total pressure in this flask at equilibrium.
What is the value of the rate constant : For the first order decomposition of acetone at 650 K, the concentration of acetone was 0.350 M after 25.0 min and 0.170 M after 40.0 min.
State the nitrate ion is a very poor nucleophile : The nitrate ion (NO3-) is a very poor nucleophile. In fact, solvents such as water or methanol (also weak nucleophiles) are more reactive nucleophiles than the nitrate ion
Two for loops that will calculate the sum of all even number : Write a program using two for loops that will calculate the sum of all even numbers between 2 and 100,
The data file being used contains records : The data file being used contains records with an employee's name, the number of hours they worked, and their hourly pay rate. Write a program to read the records of information and output (to the Output window or a dialog box) the employee's name..
How many total hydrogen atoms are in this solution : A solution of ammonia and water contains 3.50×1025 water molecules and 5.80×1024 ammonia molecules. How many total hydrogen atoms are in this solution?
What is the numerical value of the compression factor : where b and R are constants. If the pressure and temperature are such that Vm = 10b, what is the numerical value of the compression factor?
Compare the proposed reaction mechanism : Compare the proposed reaction mechanism for the sodium hypochlorite oxidation of cyclohexanol with that involved in the chromic acid oxidation
Effects of recognizing the nsf check : Show the effects of recognizing the NSF check on the financial statements by recording the appropriate amounts in a horizontal statements model

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a java program to register students for a college

Project is for designing and developing a College Registration program. Write a Java program to register students for a college

  Enterprise java beans (ejb) in software development

Enterprise Java Beans (EJB) in software development, EJB technology, EJB application, Stateless Session Beans (SLSB), Stateful Session Beans (SFSB), Message Driven Bean (MDB), Entity Bean

  Java enumeration lettergrade represent letter grades

Write a java enumeration LetterGrade that represents letter grades A through F, including plus and minus grades. Define a private instance variable holding a boolean value.

  Java program to read line of text which ends with period

Write down the java program which will read the line of text which ends with the period, which serves as sentinel value. Show all the letters which occur in the text.

  Create java applet to represent grade of gas

Write a java applet (not a java application program) for costco gas station. The applet will first ask you whether you are a costco customer, then the grade of gas you want to use.

  Sets a loop to find 10 random generated

Write a java code that 1) uploads a file 2) sets a loop to find 10 random generated words from the file and then search those words by a. IndexSequential Method b. indexBinary Method. then, report how much time both methods took.

  Write program in java for total amount of customer-s order

Write down program in Java which would ask for clerk to enter total amount of customer's order. Program will then compute seven percent (7%) sales tax.

  Write a program called word guessing game.

Write a program called Word Guessing Game. Open the file FourLetterWords.txt and write the contents into an array of Strings (the file has 87 words in it).

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Design a function named "falling distance"

Design a function named "fallingDistance" that accepts an objects falling time, in seconds, as an argument. The function should return the distance, in meters, that the object has fallen during that time interval. Design a program that calls the func..

  Write a program that reads a set of floating-point

Write a program that reads a set of floating-point data values from the input.

  How to count number of objects (instances) created

How to count number of objects (instances) Created, use java code and please be descriptive

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