The document describes two Java programs that use while loops. The first program calculates the weekly earnings of salespeople based on a $200 salary plus 9% commission on sales. It prompts the user to input each salesperson's gross sales and displays their calculated earnings. The second program determines the gross pay for employees based on straight time for the first 40 hours worked and time-and-a-half for additional hours, inputting hours and hourly rate for each employee and displaying their gross pay. Sample outputs are provided for both programs.
Multiple Income Streams (1) - 10 Companies That Pay You For Website Testing: Start Developing Multiple Revenue Streams Today [ Multiple Income Streams Series - Vol 1 ]
The document describes two Java programs that use while loops. The first program calculates the weekly earnings of salespeople based on a $200 salary plus 9% commission on sales. It prompts the user to input each salesperson's gross sales and displays their calculated earnings. The second program determines the gross pay for employees based on straight time for the first 40 hours worked and time-and-a-half for additional hours, inputting hours and hourly rate for each employee and displaying their gross pay. Sample outputs are provided for both programs.
The document describes two Java programs that use while loops. The first program calculates the weekly earnings of salespeople based on a $200 salary plus 9% commission on sales. It prompts the user to input each salesperson's gross sales and displays their calculated earnings. The second program determines the gross pay for employees based on straight time for the first 40 hours worked and time-and-a-half for additional hours, inputting hours and hourly rate for each employee and displaying their gross pay. Sample outputs are provided for both programs.
The document describes two Java programs that use while loops. The first program calculates the weekly earnings of salespeople based on a $200 salary plus 9% commission on sales. It prompts the user to input each salesperson's gross sales and displays their calculated earnings. The second program determines the gross pay for employees based on straight time for the first 40 hours worked and time-and-a-half for additional hours, inputting hours and hourly rate for each employee and displaying their gross pay. Sample outputs are provided for both programs.
One large chemical company pays its salesperson on a commission
basis. The salesperson receive $200 per week plus 9% of their sales for that week. For example, a salesperson who sells %5000 worth of chemicals in a week receives $200 plus 9% of $5000. Develop a java program that uses a while statement to input each salesperson’s gross sales for last week and calculates and displays that salesperson’s earnings. Process one salesperson’s figures at a time. SAMPLE OUTPUT:
ENTER SALES IN DOLLAR (-1 TO END): 5000.00
SALARY: $ 650.00
ENTER SALES IN DOLLAR (-1 TO END): 6000.00
SALARY: $ 740.00
ENTER SALES IN DOLLAR (-1 TO END): 7000.00
SALARY: $ 830.00
ENTER SALES IN DOLLAR (-1 TO END): -1
THE TOTAL SALARY FOR THE WEEK: $2200.00
GOOD DAY! THANK YOU FOR USING THE SYSTEM! 2. Develop a java program that uses while statement to determine the gross pay for each of several employees. The company pays “straight time” for the first 40 hours worked by each employee and pays “time- and-a-half” for all hours worked in excess of 40 hours. Your program should input this information for each employee and should determine and display the employee’s gross pay. SAMPLE OUTPUT:
ENTER HOURS WORKED (-1 TO END): 39
ENTER HOURLY RATE OF THE WORKER ($00.00): 10.00 THE SALARY IS: $ 390.00
ENTER HOURS WORKED (-1 TO END): 40
ENTER HOURLY RATE OF THE WORKER ($00.00): 10.00 THE SALARY IS: $ 400.00
ENTER HOURS WORKED (-1 TO END): 41
ENTER HOURLY RATE OF THE WORKER ($00.00): 10.00 THE SALARY IS: $ 415.00
Multiple Income Streams (1) - 10 Companies That Pay You For Website Testing: Start Developing Multiple Revenue Streams Today [ Multiple Income Streams Series - Vol 1 ]