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)
-
Explain why it is necessary to square the deviation of each data point from the regression line to compute the method of least squares.
-
An equity analyst has been asked to estimate the intrinsic value of the common stock of Omega Corporation, a leading manufacturer of automobile seats. Omega is in a mature industry, and both its...
-
On January 17, 2021, an explosion occurred at a Cord Company plant, causing extensive property damage to area buildings. Although no claims had yet been asserted against Cord by March 10, 2021, the...
-
Sasina Corporation has $8,000,000 of 9.5 percent, 25-year bonds dated May 1, 2014, with interest payable on April 30 and October 31. The companys fiscal year ends on December 31, and it uses the...
-
11. Bondyields Consider the following case of Grey Fox Aviation Company: Grey Fox Aviation Company has 9% annual coupon bonds that are callable and have 18 years left until maturity. The bonds have a...
-
A cross-flow molecular filtration device equipped with a mesoporous membrane is used to separate the enzyme lysozyme from a fermentation broth, as shown in the figure (right column). Water at...
-
6. Let C be the price of a European call option that enables its holder to buy one share of a stock at a strike price K at time T; also, let P be the price of a European put option that enables its...
-
In 2023, Ivanhoe Corp. acquired 8500 of its own no par value common shares at $19 per share, to be held in the treasury. In 2024, Ivanhoe sold 6400 of these shares at $24 per share. What accounts and...
-
A Norman window has the shape of a rectangle surmounted by a semicircle. Find the dimensions of a Norman window of perimeter 3 6 ft that will admit the greatest possible amount of light. ( Round your...
-
You are on shift at Wings, a residential youth service for homeless youth. Imogen (14) entered into your service for support several weeks ago, this is her story. Imogen was initially placed straight...
-
What is the operation analysi s of the NESTLE Brand with a product category of Milo and Cerelac? note: operation analysis consist of table describing all the relevant activities the used in the...
-
A company has labour hours as a constrained resource. The company's contribution margin is $15.00 per unit. The product requires three direct labour hours. What is The contribution margin per the...
-
what are the situational examples of the article 1796 of the philippines which states that the partnership shall be responsible to every partner for the amounts he may have disbursed on behalf of the...
-
Suppose that A is an m n matrix with linearly independent columns and the linear system LS(A, b) is consistent. Show that this system has a unique solution.
-
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....
-
You are selling your house. The Smiths have offered you \($115,000.\) They will pay you immediately. The Joneses have offered you \($150,000,\) but they cannot pay you until three years from today....
-
Suppose you bought a bond that will pay \($1,000\) in 20 years. No intermediate coupon payments will be made. If the appropriate discount rate for the bond is 8 percent, a. what is the current price...
-
Suppose you deposit \($1,000\) in an account at the end of each of the next four years. If the account earns 12 percent, how much will be in the account at the end of seven years?
Study smarter with the SolutionInn App