Homework Questions? Ask a Tutor for Answers ASAP
For ATLProg only
Don't need it until 4/26(Fri). Here is the assignment(sent as email) :
"Your goal is to create a program that calculates the finance charge and monthly payment on a certain balance of a credit card. You need to ask the user for the current balance of their card and call a function called getAPRCharge(). This function will return the APR charge using this formula: balance * 0.15 * 1/12. You will then call a function called getPayment to calculate the payment owed. If the balance is greater than $1000 then the payment will be (balance + APRcharge) * 0.05, if the balance is between 1000 and 100 then the payment will be (balance + APRcharge) * 0.01, and if the balance is less than 100 then the payment will just be balance + APRcharge. Finally you will print the balance, APR charge, and payment, and ask the user if they wish to run the program again. If they say yes then you will repeat, otherwise exit."
And here is the link to my beginning of the program:
The program is supposed to be pretty generic. and the names of the functions HAVE to be exactly what is in the assignment.
For ATLProg only
Here is the link of what I have done so far, with the exception of a minor detail. I still cant get it to run...it asks the user for the card balance, and then thats it.
How bad did I botch it? Any suggestions?
not sure if i need to respond back for you to respond to me, but here is an error i cant seem to get around:
c:\users\sean\documents\visual studio 2010\projects\trial program\trial program\trial.cpp(8): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
Here is the line of code associated with it:
APRCharge = ((balance * 0.15) * (1 / 12));
is this why it does not calculate the APR and only asks what my balance is?
Sorry, I owe you an response on this...just got caught up wiht other stuff... This 'error that you are referring to... c:\users\sean\documents\visual studio 2010\projects\trial program\trial program\trial.cpp(8): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
This is NOT an error, it is actually an warning and has no impact on running of program
i understand, i have kids that prevent me from doing stuff all the time.
how does the program look? does it make sense? why wont it run correctly?
ok, thanks, XXXXX XXXXX my last msg! have a good night!
So I got the program to run with out any errors, but now I need to get the answers to round to the nearest hundredth. I tried floor, and double, but not getting what I was expecting. Here's the link to what I got
I need to have this in in the next hour
Yeah I couldnt get on the site all day yesterday and part of this morning....maybe why? thanks, XXXXX XXXXX here!
A huge thanks!