Question: How would one right a program that is similar to this using only printf? Thanks for any help. Create a java program for the documentation

How would one right a program that is similar to this using only printf? Thanks for any help.

Create a java program for the documentation and logic chart below, run the program with the values.

1. Write a program to calculate the money Bubba has to pay to the owners of the consignment items and his commission for each item as well as his total income given many items.

2. The commission will be 5%, commAmt=5% of salePrice

ownerAmt=salePrice-commAmt

totalComm is sum of all commAmt values

Amounts are real(dollars and cents), the Item number will be an integer

3. For each report, print rptHdg

For each report, print colHdgs

For each report, print totalHdg,totalComm

For each item, print itemNum,salePrice,commAmt,ownerAmt

Sample Output:

Bubbas Antiques

Item Sale Price Commission Owner

7 25.50 1.28 24.23

12 212.00 10.60 201.40

Total Comm 11.88

Sample Input:

7 25.50

12 212

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!