Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please add comment in coding too Food Active Sdn Bhd is a snake wholesaler in Johor. The management wants to develop a simple program to

image text in transcribed

Please add comment in coding too

Food Active Sdn Bhd is a snake wholesaler in Johor. The management wants to develop a simple program to help its distributors to calculate the wholesale price. Refer to the table below for details: Product code Quantity Wholesale price (RM) Minimum order 2.0 AA 1.5 10 10-50 pcs 51-100 pcs More than 100 pcs 20-50 pcs 1.0 5.0 BB 20 More than 50 pcs 4.0 Note: an additional 6% for government Service Tax (GST) will be charged. Write complete C++ program to perform the following task: Prompt the user to enter the product code and quantity. Display an error message if the user entered an invalid code or if the quantity fails to meet the minimum number of orders Display product code, quantity and total price after GST

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions