Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve it ASAP please. SEMI CSCI 1300 Section 03 ELEMENTS OF PROGRAMMING Previous ed Print Payment Bill for Telekom (Intermediate above) [20 marks An owner

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Solve it ASAP please.

SEMI CSCI 1300 Section 03 ELEMENTS OF PROGRAMMING Previous ed Print Payment Bill for Telekom (Intermediate above) [20 marks An owner of a Telekom company with 10 customers has updated the information of his customers according to the following table 1.00 Name Subscription Rate/Hour Hours 0.55 All Zakaria 8 15 Notasin Muhammad Atiqah Full Package Full Package Hall Package Half Package Hati Pacie Hall-Package am Poko Hallocage talen -them C SEMI CSCI 1300 Section 03 ELEMENTS OF PROGRAMMING os Previous You are asked to design a C++ program that assist the owner of the Telekom company. The program should scorpts the customers' details from a text file (customer data.xt) according to above table by calling a function named read_datat). Then, the program should calculate the payment amount by calling a function named calcetto calculate the total payment for each customer. Lastly, the program should cob another function called print dotato display a report of the above data as well as the payments in front of each customer's ietails Following are the descriptions of the program a) The program uses a struct to store all customer's details including name, description methock hours, and proyent for each customer b) The program uses a 1-dimensional array to store the customer details uning pointer notation The read_data() should be declared as avoid function reading the customer details from the text file caled nustume de bit for the 10 customers. The function takes three (3) arguments. The function shall be called by the in function The cat) should also be defined as a void function calculating the payment out of the hilfreich customer based on the rate/hour and the hours volues. The function takes two argumentation The function shall be called by the main function The function print dit should be defined as avoid function displayport all the customer details including the payment in front of each customers to this function should be called by the mom function 0% Sample of Input Note that these details stored in a text file called customer_data.txt 0.55 120 0.55 80 0.35 15 0.35 35 0.25 100 Ali Full-Package Zakariah Full Package Norasikin Half Package Muhammad Half-Package Atiqah Basic-Package Maisarah Half-Package Sakeena Basio-Package Zul Hall Package Safiudeen Basic Package Full Package 0.35 55 0.25 70 0.35 85 10 0125 055 05 Sample of Output The customers' data being read.. 0% Sample of Output the customersdata have been read succefully Below is the customer's details report including the payment.... Description Rate/Hour Hours Payant 66 RU Eakariah florasikin utamad Atiqah Maisarah Sakeena Zulkifli Safiudeen Pomar Full Package 0.55 Full-Package 0.55 Half-Package 8.35 Half-Package 0.35 Basic-Package 0.25 Half-Package 0.35 Basic-Package 0.25 Half-Package 0.35 Basic Package 0.25 Full-Package 0.55 120 80 15 35 100 55 70 85 10 65 5.25 12.25 25 19.25 17.5 29.75 2.5 35.75

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions