make me a simple c++ program

Oct 13, 2009 at 7:31am
hello everyone!
can you assist me in making a program
I'm using c++ prog.

/*This program accepts a number and determines
whether the input number is positive, negative or zero*/

this is our homework.,until now I'm having a bit difficulty with c++

tnx folks!
Oct 13, 2009 at 7:45am
Try on your own first.
Oct 13, 2009 at 11:37am
Oct 13, 2009 at 12:19pm
you need to start thinking like a programmer. Which is a problem solver. the program needs to accept a number and figure out if it is positive or negative.

so to start with the program needs to assign input to a variable(perhaps a prompt for input first), then it needs to figure out if the variable is equal to zero, higher than zero, or less than zero. Then print out a message to screen. <--- there's your pseudocode.

with each program you write you MUST think about the problem to start with, write it down as pseudocode if you must just as I did there.
Last edited on Oct 13, 2009 at 12:20pm
Topic archived. No new replies allowed.