| | |
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 |
ai algorithm algorithms amazon assignment assignmenthelp assignments automata battery bigbrother binary bittorrent bizarre bletchleypark blogging bomb business cern compiler computer computers computerscience connect conversion csc data dataintepretation development dfa dissertation dissertations dissertationthesis dissertationtopic ebook employment energy floatingpoint foreclosure foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homeworkassignment homeworkhelp ibm idea ideas internet iphone ipod itcontracts jobs kindle laser laws linkbait mainframes marketing mining mobileapplication msaccess nano netbeans networking news os p2p piracy piratebay principles programming rasterizer research sam-being-cute sas science security sex simulation software spying stephenfry study supercomputer supercomputing technology textfield turing turingtest two'scompliment uk virus warehouse ww2





