Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program (use if-else statement) to compute the telephone bill for the city consumers. The bill computed according to the number of calls.

Write a C++ program (use if-else statement) to compute the telephone bill for the city consumers. The bill computed according to the number of calls.

  • If numbers of calls are less than and equal to 100, then the rate per call is rs.0.80 and the meter charges is Rs. 250.
  • If numbers of calls are greater than 100, then the rate per call is computed is Rs. 1.00 and the meter charges are minimum Rs.350.
Formula for bill calculation is:

Phone Bill = meter charges + (number of calls x rate per call)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Solutio... 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

Accounting Principles

Authors: Jerry J. Weygandt, Donald E. Kieso, Paul D. Kimmel, Barbara Trenholm, Valerie Warren, Lori Novak

7th Canadian Edition Volume 1

1119048508, 978-1119048503

More Books

Students also viewed these Programming questions

Question

Write a C Program to Check Leap Year using function

Answered: 1 week ago

Question

If the nth partial sum of a series Is Find an and an 1 Sn- an

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago

Question

What is liquidity? Identify one measure of liquidity.

Answered: 1 week ago