Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The WeChat phone company provides the international call service to four (4) area codes. The charges (per-minutes rate) for the respective area code as

image text in transcribed

The WeChat phone company provides the international call service to four (4) area codes. The charges (per-minutes rate) for the respective area code as following: Area Code 601 602 612 613 Rates (RM/minute) 0.20 0.30 0.60 0.50 Design a program in C++ to calculate the phone bill. Define a base class that allows user to enter an area code and duration for a call (in minutes) and then display the total cost of the call. If the total cost of the calls is more than RM100, a discount of MM% on the total cost of call will be given to the customer. Define a derived class to calculate the phone bill after discount. You have to include the constructor and destructor in your program too. Hints: MM - refer to the third and fourth digits of your student number. Example: if your student number is 0123438, then surcharge MM% will be 23%.

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

Computer Performance Engineering 10th European Workshop Epew 2013 Venice Italy September 17 2013 Proceedings

Authors: Maria Simonetta Balsamo ,William Knottenbelt ,Andrea Marin

2013 Edition

3642407242, 978-3642407246

More Books

Students also viewed these Programming questions

Question

2. Measure the implicit interest rate on credit sales.

Answered: 1 week ago