SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 1 Day Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 21 Dec 2017 My Price 10.00

IT210 Business Applications with C++ //Programmer:

I need help with this C++ program! I'm trying to create the same program on the attached pdf file. I also attached what I have completed so far (I'm missing a few things)

  •   Courtney Gilliam


    //Preprocessor directives
    #include<iostream>
    #include<fstream>
    #include<iomanip>

    using namespace std;

    //global variables, global constants, functions prototypes
    void headerfn();//headerfn prototype
    void descriptionfn();
    void namefn();


    int main(){
        system("color f6");
        //start of block in main
        headerfn();//function call
        descriptionfn();
        namefn();
        string firstName, lastName;
        int credit;
        float netBalance;
        float payment;
        int d1;
        int d2;
        float averageDailybalance;
        float interest;
        float APR;
        int choice;
        int decision;

    }//end of main

    //**********************************************
    void headerfn(){

        cout<<"=*******************************************="<<endl;
        cout<<"*   IT210 Business Applications with C++    *"<<endl;
        cout<<"*   Programmer: Courtney Gilliam            *"<<endl;
        cout<<"*   Date: April 15, 2017                    *"<<endl;
        cout<<"*   Module 6 Program Assignment             *"<<endl;
        cout<<"*   Interest Calculator                     *"<<endl;
        cout<<"=*******************************************="<<endl;
        cout<<endl;  
        }//end of headerfn

    //**********************************************
    void descriptionfn(){
        //description of program
        cout<<"This program calculates the interest on unpaid"<<endl;
        cout<<"credit card balances using the average daily balance"<<endl;
        cout<<endl;
    }//end of program description function

    //**********************************************
    void namefn(string firstName, string lastName){ //void function reading customer's full name
        cout<<"Please enter the first and last name on the credit card: ";
        cin>>firstName>>lastName;
        cout<<endl;
        cout<<"You've entered: "<<firstName<<lastName;
        cout<<endl;
    }//end of namefn

    //**********************************************
    //value returning function to read credit card number
    int creditfn(int credit){
        cout<<"Please enter the credit card number: ";
        cin>>credit;
        return credit;
    }//end of creditfn

    //**********************************************
    //void function verifying credit card number is correct
    void checkfn(int decision){
        cout<<"If this is correct, press 0 or 1 to try again: ";
        cin>>decision;
    }//end of checkfn

    //**********************************************
    //void function reading credit card balance shown in bill
    void netBalancefn (float netBalance){
        cout<<"Please enter the balance shown in the credit card bill: ";
        cin>>netBalance;
    }//end of netBalancefn

    //**********************************************
    //void function reading credit card payment
    void paymentfn(float payment){
        cout<<"Please enter the number of days in the billing cycle: ";
        cin>>payment;
    }//end of paymentfn

    //**********************************************
    //void function readingthe number of days in the billing cycle
    void d1fn(int d1){
        cout<<"Please enter the number of days in the billing cycle: ";
        cin>>d1;
    }//end of d1fn

    //**********************************************
    //void function reading the number of days payment was made before billing cycle
    void d2fn(int d2){
        cout<<"Please enter the number of days payment was made before billing cycle: ";
        cin>>d2;
    }//end of d2fn

    //**********************************************
    //void function calculations
    void averageDailybalance(float netBalance, float payment, int d1, int d2, float averageDailybalance){
        averageDailybalance= (netBalance*d1-payment*d2)/d1;
    }//end of averageDailybalancefn

    //**********************************************
    //value returning function calculating APR
    float APRfn(float averageDailybalance, float APR){
        if(averageDailybalance< 100){
            APR=05;}
            else if(averageDailybalance<1000){
                APR=10;}
                else {APR=15;}
                return APR;
                }//end of APRfn

    //**********************************************
    //void function calculating interest
    void interestfn(float averageDailybalance, float APR, float interest){
        interest- averageDailybalance*APR/(100*12);
        }//end of interestfn

    //**********************************************

    //void function displaying output
    void outputfn(float netBalance, float payment, float averageDailybalance, float APR, float interest, int d1, int d2){
       
       
        //Output of credit card balance
        cout<<fixed<<setprecision(2)<<left<<setw(40)<<setfill('.')<<"Credit Card Balance";
        cout<<right<<setw(10)<<setfill(' ')<<netBalance;
        cout<<endl<<endl;

        //Output of interest rate
        cout<<fixed<<setprecision(2)<<left<<setw(40)<<setfill('.')<<"Annual Interest Rate";
        cout<<right<<setw(10)<<setfill(' ')<<APR;
        cout<<endl<<endl;

        //Output of payment made
        cout<<fixed<<setprecision(2)<<left<<setw(40)<<setfill('.')<<"Payment Made";
        cout<<right<<setw(10)<<setfill(' ')<<payment;
        cout<<endl<<endl;

        //Output for days in billing cycle
        cout<<left<<setw(40)<<setfill('.')<<"Number of Days in Billing Cycle";
        cout<<right<<setw(10)<<setfill(' ')<<d1;
        cout<<endl<<endl;

        //Output for days payment was made before end of cycle
        cout<<left<<setw(40)<<setfill('.')<<"Number of Days Before billing Cycle";
        cout<<right<<setw(10)<<setfill(' ')<<d2;
        cout<<endl<<endl;

        //Output of Average Daily Balance
        cout<<left<<setw(40)<<setfill('.')<<"Average Daily Balance";
        cout<<right<<setw(10)<<setfill(' ')<<averageDailybalance;
        cout<<endl<<endl;

        //Output of interest on the unpaid balance
        cout<<setprecision(2)<<left<<setw(40)<<setfill('.')<<"Interest on Unpaid Balance";
        cout<<right<<setw(10)<<setfill(' ')<<interest;
        cout<<endl<<endl;
    }//end of ouputfn



Attachments:

Answers

(5)
Status NEW Posted 21 Dec 2017 09:12 AM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)