Omantel wants to adopt a new system for their billing system. You are requested to lead a programming team that will develop a system form them. The program will start by entering the number of subscriptions. The number of subscriptions will be used as basis for the number of times the subscription type, the number of units and the amount of mobile data will be entered by the user. (Example: If user entered 5 for the number of subscriptions, the subscription type, number of units and the amount of mobile data will be entered also five times). The subscription fee is computed based on the subscription type and the amount of mobile data. Subscription type Amount of mobile data Subscription fee Individual 1 – 2040 9.00 More than 2040 15.00 Family 1 – 2040 11.00 More than 2040 18.00 Corporate 1 – 2040 12.00 More than 2040 24.00 Compute for the total mobile plan. The total mobile plan is computed by multiplying the number of units and the subscription fee. A telecommunication service rate has a fixed value of 2%. The telecommunication service charge is computed as total mobile plan multiplied to telecommunication service rate. The company gave rebate based on the computed total mobile plan. If the total mobile plan will exceed 800, rebate is computed as 12% of the total mobile plan, otherwise it is computed as 4% of the total mobile plan. Compute also for the customer bill. The customer bill is computed as total mobile plan plus telecommunication service charge minus rebate. All the inputs (subscription type, number of units, subscription fee) and the computed values (total mobile plan, telecommunication service charge, rebate, customer bill) should be stored in a list. The program should be able to display with proper heading all the values you stored in your list. At the end of the report, the program should also display the following: a. the number of times Family subscription was selected by the user. b. the highest number of units c. sum of all the amount mobile data d. average of total mobile plan. You are also requested to include the following requirements: 1. To use list to store the records. 2. To use functions (minimum of two) in solving some of the computed values.
Operations
In mathematics and computer science, an operation is an event that is carried out to satisfy a given task. Basic operations of a computer system are input, processing, output, storage, and control.
Basic Operators
An operator is a symbol that indicates an operation to be performed. We are familiar with operators in mathematics; operators used in computer programming are—in many ways—similar to mathematical operators.
Division Operator
We all learnt about division—and the division operator—in school. You probably know of both these symbols as representing division:
Modulus Operator
Modulus can be represented either as (mod or modulo) in computing operation. Modulus comes under arithmetic operations. Any number or variable which produces absolute value is modulus functionality. Magnitude of any function is totally changed by modulo operator as it changes even negative value to positive.
Operators
In the realm of programming, operators refer to the symbols that perform some function. They are tasked with instructing the compiler on the type of action that needs to be performed on the values passed as operands. Operators can be used in mathematical formulas and equations. In programming languages like Python, C, and Java, a variety of operators are defined.
Omantel wants to adopt a new system for their billing system. You are requested to lead a
The program will start by entering the number of subscriptions. The number of subscriptions will be used as basis for the number of times the subscription type, the number of units and the amount of mobile data will be entered by the user. (Example: If user entered 5 for the number of subscriptions, the subscription type, number of units and the amount of mobile data will be entered also five times).
The subscription fee is computed based on the subscription type and the amount of mobile data.
Subscription type | Amount of mobile data | Subscription fee |
Individual | 1 – 2040 | 9.00 |
More than 2040 | 15.00 | |
Family | 1 – 2040 | 11.00 |
More than 2040 | 18.00 | |
Corporate | 1 – 2040 | 12.00 |
More than 2040 | 24.00 |
Compute for the total mobile plan. The total mobile plan is computed by multiplying the number of units and the subscription fee.
A telecommunication service rate has a fixed value of 2%.
The telecommunication service charge is computed as total mobile plan multiplied to telecommunication service rate.
The company gave rebate based on the computed total mobile plan. If the total mobile plan will exceed 800, rebate is computed as 12% of the total mobile plan, otherwise it is computed as 4% of the total mobile plan.
Compute also for the customer bill. The customer bill is computed as total mobile plan plus telecommunication service charge minus rebate.
All the inputs (subscription type, number of units, subscription fee) and the computed values (total mobile plan, telecommunication service charge, rebate, customer bill) should be stored in a list.
The program should be able to display with proper heading all the values you stored in your list.
At the end of the report, the program should also display the following:
a. the number of times Family subscription was selected by the user.
b. the highest number of units
c. sum of all the amount mobile data
d. average of total mobile plan.
You are also requested to include the following requirements:
1. To use list to store the records.
2. To use functions (minimum of two) in solving some of the computed values.
Step by step
Solved in 4 steps with 2 images