Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In java This picture we have to follow this Marks:20 Question 4 Design should be presented with an option to enter the employee name and
In java
Marks:20 Question 4 Design should be presented with an option to enter the employee name and the sales Continuously prompt the user to enter in a sales amount for an employee until a s zero (0) is entered as a sale amount. a Java application that will allow a user to keep track of the sales of an employee. The user entinel value of Enter the employee name: XOLANI RADEBE Enter the sale 1 amount: 5000 Enter the sale 2 amount: 3580 Enter the sale 3 amount: 8000 Enter the sale 4 amount: Please note that all input must occur in the Console window. Once the sentinel value has been entered display the employee sales report. EMPLOYEE SALES REPORT EMPLOYEE: TOTAL SOLD: XOLANI RADEBE R 16580.0 SALES COUNT AVERAGE SALES: 5, 526.667 3 Make use of a method to get the input from the user, another method to accumulate the sale amounts and a final method to determine the average sale amount. In your solution make provision if a user has entered in an invalid sale amount. Any sale amount entered that is below zero (0) is an invalid entry Enter the employee name: XOLANI RADEBE Enter the sale 1 amount: -5580 You have entered a sale less than zero. Please enter the sale again This picture we have to follow this
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started