Help needed urgently

Hello, folks!

I am desperately looking for some generous soul, who could help me with a couple of very very c++ basic examples!

I will receive the task tomorrow - after some 24 h.

Thanks a lot in advance!!!

L.
Hello lapsa,

So when you get your tasks post the code and ask your questions. You are likely to get several responses that are beyond what you have learned so far.

Andy
What is a<=b if a=4 and b=9

===========

If a = 6, b = 2 and c = 5,
then value of (a <= b) || (b != c) is…

===========

If a = 64,
then value of sqrt(a) is…

===========

If a = 6, b = 8 and c = 7, then value of min(a,max(b,c)) is…

===========

What are possible x values, if
x = rand()%5+23;

===========

If it is necessary to generate a random number x, and its possible values are whole numbers
12; 13; 14; 15; 16; 17; 18,
then C++ program will be like following

===========

If a = 382.004,
then value of ceil(a) is…

===========

PLEASE, SAVE ME!
Last edited on
Create a program that asks the user to enter three integers and determines whether you can choose two between the three numbers you enter so that their amount is less than zero.
For example, if a user enters numbers 3, 4, and -3, the program prints the message "CANNOT", and if you enter numbers -1, 0, and 2, the message "CAN" is printed.
The only way to learn is to make an educated guess, post what you think the answers are and then we can correct your mis-understandings.

Of those questions, the one you may not be aware of is ceil(). This rounds upwards and returns the smallest integral value that is not less than x.

See http://www.cplusplus.com/reference/cmath/ceil/

Everything else is straightforward and easily answerable. What don't you understand?
Topic archived. No new replies allowed.