niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » C++
can u solve this program :P
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
bawen
*nix forums beginner


Joined: 24 Jul 2006
Posts: 1

PostPosted: Mon Jul 24, 2006 6:26 pm    Post subject: can u solve this program :P Reply with quote

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);
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 9:17 pm | All times are GMT
navigation Forum index » Programming » C++
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Need Help with Program in Perl on a Netware Server fhadzocos@gmail.com Perl 3 Fri Jul 21, 2006 1:57 pm
No new posts bind keyboard POWER button to start some program Vladi Lemurov Debian 1 Fri Jul 21, 2006 6:00 am
No new posts Recommend an email program for the debian-user-digest? DJ Hackenbruch Debian 5 Fri Jul 21, 2006 3:20 am
No new posts A program to quote like bash? andrew.fabbro@gmail.com shell 3 Wed Jul 19, 2006 10:45 pm
No new posts Rewish & his Program Hardy &&& C++ 8 Wed Jul 19, 2006 12:54 pm

Free Ringtones | Xbox Mod Chip | Personal Car Finance | Mortgage Calculator | Debt Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1204s ][ Queries: 16 (0.0548s) ][ GZIP on - Debug on ]