| | |
Need help with Pseudocode!!
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
![]() |
•
•
Join Date: Jul 2008
Posts: 26
Reputation:
Solved Threads: 0
I am confused by the question and having trouble designing the logic(pseudocode) for this problem, any help would be beneficial and appreciated..
Heartland Community College has a file of student records sorted by the hour of the student's first class on Mondays this semester. The hour of the first class is a two-digit number based on a 24-hour clock (for example, a 1pm class is recorded as 13). Besides the hour, each record contains the student's name and town of residence. Create the logic to produce a report that students can use to organize carpools. The report lists the names and phone numbers of students from the city of Huntley.(Note that some students come from cities other than Huntley; these students should not be listed on the report.) Start a new group for each hour of the day, including the hour in a header that precedes the group.
Heartland Community College has a file of student records sorted by the hour of the student's first class on Mondays this semester. The hour of the first class is a two-digit number based on a 24-hour clock (for example, a 1pm class is recorded as 13). Besides the hour, each record contains the student's name and town of residence. Create the logic to produce a report that students can use to organize carpools. The report lists the names and phone numbers of students from the city of Huntley.(Note that some students come from cities other than Huntley; these students should not be listed on the report.) Start a new group for each hour of the day, including the hour in a header that precedes the group.
0
#2 Oct 20th, 2009
You could either sort the students into corresponding times before you start ( a little faster )
or iterate through the array of students 24 times, checking the time each time.
You want to sort the students into there corresponding times
or iterate through the array of students 24 times, checking the time each time.
You want to sort the students into there corresponding times
so create arrays of students[24][MAX_STUDENTS] Then iterate all students and then put each into there corresponding hours. then you want to iterate through the times in the array 0 - 23 print the time index +1 then iterate through each student in that array (until no more students are left ) and print the name
![]() |
Similar Threads
- help writing pseudocode, PLEASE!!!! (C++)
- Pseudocode (Computer Science)
- Anyone know how to do PSEUDOCODE? (Computer Science)
Other Threads in the Computer Science Forum
- Previous Thread: LC-3 Palindrome Help
- Next Thread: A question about algorithm
| Thread Tools | Search this Thread |
Tag cloud for Computer Science
ai algorithm algorithms amazon assignment assignmenthelp assignments automata battery bigbrother binary bittorrent bizarre bletchleypark blogging business cern clueless compiler computer computers computerscience computertrackingsoftware connect conversion csc data dataanalysis development dfa dissertation dissertations dissertationthesis dissertationtopic ebook employment energy floatingpoint foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homework homeworkassignment humor ibm idea ideas internet iphone ipod itcontracts jobs kindle laser laws lazy lsmeans marketing mining mobileapplication msaccess netbeans networking news os p2p parser piracy principles programming rasterizer research science security sex simulation software spoonfeeding spying student study supercomputing sweden syntactic technology textfield tree turing turingtest two'scompliment uk virus warehouse ww2





