Answered step by step
Verified Expert Solution
Link Copied!

Question

...
1 Approved Answer

4. TABLE Q4 shows the stationery items that need to be ordered as new stock for XYZ Enterprise. a. No Item i. 1 2

 

4. TABLE Q4 shows the stationery items that need to be ordered as new stock for XYZ Enterprise. a. No Item i. 1 2 3 4 5 ii. 6 7 8 9 TABLE Q4: Stationery Items Quantity Color paper A4 paper File Exercise book Pencil Pen Eraser Sharpener Ruler 10 Log book 1500 1500 1000 1000 600 600 600 600 600 100 Write a type declaration for structure named Stationery that will take item, quantity and pricePerQuantity as the fields. Then, declare a variable name MyOrder as a single dimensional array that stores the records of 10 ordered stationery items as shown in TABLE Q4. Price per quantity (RM) 15.00 10.00 3.00 3.50 1.50 2.50 0.20 0.60 0.80 6.00 b. Based on the declaration in part(a), perform the following: [3 marks] Write a C++ code fragment to prompt the data for 10 stationery items as shown in TABLE Q4. [4 marks] Write a C++ code fragment that will calculate and display the price for each item and total amount the customer needs to pay. [5 marks]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

9781285586618

More Books

Students also viewed these Programming questions

Question

Indicate important requirements of four other key EEO-related laws.

Answered: 1 week ago

Question

Explain four basic EEO concepts.

Answered: 1 week ago