Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 13th, 2004, 07:51 PM
LOgle0917 LOgle0917 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 LOgle0917 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!

Reply With Quote
  #2  
Old September 24th, 2004, 10:26 AM
a9192shark a9192shark is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 12 a9192shark User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 14 sec
Reputation Power: 0
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.

Reply With Quote
  #3  
Old October 5th, 2004, 06:13 PM
blaze_r20 blaze_r20 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: md
Posts: 24 blaze_r20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 33 m 10 sec
Reputation Power: 0
Send a message via Yahoo to blaze_r20
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)

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Program Logic Question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT