473,386 Members | 1,715 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,386 software developers and data experts.

function calling using arrays:::::INT ADJUSTEDSUM (INT[],INT)

iam supposed to CREATE A FUNCTION

INT ADJUSTEDSUM (INT[],INT)

1. find the sum of the array of size 100
2. find the number of occurrence of a MIN and MAX number if its twice or more only use 1 instance of EACH
3.IF MIN AND MAX HAVE THE SAME NUMBER DO NOT INCLUDE IN THE SUM

AND FINALLY IF THE NUMBER OF ENTRIES BY THE USER IS LESS OR EQUAL TO 2 THEN I SHOULD RETURN 0.

kindly if anyone can suggest how i can do this using arrays , would greatly appreciate it, IAM NOT GOOD AT USING ARRAYS I GET MIXEDUP!


Thanks, Antique
Nov 29 '06 #1
0 1282

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

Similar topics

6
by: Seabook | last post by:
Hello guys, I just bumped into a page at nVidia.com that says that casting from float to int using (int) is a bad idea. What is the problem with (int)? Is it just speed or some other sublime bug...
3
by: Jason | last post by:
Hi, Im running windows xp pro and compiling using dev c++ 4. I have the following situation: #include <iostream> #include <string> using namespace std; int main() {
16
by: | last post by:
I saw this code in C++ but when tried to C causes an error: ------------- void function(int &a) { a = 5; } ------------- with this, passed in "function" the "a" pointer instead of "a" value, BUT...
6
by: Brian Haynes | last post by:
I've read all the posts in this forum that I can find that look related to this issue and I have only found 1 solution that I consider to be a bit of a hack. What I want to do is assign a value to...
3
by: Bruce | last post by:
I have a public method in a managed class similar to void foo(int i); I noticed something a bit curious when I complied the help file with Sandcastle. Sandcastle is seeing the int parameters as...
24
by: kindrain | last post by:
the code checks whether a.txt has exact the same lines, then write different lines into b.txt Here it is: (before that ,you should creat a.txt) ---------------------- #include<stdio.h>...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.