Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ercise#1: Cellular Telephone Bill Write a program that calculates and prints the bill for a cellular telephone company. The company offers the following two types

image text in transcribed
ercise#1: Cellular Telephone Bill Write a program that calculates and prints the bill for a cellular telephone company. The company offers the following two types of services: Regular: Premium: $10 for the first 50 minutes, plus $0.2 per each extra minute. $25 for the first 75 day minutes, plus $0.1 per each extra day minute, also the charge is free for the first 100 night minutes, plus $0.05 per each extra night minute. The program should print the service type, total number of minutes, and amount due. Sample input/ output: nter the service type: R ter the nunber of ninutes: 238 he type of sevice is R The anount due is $46 nter the service type: P nter the nunber of day ninutes and the nunber of night ninutes: 218 188 he type of sevice is he nunber of ninutes is 398 he anount due is $42.5 nter the service type: u nvalid charctert

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

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions