Jan
21

Help with credit card interest calculating program for C++(urgent!)?

By

Question by Celest Guardian: Support with credit measure label oddity working out devise for C++(urgent!)?
Could everybody greatfully await me with a little of a errors in this code? Right here is a assignment:

Full programming endeavour 6 upon page 243.

Read a outline carefully, protection which we capacitate a user a preference to run a complement or exit.

The work antecedent is:

double oddity (double initBalance, stand in price, int months);

Your primary outlay to a user contingency be a little thing similar to this:

Credit measure label curiosity
Enter: primary stability, monthly oddity assign as
a decimal fraction, e.g. for 1.five% per month write .015
and a series of months a check has run.
I will give we a oddity which has accrued.
100 .1 two

Curiosity accrued = $ 21.00
Y or y repeats, any alternative impression quits
y

Credit label interest
Enter: rough harmony, month-to-month seductiveness rate as
a decimal fraction, e.g. for one.5% per month write .015
and months a check has run.
I will give we a oddity which has accrued.
one hundred .one three

Interest amassed = $ 33.10
Y or y repeats, any alternative impression quits
n

My formula will arrive in a posts following this.

//File Name: workshop4.zip
//Author: Celest Guardian
//Email Adress: cg26@college students.uwf.edu
//Workshop Number: 4
//Description: A C++ devise utilized to work out a oddity upon a credit label harmony.
//Very final Edited: Oct ten, 2008

#incorporate
using namespace std;

double seductiveness (double initBalance, stand in fee, int months);
//Caluclates a seductiveness amassed from a credit measure label fortitude
//from a intitial stability, oddity charge, as good as apportion of months a user has had a mortgage.

int vital ( )

stand in initBalance, initAccumulated, rate;
int months;
burn quit;

cout < < "nCredit label interest";
cout << "nEnter: primary balance, monthly seductiveness rate as";
cout << "na decimal fraction, e.g. for 1.5% per month write 0.015";
cout << "nand a series of months a check has run.";
cout << "nI will give we a seductiveness which has accumulated.";

cin>> initBalance; “t”;
cin >> rate; “t”;
cin >> months; “t”;

initAccumulated = interest(initBalance, price, months);

cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(2);

cout < < "nInterest amassed = $ " << initAccumulated;

lapse 0;

double seductiveness (double initBalance, stand in rate, int months)

for (int i=0; i < months; i++)

stand in seductiveness = initBalance * rate;

double initBalance = initBalance + interest;

initAccumulated = initAccumulated + interest;
return (initBalance);

Here is a a categorical blunder from a compiler:

error: 'initAccumulated' was not spoken in this scope

I know we need to acknowledgement this though when we do it causes even some-more errors. Also, there is a proof blunder since a Accumulated seductiveness is usually next to to a worth entered for a balance. :( Please help!
Dear Charlie,

*sigh* Because this most will get me an F. :( My clergyman only reserved it so as good as it is due tonight. It is not starting unequivocally good as good as we do not know any a single to ask for help.
Thanks, Mr. C though which a single we have to compensate for as good as this plan is due during 11:30 executive time so we unequivocally dout which we would be means to get assistance in time. :(

Best reply:

Add your unequivocally own resolution in a comments!

Related posts:

  1. Best 0% interest credit card?
  2. Who Has the Best Credit Card Reward Program?
  3. Is it better to transfer debt to a 0% credit card w/a 1 yr promo or to transfer to a fixed 3% interest rate?
  4. 15 months free interest, pay min and save rest to earn money and pay credit card off in 14 mo?
  5. What is the best 0% transfer credit card program out there?
  6. How to ask credit card company to lower interest rate?
  7. 0% interest rate on credit card – Help!?
  8. Is there ever a time to pay off an 0 interest credit card over a higher interest card?
  9. should i pay off a deferred interest credit card balance before applying for a car loan?
  10. I have 2 credit cards (22.8/19.8 int. rates) How do I get a lower interest rate for both credit card accounts?
Categories : 0 Credit Cards

1 Comments

1

Why not contention what we have finished so distant as your choice as well as ask your tutor?

Sorry, idk