Question: 1.Create a C programming code. (Not C++) Hint : use array in the program. Recently, a telco company launched an attractive postpaid program. In this
1.Create a C programming code. (Not C++)
Hint : use array in the program.

Recently, a telco company launched an attractive postpaid program. In this program you can select any three plans and can buy a new smartphone with monthly installment for 24 months or 30 months contract. You are requested to develop a program that can produces the total price of the devices (smartphones), monthly commitment, and upfront payment. The program inputs are status of the customer (new or existing customer), number of devices (up to 2 devices only*), plan selection, device selection and duration of the contract (24 or 30 months). The plan fees and device monthly installments in this postpaid program is given as follow: Device [A] iP 12 [B] GN 20 [C] HP40 Plan RM 129 (24 mths) PLAN 1 (80 GB monthly quota) - RM 188/mth RM 129 (24 mths) RM 99 (30 mths) RM 59 (24 mths) RM 40 (30 mths) RM 149 (24 mths) PLAN 2 (60 GB monthly quota) - RM 148/mth RM 99 (30 mths) RM 133 (24 mths) Not Available (30 mths) RM 138 (24 mths) Not Available (30 mths) RM 119 (30 mths) RM 169 (24 mths) RM 139 (30 mths) RM 76 (24 mths) RM 57 (30 mths) RM 96 (24 mths) PLAN 3 (40 GB monthly quota) - RM 98/mth RM 77 (30 mths) *Term & Conditions: 1. New postpaid customer must pay 6 x Device monthly fee upfront. 2. More than 6 months but less than a year existing postpaid customer must pay 3 x Device monthly fee upfront. 3. Zero upfront payment for more than a year existing postpaid customer. 4. Only more than a year existing postpaid customer is eligible to add 2nd device and contract Hint: Use array in your program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
