![]() |
|
#1
|
|||
|
|||
Help With float Arrays PLEASE!!!!!I was wondering if anyone could help me with a program?
My instructions are to write the portion of a program that declares a float array with 100 elements. Write the code that performs the following operations: 1.) Displays the sum of the elements in the array. 2.) Displays the smallest number in the array. 3.) Displays the 5 largest numbers in the array. Please, any help would be greatly appreciated! ![]() |
|
#2
|
|||
|
|||
|
Quote:
OK. I'll start: CPP / C++ / C Code:
Regards, Dave |
|
#3
|
||||
|
||||
|
Quote:
Dave post shows you this part. The only question I have is you say you have to write the portion of the program. Does this mean you are working with a group that is writing the rest of the code. If so, it would be wise to determine what storage needs you already have in your assignment. Quote:
Code:
Quote:
Code:
Quote:
Code:
Now you know what variables that you need to create code for. I find it easy to define my goals and then work at them. __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#4
|
|||
|
|||
|
Quote:
Thank you Kind Folks!! I will try the rest now that you have given me a starting point! If I have any questions...I will surely ask! Thank You! ![]() |
Recent GIDBlog
Flickr uploads of IA pictures by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C++ help | Grid | C++ Forum | 7 | 25-Oct-2004 22:40 |
| need help with passing 3 arrays into a function | tommy69 | C Programming Language | 14 | 07-Apr-2004 00:22 |
| Please Help, problems writing c program REVISED | soulfly | C Programming Language | 6 | 03-Mar-2004 13:57 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The