xymon
+ Reply to Thread
Results 1 to 3 of 3

Thread: Urgent c++ program help

  1. #1
    Join Date
    Sep 2006
    Posts
    1

    Urgent c++ program help

    I have to write this program by *2 a.m. tonight and i need help writing this program below. I will work with whoever can give me help all night if that is what it takes


    I'm trying to write a small code that will ask the user to choose between Orange county or Seminole county sales tax calculation.
    - The user will also have the option to quit the program. (You can use *, 2, and * respectively).
    - If the incorrect choice is typed, display an error message and prompt the user to re-enter a choice.
    - If the user selects one of the two counties, the program should prompt the user to enter the price of the item.
    - The program must then calculate the sales tax according to the following:
    - Orange county tax is 6.5%.
    - Seminole county tax is 7.0%.
    - Finally, the program must output the price, tax, and total amount.
    - The process must continue until the user enters the option to quit the program.


    Here is a bit of my code but i don't know what to do next:
    am i off to the right start or what?
    CODE:



    using namespace std;
    int main()
    {
    bool done;
    int num*;
    int num2;
    int userChoice;
    bool finished;
    do
    {
    cout << "Enter <*> if you want to start over ";
    cin >> userChoice;
    if (userChoice == *)
    {
    finished = true;
    }
    else
    {
    finished = false;
    }
    }
    done = false;
    cout << " Enter Orange county or Seminole county ";
    while (done == false)
    {
    cin >> num*;
    cin >> num2;

    done = false;
    cout << " Incorrect. Please try again. ";
    }

    }
    while (finished == false);
    return 0;

  2. #2
    Join Date
    Sep 2005
    Posts
    2,050
    We're not here to do your homework for you.

  3. #3
    Join Date
    Sep 2006
    Posts
    157
    Hes right thats kinda like cheating kinda getting someone else to do your work. And why wait so long to do this project your doing see if it was program i know i would do it straight away so i got longer to study for it.

+ Reply to Thread

Similar Threads

  1. Portable Keylogger.. PLZ help URGENT
    By sweeeeeeety in forum Internet Privacy
    Replies: 3
    Last Post: 07-10-2012, 05:16 AM
  2. urgent request
    By Dabooos in forum Viruses and Trojans
    Replies: 3
    Last Post: 11-07-2007, 01:17 PM
  3. Got screwed :( Please Urgent!! help Required
    By wiseguy306 in forum Internet Privacy
    Replies: 2
    Last Post: 10-29-2006, 12:08 PM
  4. Need Urgent Help
    By imranbmw in forum Proxies and Firewalls
    Replies: 3
    Last Post: 07-31-2004, 08:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts