Thread: can u solve this program :P

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    1

    can u solve this program :P

    Write a menu driven program that performs the following tasks where each task gets
    performed by a separate function:
    a) Reads the information of up to 30 students and stores them in parallel arrays. The information for each student consists of three things:
    • Student Name
    • Student Number
    • Course Letter Grade
    Function prototype:
    void readInfo(string names[], int numbers[], char grades[], int& count);
    b) Display the information of all students. If no information available, an appropriate message is printed. Function prototype:
    void printInfo(string names[], int numbers[], char grades[], int count);
    c) Sort the names of the students in alphabetical order. Function prototype:
    void sortInfo(string names[], int numbers[], char grades[], int count);
    d) Search students information using a student number. If found, the index of the student in the array is returned to the main function. The main function then displays the information of the matched student otherwise an appropriate message is printed. The number inputted by the user in the main function is passed to the searchInfo function as a parameter. Function prototype:
    int searchInfo(int num, int numbers[], int count);
    e) Given a letter grade, display the names of all students with this letter grade. If no match is found an appropriate message is printed. The letter grade to be matched is inputted by the user in the main function then passed to gradesInfo as a parameter. Function prototype:
    void gradesInfo(char grade, string names[], char grades[], int count);

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 04-25-2005, 11:59 AM
  2. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 09:48 AM
  3. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 05:23 PM
  4. Replies: 3
    Last Post: 01-14-2003, 10:34 PM
  5. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM