Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an application that will accept sales information and calculate the total commission for a sales associate. Each sale can is entered until the sentinel

Create an application that will accept sales information and calculate the total commission for a sales associate. Each sale can is entered until the sentinel value is entered indicating the last sale.

There are 5 products which can be sold:

Product 1 with price of $6.98

Product 2 with price of $7.50

Product 3 with price of $3.75

Product 4 with price of $2.59

Product 5 with price of $23.79

The application should use a sentinel controlled loop to prompt the user for each product and quantity for a sales rep

Use a switch statement to identify the correct item price

Calculate the total sales for all items for that sales rep and the commission of 5%.

The program I'm using is JGrasp and Java.

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

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions