Question: JAVA PROGRAMMING Q2 HELP PLSSSS QUICK URGENT NEED A stationery dealer wants to have a program to compute the the amount of income expected from
A stationery dealer wants to have a program to compute the the amount of income expected from each store he is dealing with for selling pens. He deals with three stores, therefore, the program has to ask the user to enter the number of pens' boxes requested by the each store. The cost of a pen is AED 1.5, the box fit 12 pens, and the profit margin is 30%. Therefore, the program must ask the user to dealer to enter the name of the store, and the number of boxes requested. Then the program compute the cost per store, the profit per store and then the income per store. After that the program compute the total income. The program has to display the name each store in UpperCase, the expected income per store, and the total income. Cost Per store = cost of pen * number of pens per box * number of boxes Profit per store - Cost Per store profit margin Income per store - Cost Per store + Profit per store I Sample Input/Output: Enter the name of the first store: Golden Stationery Enter the number of boxes requested by first store: 100 Enter the name of the second store: Saqar_Bookshop Enter the number of boxes requested by second store: 200 Enter the name of the third store: Ahli_Supermarket Enter the number of boxes requested by third store: 350 ********** GOLDEN STATIONERY - AED 2340.0 SAQAR_BOOKSHOP - AED 4680.0 AHLI SUPERMARKET - AED 8190.0 Total Income: AED 15210
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
