Question: A certain store has the following scheme: Commodity Code: J- commodities are discounted by 8% K- commodities are taxed by 11% L commodities are

A certain store has the following scheme: Commodity Code: J- commodities are  

A certain store has the following scheme: Commodity Code: J- commodities are discounted by 8% K- commodities are taxed by 11% L commodities are charged as priced Using a Decision Control Structure (if), create a flowchart and a java program that reads a commodity code, quantity of the commodities bought and the unit price and output the amount to be paid by the customer. There should be an error message if the commodity code entered is not any of the valid codes. Depicted below are sample outputs when the program is executed (the items in bold characters are inputted by the user, while the items in bold italic characters are calculated and outputted by the program): Enter commodity code: B Invalid Code Enter commodity code: K Enter quantity of commodity: 2 Enter unit price: 53.25 Amount to be paid is P118.22 Enter commodity code: J Enter quantity of commodity: 2 Enter unit price: 53.25 Amount to be paid is P97.98 Enter commodity code: L Enter quantity of commodity: 3 Enter unit price: 53.25 Amount to be paid is P159.75 Required: The flowchart, the java file (FamilyName_Commodity Code.java) containing the code and 4 image files (Sample1, Sample2, Sample3, and Sample4) containing different sample input/output of the program.

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 Programming Questions!