|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Program Logic Question
I am a beginning Prog Logic and Design student. I have a project to write pseudocode
and draw a flow chart to do the following. From an Alumni File I have the following fields Alumnus Number Alumnus Name Year Graduated Major I want to get all Alumni With a Major in Bus, who graduated from 1984 and then print the total of the Alumni listed, then create a flow chart showing how to do this. I have started it like this: Start If Major ="Bus" then If Year Graduated ="1984" then Printf "Alumnus Number","Alumnus Name" Else End Then Get calculated total of "Alumus Name" Printf Numeric Total "Alumnus Name" Stop I am not sure what to do if the answer is No to the first 2 conditions. Can someone help me? I think I can flowchart it okay if I can just get this part of it. Thank you! |
|
#2
|
|||
|
|||
|
Key steps:
1. Initialise variables 2. Set up loop to look at each record in the data set 3. Compare record with search criteria 4. If record matches criteria then increment count of matches 5. Loop through data set until no more records 6. Output result 7. Close down by clearing variables. You need these 7 key steps. The actual code and flow chart is your own design. Good luck, Alan. |
|
#3
|
|||
|
|||
|
creating the code
i had to do something along those lines, if you need help with the flow chart let me know. basicly the seven steps above are what you need. There are a couple of changes that could be made to increase the speed of the program though....(i think)
|
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > Program Logic Question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|