Digi offer three different subscription packages for its customers: Package A: For RM10 per month, 15 hours of call time are provided. Additional usage will charge RMO.05 per minutes. Package B: For RM30 per month, 45 hours of call time are provided. Additional usage will charge RM0.07 per minutes. Package C: For RM50 per month, unlimited call time is provided. Write a C++ program without function to calculate the customer's monthly bill. The program should prompt the user to enter the customer's name, the package that the customer has purchased and the total hours of call time that has been utilised. The program should also perform validation check to ensure that user can only select package A, B or C. The hours of call time should be between 0 and 700 hours. The sample program output is shown below: Customer name: Tan Ai Li Which package does the customer use (A, B, or C) ? B How many hours of call time did the customer use last month? 47 Monthly Statement for Tan Ai Li Plan B -- hours used: 47.00 Additional charges are $38.40
Digi offer three different subscription packages for its customers: Package A: For RM10 per month, 15 hours of call time are provided. Additional usage will charge RMO.05 per minutes. Package B: For RM30 per month, 45 hours of call time are provided. Additional usage will charge RM0.07 per minutes. Package C: For RM50 per month, unlimited call time is provided. Write a C++ program without function to calculate the customer's monthly bill. The program should prompt the user to enter the customer's name, the package that the customer has purchased and the total hours of call time that has been utilised. The program should also perform validation check to ensure that user can only select package A, B or C. The hours of call time should be between 0 and 700 hours. The sample program output is shown below: Customer name: Tan Ai Li Which package does the customer use (A, B, or C) ? B How many hours of call time did the customer use last month? 47 Monthly Statement for Tan Ai Li Plan B -- hours used: 47.00 Additional charges are $38.40
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%
Hello, I am studying past year paper for revision but am unsure of my answer, would need some help
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 3 images
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education