Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 21st, 2006, 12:14 PM   #1
JLopes
Newbie
 
Join Date: May 2006
Location: Puerto Rico
Posts: 3
Rep Power: 0 JLopes is on a distinguished road
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
JLopes is offline   Reply With Quote
Old May 21st, 2006, 12:56 PM   #2
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 648
Rep Power: 4 Jessehk is on a distinguished road
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!
Jessehk is offline   Reply With Quote
Old May 21st, 2006, 1:08 PM   #3
JLopes
Newbie
 
Join Date: May 2006
Location: Puerto Rico
Posts: 3
Rep Power: 0 JLopes is on a distinguished road
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
JLopes is offline   Reply With Quote
Old May 21st, 2006, 1:27 PM   #4
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
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
Mjordan2nd is offline   Reply With Quote
Old May 21st, 2006, 3:49 PM   #5
JLopes
Newbie
 
Join Date: May 2006
Location: Puerto Rico
Posts: 3
Rep Power: 0 JLopes is on a distinguished road
Thanks for the informaion that you gave me.I did not think of that way
JLopes is offline   Reply With Quote
Old May 21st, 2006, 4:08 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC