Question: Use C language.to write the program. Not C++. Recently, a telco company launched an attractive postpaid program. In this program you can select any three

 Use C language.to write the program. Not C++. Recently, a telco

Use C language.to write the program. Not C++.

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) RM 129 (24 mths) PLAN 1 (80 GB monthly RM 59 (24 mths) quota) - RM 188/mth RM 99 (30 mths) RM 99 (30 mths) RM 40 (30 mths) RM 133 (24 mths) RM 149 (24 mths) RM 76 (24 mths) PLAN 2 (60 GB monthly quota) - RM 148/mth Not Available (30 mths) RM 119 (30 mths) RM 57 (30 mths) RM 138 (24 mths) RM 169 (24 mths) RM 96 (24 mths) PLAN 3 (40 GB monthly quota) - RM 98/mth Not Available (30 mths) RM 139 (30 mths) 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!