can u solve this program :P

This is a discussion on can u solve this program :P within the C++ Programming forums, part of the General Programming Boards category; Write a menu driven program that performs the following tasks where each task gets performed by a separate function: a) ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,437
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 08:48 AM
  3. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 04:23 PM
  4. Replies: 3
    Last Post: 01-14-2003, 09:34 PM
  5. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 11:39 AM

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