Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Mingo Sales needs a program that the company can use to enter the sales made in

ID: 3535604 • Letter: M

Question

Mingo Sales needs a program that the company can use to enter the sales made in each of two states. The program should display the commission, which is 5% of the total sales. The commission rate may change in the future, so you should treat it as an input item.
Example Run 1:
Enter Sales in State 1: 1500.00
Enter Sales in State 2: 1500.00
Enter the commission rate: .05
Commission = $150.00

Here is how commission is calculated:
(total sales = 3000, 3000*.05 = 150)

Example Run 2:
Enter Sales in State 1: 100.00
Enter Sales in State 2: 150.00
Enter the commission rate: .02
Commission = $5.00



Explanation / Answer

Sorry ignore the above code. check this one.


Sample output




http://ideone.com/tJW9TO


Code is