Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > The Conversation Pit > Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Programming A discussion forum for programs and programming used in tech-related businesses.

Reply
 
Thread Tools
Old 05-07-2008, 04:00 AM   #1 (permalink)
Registered User
 
Join Date: May 2008
Posts: 1
OS: WIN VISTA HOME BASIC EDITION


Confused Plz can anyone do this C++ program for me????

C++ program that reads N family names (N should be declared as a constant in your program
and it should be equal to the largest digit of your student id number), stores them in an array, sorts them
in ascending order and searches for the given name. The program should display and execute a menu
with the following options. A switch statement must be used to execute the following menu options:
1. Read N family names and store them in an array
2. Sort family names in ascending order
3. Search for a given family name
4. Display all family names which start with the letter "A"
5. Display all family names which end with the letter "H"
6. Display all family names
7. Exit
1. Read N family names and store them in an array
This option reads N family names from the keyboard and stores them in an array.
2. Sort family names in ascending order
This option sorts the family names in ascending order. The function to sort the family names must use
two “for loops” and one “if statement”.
3. Search for a given family name
This option searches for the family name. It asks the user to enter a family name and searches for it, if it
is found, it displays the message “family name - found” and array location otherwise displays a message
“family name - not found”.
4. Display all family names which start with the letter "A"
This option displays all family names stored in array which start with the letter "A".
5. Display all family names which end with the letter "H"
This option displays all family names stored in array which end with the letter "H".
6. Display all family names
This option displays all family names stored in the array.
7. Exit
The program should display the message “Thank you.” and your student id number and exit.
The whole program should work in a loop to enable the user to read N family names, sort them in
ascending order, search for the given family name and display all family names until the user chooses to
exit.

Last edited by lucky609 : 05-07-2008 at 04:07 AM. Reason: for more specification
lucky609 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 05-07-2008, 04:36 PM   #2 (permalink)
TSF Enthusiast
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Northampton, UK
Posts: 571
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)


Re: [B][/B]Plz can anyone do this C++ program for me????

Have you begun to write the program? what's it for?
Any code to begin with would be good. I don't have the time to write you a program to do this, but if you'd tried and had errors / your logic is incorrect then we could work on that?

Cheers,
Jamey
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 05-10-2008, 12:18 AM   #3 (permalink)
Moderator, Microsoft Support
 
justpassingby's Avatar
 
Join Date: Mar 2007
Location: Belgium
Posts: 4,477
OS: XP Home SP3 / Ubuntu

My System

Re: [B][/B]Plz can anyone do this C++ program for me????

@ lucky609 : asking for help is ok but please don't ask someone to make the program for you

http://www.techsupportforum.com/rules.php
Quote:
EDUCATIONAL ASSISTANCE

While we are happy to promote the education of users, we feel it is inappropriate to circumvent the learning process by directly assisting with assignments and projects of an educational nature. Direct answers to school or college assignments are not allowed and will not be given. However, if a user is having trouble comprehending a certain topic, the members and staff at TSF will be happy to provide assistance with understanding the topic.
__________________

HJT - 5 steps against malware. Post your HijackThis log there and not here !
Posting system specs

Last edited by justpassingby : 05-10-2008 at 01:02 AM.
justpassingby is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 12:10 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81