Jump to content
Sign in to follow this  

C programmers needed

Recommended Posts

As some of you may know i am trying to learn C programming on the side to get more knowledgeable on how the computer system works.

Two reasonable questions here anyone want to give it a go?

Using arrays, write a C program to read students’ names along with their respective

scores and then calculate the average. Every student has 3 courses. The output may

look something like:

Name Average

John Doe 80

Jane Doe 90


b) Add to the program in (a) a function largest which takes an array (of averages) as

an input and which returns the index indicating the location of the student with the

highest average within the input array. This index can, then, be used to retrieve the

student’s name and display it along with the average, as follows:

Adam Smith 99

Share this post

Link to post
Share on other sites
I learnt C some time ago but cant remember any of it sorry.. i do know there were some decent web sites about.. google around.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...