954,160 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

My Program runs but not correctly

I fixed my program from the previous complaint and I got it to run. Now my problem is that it won't run correctly. Can you help me?

Attachments Cell_Phone_Bill_homework_due_2-18-05.cpp (2.88KB)
ANRCCC
Newbie Poster
5 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

1. Don't post twice the same question.
2. You should have posted the code (it's not so big)
3. Some errors (not compiler, but logical errors):

if (plan == 'A')
    {
         BASE_PRICEA;
    }

What's this??

else (plan == 'A' && weekday <= 250);
    {
    cout << "No weekday overages" << endl;
    }

I think you forgot anif:

else if (plan == 'A' && weekday <= 250)

and, afterif don't put a semicolon.

frrossk
Posting Whiz in Training
220 posts since Sep 2004
Reputation Points: 17
Solved Threads: 9
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You