How to make the line to be constant? use wat code??

my output for my assignment was :
My problem is wat code sholud i put so that tat whole vetical line would not move? becuz if i enter in a digit for example basic income, if i enter 60000, then the line "|" will move to the right, how to make it goes constant?
Secondly, my assignment was to set a round-up figure for the commission ,
,does anyone knows the source code to set in as example 1005.36 >(round up to)1005.40(rounded to next ten cents). Aynbody can tell me the source code for it? i need it very urgently.. tq..
*cough* *cough*
The admin (quoting Grey Wolf who quoted Eric Steven Raymond) wrote:
Don't post homework questions. Programmers are good at spotting homework questions; most of us have done them ourselves. Those questions are for you to work out, so that you will learn from the experience. It is OK to ask for hints, but not for entire solutions.

http://cplusplus.com/forum/beginner/1/

The first question I cannot answer because I cannot understand it. You posted no output, sorry.

The second question has a resounding yes answer. We do (or at least I) know how to do that and we (or I) know how to put in in C++.

The third question has a resounding no answer. We (and I mean we) cannot and will not give you the source code, as it is against the forum's socially determined code of conduct.

I will give you a hint and say that you can use ceil(). Multiply your decimal by 10, use ceil(), and divide it by ten again. But you knew that from another thread, right?

-Albatross

Last edited on
the forum's socially determined code of conduct.

Ha I like that! Power to the people!! :)
Albatross wrote:
The admin quoted Eric Steven Raymond and wrote
Correction: The admin quoted Grey Wolf who quoted Eric Steven Raymond who wrote: ...
Detail! But to be fair to Grey Wolf, I edited it.

-Albatross
Topic archived. No new replies allowed.