473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Funtion to help finding the Largest Value

2
Who can help solve this problem???

Finding the Largest Value

(a) write a function, largest(), that returns the largest value in a signed integer array. The array and its size are passed as arguments.

(b)Write a main program that inputs MAX values from the keyboard into a signed
integer array, array, and points, using largest(), the largest value to the screen.
Sep 30 '06 #1
3 3920
X~coder
14
this sounds more like a homework but here is your code
c ++

Code removed per posting guidelines
////////////////////////////////////////////////////////////////////////////////
at b) try to be more specific && give an example


and try to solve your homework allone
Sep 30 '06 #2
m013690
23
If you're so adamant about him doing his homework alone, you could have just declined the help. On the other hand, if you're looking to be a know-it-all, then don't be so critical of someone else...
Sep 30 '06 #3
sicarie
4,677 Expert Mod 4TB
Who can help solve this problem???

Finding the Largest Value

(a) write a function, largest(), that returns the largest value in a signed integer array. The array and its size are passed as arguments.

(b)Write a main program that inputs MAX values from the keyboard into a signed
integer array, array, and points, using largest(), the largest value to the screen.
So what have you done on this? Where are you stuck? I'd start with the prototype of largest() - what is it passed, what does it return and how do you show that?
Dec 23 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Peter Ammon | last post by:
I have a floating point number. I'd like to get the nearest floating point number that is larger or smaller than the given number. I investigated FLT_EPSILON but it only seems to be useful if the...
38
by: Red Dragon | last post by:
I am self study C student. I got stuck in the program below on quadratic equation and will be most grateful if someone could help me to unravel the mystery. Why does the computer refuse to execute...
15
by: join | last post by:
I am a new student for language C , I do not have any course related to C and this question no related to any kind of home work or assignment I am truing to learning a C language and i went to...
19
by: gk245 | last post by:
Trying to write a program that will figure out if a number is perfect or not. Here is my logic: 1) Read in the number 2) Split it up (number - 1) 3) Put all the split up numbers into an...
19
by: ramu | last post by:
Hi, I have, suppose 1000 numbers, in a file. I have to find out 5 largest numbers among them without sorting. Can you please give me an efficient idea to do this? My idea is to put those numbers...
8
by: bryant058 | last post by:
When I type every number=0,the largest is 4. It'sconfusing! What's wrong with my program? ---------------------------(my source code)------------------------------- #include<iostream> using...
3
by: kalyankiran33 | last post by:
I have com across a program in which I should take 17 as a global constant. I have to take 17 inputs. for those inputs .. I have to find the number of even numbers entered the number of odd...
6
by: rkmr.em | last post by:
Hi I need to process a really huge text file (4GB) and this is what i need to do. It takes for ever to complete this. I read some where that "list comprehension" can fast up things. Can you point...
1
by: Undermine | last post by:
#include <iostream> int main() { using std::cout; using std::endl; using std::cin; int value, count=0, sum=0, average,total, smallest, largest;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.