Given a table of prices according to the type of dates. Request the type of dates, grade, and amount (in kilograms) and calculate the price to be paid by the customer. If the price is more than RM200, the customer is entitled to receive a 20% discount. Use a combination of both if-else and switch structures to solve the problem. Display price, price after discount (if applicable), and suitable error message if the value entered by the user is wrong or not in the options available.

Are You Searching Answer of this Question?
Request Malaysian writers to write a plagiarism-free copy tailored to your question.
Get Help By Expert
Can’t get that assignment done on your own? No worries, just reach out to us at AssignmentHelper.My and we’ll take care of it! Our expert assignment writers have years of experience in the world of student success; no matter how tough or complex an assignment is-we can make it happen for you. Just say “write my assignment” and let us do the rest.
Need the complete answer?