Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program 3: CoffeeTime Create a Java class named CoffeeTime.java. Employees at Coffee Time earn a basic hourly wage of $7.25 per hour. In addition, they

image text in transcribed
Program 3: CoffeeTime Create a Java class named CoffeeTime.java. Employees at Coffee Time earn a basic hourly wage of $7.25 per hour. In addition, they receive a commission based on how many sales they make while working. The commission is based on the following formula: 1. Sales $1.00 to $99.00 2 $100.00 Commission 5% of total sales 10% of total sales 2. Prompt the user for number of hours worked and the total sales. Then compute the wage (including commission) and output the result as shown in the sample output blow Enter the hours worked: 10 Enter the total sales: 25.0 Total pay is 73.75 Enter the hours worked: 31 Enter the total sales: 57.0 Total pay is 227.6 Enter the hours worked: 10 Enter the total sales: 25.0 Total pay is 73.75 Enter the hours worked: 10 Enter the total sales: 25.0 Total pay is 73.75

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions