Question: flow chart 1. Design a program that calculates a customers bill for a cable company. There are two types of customers: residential and commercial. There
flow chart
1. Design a program that calculates a customers bill for a cable company. There are two types of customers: residential and commercial. There are two rates for calculating a cable bill: one for residential customers and one for commercial customers. For residential customers, the following rates apply: Bill processing fee: $4.50 Basic service fee: $20.50 Premium channels: $7.50 per channel For commercial customers, the following rates apply: Bill processing fee: $15.50 Basic service fee: $60.50 for first 10 connections: $5.00 for each additional connection Premium channels: $70.50 per channel for any number of connections. The program should ask the user for an account number and a customer code. Assuming that R stand for residential customer, and C stands for commercial customers
2. A car rental company imposed rental rate based on types of car and rental period. Using nested selection statement (ifthenelse). Design a program based on the condition in below. The program should cater the use of small or capital letter for car type. Display error message if invalid car type is entered and force the program to exit. Car type Rental period (day) Rate (RM) Compact car 1 $70.00 1> day <=3 $50.00 More days $30.00 Sedan < 3 $60.00 More days $40.00 MPV <=2 $70.00 More days $50.00
3. Design a program that prompt the user to enter the weight of an object. Program should determine and print the shipping category based on the weight and display the shipping category. Weights and categories are listed below. Shipping Weight Categories Weight Category 0.0 =< weight < 21.0 1 21.0 =< weight < 101.0 2 101.0 =< weight < 201.0 3 201.0=< weight < 301.0 4 301.0 =< weight 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
