![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2006
Location: Puerto Rico
Posts: 3
Rep Power: 0
![]() |
beginner
Hi, My mane is Joseph and I was wondering if you could help me. The program is in c++.I tried all posible forms to do it but it was futile for me.The problem which is the following:
Make a program that allows you to determine the highes number whit the lower number entered by 10 valuesw entered. Thanks a lot |
|
|
|
|
|
#2 |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 646
Rep Power: 4
![]() |
Nobody will do your homework for you. That said, there are certain things that you can do to make things easier for yourself.
Try writing out what has to be done in plain english. If you can't understand how to do it, there is no point in attempting to actually write it. If I can understand your question correctly, you need to find the greatest value entered by a user out of 10 values. Post either what you have so far or how you plan to solve the problem, and you may get more help from the members here.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
|
|
#3 |
|
Newbie
Join Date: May 2006
Location: Puerto Rico
Posts: 3
Rep Power: 0
![]() |
Thanks
Yes, This is definetly my homework but I have run out of ideas for this one. This is the easiest one out of five programs the other four I wrote them with out a problem even when they are more complicated than this one I do not expect for other people to do my homework but I dont want other people to do my homework because I honestly I dont like it bu given that I am against time because is for tomorrow I have no other option but to ask for your help.
Thanks for having the time to answer my first post. ( the program has to tell you what is the gratest and the lowest number out of ten numbers that the user entered.) Thanks for any help that you can give me |
|
|
|
|
|
#4 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
Make a new variable, for our purpose lets call it GREATEST for now, and set it to the initial number entered. After that, test every number entered against GREATEST, and if it is greater than GREATEST, set GREATEST to this new number.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower |
|
|
|
|
|
#5 |
|
Newbie
Join Date: May 2006
Location: Puerto Rico
Posts: 3
Rep Power: 0
![]() |
Thanks for the informaion that you gave me.I did not think of that way
|
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
That's why you're taking the class
. It's also why we keep MJ around, and protected from lightning.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|