Colafone Corp, an internet service provider has just started operations in Fiji. They require a program that calculates and prints the bill for Colafone Corp’s clients. As such the Corporation has come to you to create such a program. The corporation offers two types of services plan: Broadband Lite and Broadband Supa. Its rate varies depending on the type of service plan.

Your program should prompt user to enter an account number, a service code (type char), and amount of data downloaded in MB. A service code of l or L means Broadband Lite Plan; a service code of s or S means Broadband Supa Plan; Your program should output the account number, type of service plan, amount of data downloaded in MB

hiiii.iam kinda a new kid to the c++..can someone help me going with this coding....??
the diagram is in the attachment....
regardssss.....

>>.can someone help me going with this coding?

Yes, we can help, but we're not going to write it for you.

struct service_plan
{
     int account_number;
     char service_code;
     int data_size;
}


int main()
{
     //create an array of service_plans

     //start loop

          //prompt user for account number
          //prompt user for service code
          //prompt user for amount of data
          //ask user if they would like to enter another record
          //increment an array counter

     //end loop

     //start loop

          //display element account_number
          //display element service_code
          //display element data_size
          //increment array counter
  
     //end loop

     return 0;
}

Thankssssss bro.....i have tried with the coding but INSTEAD OF DISPLAYING ONE OPTION ...THERE IS TWO DISPLAYED......
For ex....if i ented info for Broadband lite why is broadband supa displayed.....


here is the coding i tried out........
**************************************************************************************************************************************************************************

#include <iostream>
using namespace std;

int main()
{
    
    int account_number;
    char service_code;
    int data_size;
    double amount_due;
    float lMonthly_rental_fee, sMonthly_rental_fee, lIncluded_data_cap, sIncluded_data_cap, lAdditional_data_cap, sAdditional_data_cap, lSecond_data_cap, sSecond_data_cap, lMaximum_data_cap, sMaximum_data_cap;
    
    lMonthly_rental_fee = 40.84;
    sMonthly_rental_fee = 61.28;
    lIncluded_data_cap = 2048;
    sIncluded_data_cap = 5120;
    lAdditional_data_cap = 20;
    sAdditional_data_cap = 20;
    lSecond_data_cap = 4096;
    sSecond_data_cap = 10240;
    lMaximum_data_cap = 20480;
    sMaximum_data_cap = 51200;
    
    
    cout << "\t\t*******************************************************";
    cout << "n\t\t\t\t\tCOLAFONE CORP" <<"\n";
    cout << "\t\t*******************************************************";
    cout <<endl <<endl;
    
    
    cout << "Please input Account Number: ";
    cin >> account_number;
    cout << endl;
    
    cout << "Please input Service Code: ";
    cin >> service_code;
    cout << endl;
    


    
    if (service_code == 'l' || service_code == 'L')
    {
        cout << "Your option is BROADBAND LITE" << endl <<endl;
        cout << "Please input the Data Size(MB):" << endl;
        cin >> data_size;
        cout << endl;  
        
        
             if (data_size <= 2048)
             {
                           amount_due = 40.84;
                           cout << "Your Account Number is: " << account_number << endl;
                           cout << "Your Service Option is : BROADBAND LITE" << endl;
                           cout << "The Data Size Downloaded in MB is: " << data_size << endl;
                           cout << "Your Total amount Due is: $" << amount_due << endl;
                           cout << endl;
                           }
                           
                           
             else if (data_size >= 2048 && data_size <= 4096)
             {
                           amount_due = 40.84 + 20;
                           cout << "Your Account Number is: " << account_number << endl;
                           cout << "Your Service Option is : BROADBAND LITE" << endl;
                           cout << "The Data Size Downloaded in MB is: " << data_size << endl;
                           cout << "Your Total amount Due is: $" << amount_due << endl;
                           cout << endl;
                           }
                           
                           
             else if (data_size >= 4096 && data_size <= 20480 )
             {
                           amount_due = 60.84 + (((data_size - 4096) / 10) * 0.10);
                           cout << "Your Account Number is: " << account_number << endl;
                           cout << "Your Service Option is : BROADBAND LITE" << endl;
                           cout << "The Data Size Downloaded in MB is: " << data_size << endl;
                           cout << "Your Total amount Due is: $" << amount_due << endl;
                           cout << endl;
                           }
                           
             else
             {
                 cout << "Invalid Data Cap" << endl;
                 cout << "Choose Appropriate Data Cap" << endl;
                 cout <<endl;  }
                 

                 
                 

}             
                      
    else if (service_code == 's' || service_code == 'S')
    {
                                
        cout << "Your Option is BROADBAND SUPA" << endl;
        cout << "Please input the Data Size (MB): " << endl;
        cin >> data_size;
        cout <<endl;   
        }
        
        
        if (data_size <= 5120)
        {
                      amount_due = 61.28;
                      cout << "Your Account Number is: " << account_number << endl;
                      cout << "Youe Service Option is: BROADBAND SUPA " << endl;
                      cout << "The Data downloaded in MD is: " << data_size << endl;
                      cout << "Your Total Amount Due is: $" << amount_due << endl;
                      cout << endl;
                      }
                      
        else if (data_size >= 5120 && data_size <= 10240)
        {
                      amount_due = 61.28 + 20;
                      cout << "Your Account Number is: " << account_number << endl;
                      cout << "your Service Option is : BROADBAND SUPA " << endl;
                      cout << "The Data Downloaded in MB is : " << data_size << endl;
                      cout << "Your Total Amount Due is : $" << amount_due << endl;
                      cout << endl;
                      }
                      
                      
        else if (data_size >= 10240 && data_size <= 51200)
        {
                      amount_due = 81.28 + (((data_size - 10240) / 10) * 0.10);
                      cout <<"Your Account Number is: " << account_number << endl;
                      cout <<"Your Service option is: BROADBAND SUPA " << endl;
                      cout <<"The Data downloaded in MB is: " <<data_size << endl;
                      cout <<"Total amount Due is: $" << amount_due <<endl;
                      cout << endl;
                      }
                      
        else
             {
                 cout << "Invalid Data Cap" << endl;
                 cout << "Choose Appropriate Data Cap" << endl;
                 cout <<endl;  }
                 
                 

    
    
    
    system ("PAUSE");
    return 0;
    
}

You have an extra close-curly-brace '}' at line 101. Cheers!

ahhhh....you just made my day.....raptr_dflo.......and clinton portis....
Thnxxxx very much guys...........
Merry X mas and a Happy new year guys.....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.