Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 02-07-2005, 01:19 AM Pseudo Code Looping!
Novice Talker

Posts: 11
Trades: 0
hey guys... i'm doing an excercise... but im stuck... can someone help me write this simple loop?


The college Career Center asks you to assist them by designing a loop to print the name tags for the participants in their annual career fair to be held in the auditorium on April 10. The data (participant name and major) will be coming in from a file. You don't know how many tags to print, so you need to write a sentinel loop of some sort (I'll leave it up to you to decide which style loop to write and how to control the loop). Here is the variable list:



Variable Name Data Type

fname character

lname character

major character




Here is the storyboard for the name tag:



HELLO, My Name Is



XXXXXXXX XXXXXXXX



I'm Interested in Studying



XXXXXXXXXXXXXXXXXX







Please write just the loop. It is not necessary to write the entire low-level design. Use pseudocode to write the loop.



PLEASE HELP GUYS!
riceboy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-07-2005, 05:02 AM
Ultra Talker

Posts: 377
Trades: 0
I try to know a nuber of tags if I were you. For example:
Code:
 do {
  //read data
  //print data
 }
 while(!file.EOF());
If you don't need to read a data and you need just to process it. So if you got an array that contains your data you may do like this:
Code:
for(i=0;i<length_of_array;i++)
{
   //print data[i]
}
Of course it's not a pseudocode it more a C++ code that I use usually
__________________
andrews_john

Please login or register to view this content. Registration is FREE

Last edited by andrews_john; 02-07-2005 at 05:08 AM..
andrews_john is offline
Reply With Quote
View Public Profile Visit andrews_john's homepage!
 
Reply     « Reply to Pseudo Code Looping!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16272 seconds with 12 queries