Question: I need to put this problem into java code using both the scanner and decimal formatter methods The following is homework 2. Save your file

I need to put this problem into java code using both the scanner and decimal formatter methodsI need to put this problem into java code using both the

The following is homework 2. Save your file as lastname_hw2.java and upload to canvas by 11:59 pm on Tuesday 2/9/21. User Input: Enter gross sales = 1500 Sales returns and allowances = 20 Sales discounts = 12 Cost of sales = 1158 Operating expenses = 143 Interest expense = 9 Taxes = 55 Expected output: Net sales = 1500-20- 12 = 1468 Gross profit = 1468 - 1158 = 310 Operating income = 310 - 143 = 167 Earning before tax = 167 - 9 = 158 Net income = 158 - 55 = 103 Net profit margin = 103*100/1468 = 7%

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!