PROBLEM SOLVING SKILLS : PROBSOL Application
[
Log In
]
Home
Algorithm
Question 1a
Question 1b
Question 1c
Question 1d
Question 1e
Basics
Question 2a
Question 2b
Question 2c
Question 2d
Question 2e
Input/Output
Question 3a
Question 3b
Question 3c
Question 3d
Question 3e
Selection
Question 4a
Question 4b
Question 4c
Question 4d
Question 4e
Repetition
Question 5a
Question 5b
Question 5c
Question 5d
Functions
Question 6a
Question 6b
Question 6c
Question 6d
Arrays
Question 7a
Question 7b
Question 7c
OOP
Object Oriented ProSol
Game
ProSolve Game
Help
Steps to use ProbSol
Steps to use ProSolve Game
Steps to use ChatBot
ProbSol Skills of MServes.COM
Mobile App for Android
Mobile App for iPhone
Feedback: ChatBot 'ProbSol Master'
Feedback: PAAM Model
Feedback: M-ProbSol,E-ProbSol,ProSolve
Feedback: PROBSOL
Problem Analysis Algorithemic Model (PAAM)
CONTROL STRUCTURE : SELECTION :
5
/5
Problem is to write a program that calculates a customer’s bill for a local cable company. There are two types of customers: residential and business. There are two rates for calculating a cable bill: one for residential customers and another one for business customers. For residential customers, the following rates apply:
Residential Customer
• Bill processing fee: $4.50
• Basic service fee: $20.50
• Premium channels: $7.50 per channel
Business Customer
• Bill processing fee: $15.00
• Basic service fee: $75.00
• Premium channels: $50.00 per channel
INPUT
PROCESS
OUTPUT
Customer Account No., A
No. of Premium Channels, N
Customer Type, T
(R or B)
A
T
N
Bill Amt
Account Number
Billing Amount
PSEUDO-CODE
Random Steps :
Right Steps :
Start
Else the customer code is something other than r, R, b, or B. Output an error message
Read the customer code
If the customer code is r or R, Then Read the number of premium channels, Calculate the billing amount, Print the account number and the billing amount
Read account number
Else If the customer code is b or B, Then Read the number of premium channels, Calculate the billing amount, Print the account number and the billing amount
Stop
End If
(
Instruction:
Select any line/step from the first List Box and move it to the second List Box and make all its lines into correct steps of sequential order, using the Arrow Keys.)