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

  Sequence of method in vector class

Construct a Vector class implementing a number of vector operations as methods along with a testing program to verify the class is working.

  Java program to find solution of cryptarithmetic puzzle

A solution to puzzle is S=9, R=8, O=0, M=1, Y=2, E=5, N=6, D=7. Write down a java program which finds solution to cryptarithmetic puzzle of: TOO + TOO + TOO + TOO = GOOD.

  Presell a limited number of cinema tickets

Write an application to presell a limited number of cinema tickets. each buyer can buy as many as 4 tickets. No more than 100 tickets can be sold. Implement a program called TicketSeller that prompts the user for the desired number of tickets and the..

  Create a complete java application

Create a complete Java application that meets these requirements and the program has an opening comments section (using block comments) with the file name, date, your name, and purpose of the program.

  Design and implementation of a hangman game

Design and Implementation of a Hangman game

  Create a class safestack that implements a stack of strings

Create a class SafeStack that implements a stack of strings

  Achieve these two important features

Java TM is a portable language, and being an object-oriented programming language, it also encourages component reusability. How does Java TM achieve these two important features

  Can linear search algorithm be encoded using recursion

Determine the average amount of time people spend waiting for tables and provide examples from the "real world" of unsorted lists, sorted lists, indexed lists, lists that permit duplicate elements, and lists that do not permit duplicate elements

  Write a java program that accepts a positive long integer

Write a Java program that accepts a positive long integer between 2 to 15, and then using the number, calculate its factorial (n!). Using do-while statement, make sure it only accepts a valid number (between 2 and 15) - if an invalid number is ent..

  Write a method called printlevel

Write a method called printLevel that takes an integer n as a parameter and that prints the values at level n from left to right. The values should be printed one per line.

  Java project

Prompt the user for an int between lower and upper boundary.

  Write a program that asks a user for a file name and prints

Write a program that asks a user for a file name and prints the number of characters, words, and lines in that file.

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