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

  Develop java applet that will help elementary school student

Develop a Java applet that will help an elementary school student learn multiplication. Use the Math.random method or a Random object to produce two positive one-digit integers.

  Write down ijvm code to remove top two words from stack

Write down IJVM code which will remove these top two words, multiply and put their product back on stack. You are allowed to use existing IJVM instructions only.

  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.

  A mini game made in java using zen graphics

a mini game made in Java using Zen graphics .

  Create the working applet to compute tax

Write down a java applet. Your applet assits to find out how much federal tax we require to pay suppose the tax rate is 12%. Create and implement the working applet to compute tax.

  Compute the temperature in centigrade

Compute the temperature in Centigrade - Display the temperatures in both Centrigrade and Fahrenheit with appropriate labels, using the + operator to concatenate the labels with the variables

  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

  Programming exercises

Programming Exercises 1. Write an application named BadSubscriptCaught in which you declare an array of 10 first names. Write a try block in which you prompt the user for an integer and display the name in the requested position.

  Implement the lexical and syntactic analysis

Implement the lexical and syntactic analysis of Minifun programming language.

  Write java program that writes names to text file

Create an empty text file called myfile.txt. Write a Java program that writes your names to the text file created. If the file does not exist, include an exception handler for that error.

  Dijikstra for undirected graph using simple scheme

Dijikstra for undirected graph using simple scheme with array and fibonacci heap and compare the performance/results, preferably in java.

  Program produces 1000 integer ranging

Then your program produces 1000 integer ranging from 1to 10000 in the array and then sort them in ascending order and then print the result into data.txt file. (You may list integers separated by space or new line)

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