Write small Java programs (handwritten) for the following questions: Question 01) You are tasked with creating...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write small Java programs (handwritten) for the following questions: Question 01) You are tasked with creating a Java program to calculate the total payment of an employee based on the data in an input file called employeeData.txt. The file consists of an employee's information in the following format: [Employee Name] [Hours Worked] [Pay Rate). A sample input file is shown below: Muhammad Ali 45 13.50 Your program should store the output in "wages.txt" file as well as display the output on the console. Sample output: The total wage for muhammad Ali is: 607.50 Question 02) Write a Java program that reads the sales of a salesman for the day from the input.txt file and then compute the 25% commission on the daily sales. Note the sale items in the input.txt file are not fixed and may vary. input.txt Sales Item no. price £1500 1 2 3 4 Your program should store the output in "commission.txt" file as well as display the output on the console. Sample output: The total sale amount for today: £5000 Your 25% commission is: £1250 £500 £800 £2200 Write small Java programs (handwritten) for the following questions: Question 01) You are tasked with creating a Java program to calculate the total payment of an employee based on the data in an input file called employeeData.txt. The file consists of an employee's information in the following format: [Employee Name] [Hours Worked] [Pay Rate). A sample input file is shown below: Muhammad Ali 45 13.50 Your program should store the output in "wages.txt" file as well as display the output on the console. Sample output: The total wage for muhammad Ali is: 607.50 Question 02) Write a Java program that reads the sales of a salesman for the day from the input.txt file and then compute the 25% commission on the daily sales. Note the sale items in the input.txt file are not fixed and may vary. input.txt Sales Item no. price £1500 1 2 3 4 Your program should store the output in "commission.txt" file as well as display the output on the console. Sample output: The total sale amount for today: £5000 Your 25% commission is: £1250 £500 £800 £2200
Expert Answer:
Answer rating: 100% (QA)
Question 01 Calculating Employee Wages java import javaio import javatextDecimalFormat import javautilScanner public class EmployeeWagesCalculator public static void mainString args try Create a scann... View the full answer
Related Book For
Personal Finance Turning Money into Wealth
ISBN: 978-0134730363
8th edition
Authors: Arthur J. Keown
Posted Date:
Students also viewed these programming questions
-
S company has an investment in trading securities of $146000. The fair value of the investment declined during the current year resulting in an unrealized loss of $7300. Assuming a 35% tax rate, the...
-
1. Weekend breaks sell for 300 each. Ten per cent is payable when the holiday is booked and the remainder after two months. 2. Travel agents are paid a commission of 10 per cent of the price of the...
-
a) Your roommate heard that you took Fundamentals of Finance with Prof. Hasler and that you learnt about the idea of building a nest egg for your retirement. Your roommate has a crazy idea and asks...
-
Let (x) = x 2 + 3x + 2 and g(x) = x + 1. Find each of the following. (a) (fg)(x) (b) (fg) (-2) (c) (+)(x) (d) ()(-2)
-
Astronomers often take photographs with the objective lens or mirror of a telescope alone, without an eyepiece. (a) Show that the image size h` for this telescope is given by h` = f h/ (f - p) where...
-
One method for developing a mine containing an estimated 100,000 tons of ore will result in the recovery of 62% of the available ore deposit and will cost $23 per ton of material removed. A second...
-
A structural member in a nuclear reactor is made of a zirconium alloy. If an axial load of 4 kip is to be supported by the member, determine its required cross-sectional area. Use a factor of safety...
-
Faraday Electronic Service repairs stereos and DVD players. During a recent year, Faraday engaged in the following activities: a. On September 1, Faraday paid Wausau Insurance $4,860 for its...
-
Find f'(x) and find the equation of the line tangent to the graph of f at x = 3. f(x)= 5x 2* f'(x)=
-
On January 1, Year 4, Handy Company (Handy) purchased 70% of the outstanding common shares of Dandy Limited (Dandy) for $13,300. On that date, Dandy's shareholders' equity consisted of common shares...
-
An MS-DOS like file system uses 512-byte blocks and 12-bit disk addresses. Determine the size of the file allocation table (FAT), expressed in number of disk blocks as well as in kilo bytes.
-
A tidal farm with N = 6 single - rotor turbines is to be designed with installed capacity of P = 1 0 MW . The average tidal current velocity is U = 2 . 6 m / s . What rotor diameter ( in meters ) is...
-
Tracey who is single, earns $68,000 per year and had $14,000 worth of medical expenses in this current taxation year. She was reimbursed by Medicare for $7,000 and received a refund of $4,000 from...
-
In May 2016, GOIL Ghana Limited announced a renounceable rights issue. GOIL would issue shares of no par value, and at a price of GHS 1.24 per share and in a ratio of 0.5536 new shares for one held...
-
Spring AB is supported by a frictionless roller at B so that it is always vertical. If the spring is unstretched when 0 = 0, determine 0 and the forces in spring AB and bar AC when F has the value...
-
You want to be able to withdraw the specified amount periodically from a payout annuity with the given terms. Find how much the account needs to hold to make this possible. Round your answer to the...
-
Which of the following is the goal of financial management? Maximise the wealth of Equity shareholders Maximise the wealth of Preference Shareholders Maximise the wealth of Debenture holders All of...
-
Identify one local business that uses a perpetual inventory system and another that uses a periodic system. Interview an individual in each organization who is familiar with the inventory system and...
-
A couple with three dependent children has an annual AGI of $238,500. Calculate the total dollar amount of personal exemptions that they can claim for the 2017 tax year.
-
Match each of the following behaviors with the appropriate bias, as discussed in the chapter. a. Wanda owns shares in Happy Clam Oil Exploration, but due to recent events, the share price is down 30...
-
Determine which of the following gifts are subject to gift taxes and to what extent they need to be included in an estate. a. Grandparents gave a grandchild $24,000 for the purchase of a new car. b....
-
What are the three types of employees who work in MNEs? Explain how an HCN could change to become a TCN in an MNE.
-
A large MNE in the cookware industry was having difficulties maintaining its market share due to a number of mergers among other competing firms in the industry. The MNE, with corporate headquarters...
-
What are the different types of organizational forms that corporations use for international operations?
Study smarter with the SolutionInn App