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.
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?