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

New to C/C++ programming I have an ARRAY question. any Help?

3
Enter into array, 8 marks, then
Call 3 functions
greatest
Smallest
Average
Each of these 3 functions will receive as parameters the array of marks as well as the # of elements in the array.
Greatest will use these parameters to cal. the highest mark and return this value to main.
Smallest will use these parameters to cal. the lowest mark and return this value to main
Average will use these parameters. to cal. the average mark and return this value to main.
Upon receiving the highest mark, lowest mark, and average mark, main will display these 3 pieces of information on screen.
Jan 24 '07 #1
7 1618
Motoma
3,237 Expert 2GB
This isn't really a question...
What are you having problems with?
Jan 24 '07 #2
r035198x
13,262 8TB
Enter into array, 8 marks, then
Call 3 functions
greatest
Smallest
Average
Each of these 3 functions will receive as parameters the array of marks as well as the # of elements in the array.
Greatest will use these parameters to cal. the highest mark and return this value to main.
Smallest will use these parameters to cal. the lowest mark and return this value to main
Average will use these parameters. to cal. the average mark and return this value to main.
Upon receiving the highest mark, lowest mark, and average mark, main will display these 3 pieces of information on screen.
and when you do decide to post the question make sure you include the codes that you have tried for this (using code tags).
Jan 24 '07 #3
BQuin
3
How to write the above program. I dont know where to even start. its an assignment I got from school.
Jan 24 '07 #4
Motoma
3,237 Expert 2GB
How to write the above program. I dont know where to even start. its an assignment I got from school.
I would suggest, then, opening the programming book you received/bought when you registered for your class. This should provide you with an understanding of arrays as well and the proper techniques for iterating through them, including control structures such as for and while loops.
Do you have any code written? Posting this would be a great place to start when asking for help.
Jan 24 '07 #5
r035198x
13,262 8TB
How to write the above program. I dont know where to even start. its an assignment I got from school.
But surely you know how to write the shell of the program. Write that and post it.
Jan 24 '07 #6
cworld
15
yes it is a simple program. i suggest you to read a simple programming book. then you compare two nos save the no which is large and compare it with third and so on .
Once you try then if you face the problem then again ask.
cworld
Jan 24 '07 #7
BQuin
3
thanks guys...I'll give it a shot and get back to you
Jan 24 '07 #8

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

Similar topics

3
by: lonelyplanet999 | last post by:
Hi, I'm a newbie to perl and is now studying about perl programming, I read some perl programming tutorials online (enter 'Perl tutorial' at google.com) and also find some sample perl scripts...
270
by: Jatinder | last post by:
I found these questions on a web site and wish to share with all of u out there,Can SomeOne Solve these Porgramming puzzles. Programming Puzzles Some companies certainly ask for these...
4
by: William | last post by:
I would appreciate your help on the following programming questions: 1. Given an array of length N containing integers between 1 and N, determine if it contains any duplicates. HINT: The...
134
by: evolnet.regular | last post by:
I've been utilising C for lots of small and a few medium-sized personal projects over the course of the past decade, and I've realised lately just how little progress it's made since then. I've...
6
by: Paul Fi | last post by:
i have little knowledge of socket programming, but what i know is that using sockets we exchange text between endpoints of the socket but first we convert the text to array of bytes and we send it...
42
by: Kevin Spencer | last post by:
Is it just me, or am I really observing a trend away from analysis and probem-solving amongst programmers? Let me be more specific: It seems that every day, in greater numbers, people are coming...
8
by: djc | last post by:
I'm new to this and was wondering what the options are for interpreting the command line using a CLI program. Specifically methods for interpreting the parameters passed to the program on the...
23
by: Dexter | last post by:
My site is home to series of quizzes ranging from Accounting, Business, Math to programming languages. These are multiple choice type questions and you get a score card at end. For C language, ...
43
by: Adem24 | last post by:
The World Joint Programming Language Standardization Committe (WJPLSC) hereby proclaims to the people of the world that a new programming language is needed for the benefit of the whole mankind in...
5
by: JavaMas | last post by:
I am a beginner in Java programming after a few lessions I was provided with this task and I have no clue how to go about it.this appears to be simple but for me is a mountain, if any one could help...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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
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...

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.