C programming help plz!

Discussion in 'All other topics' started by alnajjar, Dec 9, 2007.

  1. alnajjar

    alnajjar Member

    Joined:
    Dec 9, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    11
    i need help with 2 fairly small programs the first one says:

    write a program that has function that takes 3 arguments: a character and 2 intgers. the character is to be printed. the first integer specifeis the number of times that the harater is to be printed on a line, and the second integer specifes the number of lines that are to be printed.

    the second one says:
    write a program that reads characters from the standard input to end-of-file. for each character, have a program report weather it is a letter. if it is a letter, also report its numerical loation in the alphabet. for example, and C would be letter 3. incorporate a function that takes a character as an argument and returns the numerial location if the haracter is a letter and that returns -1 otherwise.



    Thank you in advanced!
     
  2. Indochine

    Indochine Regular member

    Joined:
    Dec 21, 2006
    Messages:
    1,447
    Likes Received:
    0
    Trophy Points:
    46
    Read your textbook, and if you still do not understand, tell your teacher that you do not understand how to do your homework. Then he will know that you need help.

    Do not use web forums to get others to do your homework.
     

Share This Page