Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need answer urgently for this question because I have Test now in 2 hour. I will give the best rate for you. Thank you
I need answer urgently for this question because I have Test now in 2 hour.
I will give the best rate for you. Thank you
Course: C++ Programming
QUESTION 1 CompanyDeliveryX is a delivery company. The shipping rates are calculated based on the following: Table 3: Parcel Rate Parcel weight Shipping rate (RM) First 1 kg 6.00 per kg Next 9 kg 1.00 per kg > 10 kg 0.50 per kg As a newly employed IT staff at CompanyDeliveryX, you are required to develop a system in order to efficiently manage the billing process. Write a complete C++ program to do the following operations: a) i. Define a record named Parcel to store customers information as follows: Customer's name O Customer's phone number Parcel weight o Total parcel rates the customer must pay ii. Declare an array named customerRec of type Parcel with size 100. iii. Prompt the user to enter the customer's name, phone number and parcel weight and store into the records as declared in (ii). (5 marks) b) Assuming that all customers' data were already available and at the end of the day, the company needs to keep a summary of the customer's billing. Not only the summary keeps the information on each customer, but also it displays the total payment for the customer. The summary is to be written into a text file named receipt.txt as shown below (using sample data). Note that the Customer No. starts at 1 and increments by 1 for the next customer.CompanyDeliveryX Receipt Customer No.: Customer Name: Zaiton Ahmad Phone No.: 012-3456789 Parcel weight (kg): 4.0 Payment (RM): 9.00 Customer No.: 100 Customer Name: Siti Aminah Zaki Phone No.: 019-9876543 Parcel weight (kg): 6.0 Payment (RM): 11.00 OVERALL PAYMENT: RM2000.00 sample receipt.txt (10 marks)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started