IF-ELSE Function

This is a discussion on IF-ELSE Function within the C++ Programming forums, part of the General Programming Boards category; [text] I'm trying to write a program for a tax return that will read a dollar amount and print out ...

  1. #1
    Registered User Virtuous1's Avatar
    Join Date
    Nov 2003
    Posts
    5

    Question IF-ELSE Function

    [text] I'm trying to write a program for a tax return that will read a dollar amount and print out the correct tax . . . using the IF-ELSE function, I've written out most of the program, however, when it comes to that different tax percentages to use for the various income, i'm stuck . . . How would I go about writing it? Any help with this will be greatly appreciated. [/text]

  2. #2
    Registered User
    Join Date
    Jun 2002
    Posts
    230
    post your code. let us c what you have.

    also, if else is not a function. its a statement.
    C++ Rules!!!!
    ------------
    Microsoft Visual Studio .NET Enterprise

  3. #3
    Registered User Virtuous1's Avatar
    Join Date
    Nov 2003
    Posts
    5
    Okay, here's the code (I tried cutting and pasting the code but I couldn't get it go through):
    Attached Files Attached Files
    Last edited by Virtuous1; 11-16-2003 at 06:30 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 04:06 PM
  3. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 02:01 AM
  4. Replies: 28
    Last Post: 07-17-2006, 12:35 AM
  5. const at the end of a sub routine?
    By Kleid-0 in forum C++ Programming
    Replies: 14
    Last Post: 10-23-2005, 07:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21