The calculation that I have tried reads as follows:
Expand|Select|Wrap|Line Numbers
- //This Section Calculates The Cost Of The Call.
- void CallCost()
- {
- if (CallLength<=3)
- {
- sc=1.50;
- cout<<"The COST Of This Call Is."<<sc<<endl;
- }
- else
- {
- (CallLength>=4);
- CalcCall=(CallLength-3)*0.30+1.50;
- cin>>CalcCall;
- cout<<"The COST Of Your Call Before Being Discounted Is "<<CalcCall<<endl;
- }
- }
When I input a call lasting 3 minutes I get the answer 1.50, and when I enter a call for 5 minutes I get the same answer instead of 2.10. It is probably something stupid that I am missing, but it is driving me mad.
Any ideas.