Question: Java please, thanks! The working hour and payment data contain the following information - Normal working hour t - Wages per hour of normal work



Java please, thanks!
The working hour and payment data contain the following information - Normal working hour t - Wages per hour of normal work d - Extra wages per hour of extra work D - Actual working hour T - The first line is the same as in Problem1 - The second line t,d,D and T are still given in a single line for each employee, but in arbitrary order. To avoid ambiguity, the name of each variable is given, e.g., d=10. See below for an example. Also, the output is given in three lines: the middle line starts with the salary, a space, and then the word "Dollars". The first and the last line are filled with *symbol; the number of stars is equal to the number of characters in the second line Processing Your program should perform the same task as in Problem 1 with the following modifications: - Your program must handle the input data of employees in an arbitrary order, rather than in order as t,d,D and T in Problem 1 - You will need a class StringBuilder to construct a blank string builder with a capacity of 16 characters - The way to use it is: StringBuilder str = new StringBuilder() - You can use the method str. append(s) appends the mentioned String str with the existing String s or other types like boolean, char, int, double, float, etc. - Your program should include a method called digits which calculates the number of digits in the salary in order to match the number of stars in the output Output The output format is shown in the following example. There are three lines: (1) The first line is with stars (); (2) The second line is the value of total salary plus one space plus the word "Dollars"; (3) The third line is also with stars. One thing needs to be noted is that the number of stars of the first line and the third line is equal to the number of characters in the second line. Example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
