? on Array

This is a discussion on ? on Array within the C Programming forums, part of the General Programming Boards category; I am just learning C. I have gotten this program from a friend and am unable to write it. If ...

  1. #1
    Unregistered
    Guest

    Question ? on Array

    I am just learning C. I have gotten this program from a friend and am unable to write it. If anybody has a free moment to look at this and help me please post back.
    Program: computerizing baseball records. wirte a program which computes the batting avg for each team member. there are 10 members on the team, their batting records consist of hits, walks, and outs during a game.
    Input: compute each player's batting avg by adding the total number of hits and dividing it by the total number of times at bat. a walk does not count as either a hit or a time a bat when batting avg is being calculated.
    Output: print a table showing each player's id#, batting avg, and number of walks.
    (can only use functions and arrays)

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    95
    dont you mean you got some homework off the teacher and you want someone to write it????. For anyone to help you need to atleast put in a bit of effort and show some code of your own and specific problems.

  3. #3
    Unregistered
    Guest
    If I could afford to take a class I wouldn't be posting a help question here. Thanks for your help everyone.

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by Unregistered
    If I could afford to take a class I wouldn't be posting a help question here. Thanks for your help everyone.
    We will help, but we guide people and fix problems, we don't write complete apps.

    Have a go at doing some code, and post it here when you run into troubles.

    If you are having trouble starting, write some pseudo code first, before jumping into C. It'll help you with the logic and flow control.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 05-29-2009, 08:25 PM
  2. Replies: 6
    Last Post: 11-09-2006, 03:28 AM
  3. [question]Analyzing data in a two-dimensional array
    By burbose in forum C Programming
    Replies: 2
    Last Post: 06-13-2005, 08:31 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM
  5. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 08:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21