Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q.1. (10) An internet service provider starts offering cable service they want a program that can calculate Client's bills. The Client's can be divided into

image text in transcribed
Q.1. (10) An internet service provider starts offering cable service they want a program that can calculate Client's bills. The Client's can be divided into two different categories: home user and corporate. Two different rates are applied for calculating a cable bill: one for home user Client and one for corporate Client. The rate criteria for the home user clients, and Corporate client are as follows: Home User Corporate Registration charges: $5.50 Registration charges: $15.00 Initial service charges: $21.50 Initial service charges: $75.00 for the first 10 connections; $5.00 for each additional connection Premium channels: $8.50 for first 10 channel; Premium channels: $50.00 for first 20 channels; $2.00 for $0.50 for each additional channel each additional channel For Odd Roll numbers: Calculates a customer's bill for a local cable company by using switch case For Even Roll numbers: Calculates a customer's bill for a local cable company by using if elseif ladder. For example: Enter the account number: 12345 Enter the customer type: H or h (Home user), C or c (Business): C Enter the number of basic service connections: 16 Enter the number of premium channels: 8 Account number = 12345 Amount due = $520.00

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 Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions