![]() |
Assignment, asking for help
I would like to know if I'm getting close to writing the pseudocode for the assignment below. Any help would be greatly Appreciated.
Assignment: Use both a selection structure and a repetition structure. Write the pseudocode Your company wants a list of each employee who worked overtime during the previous pay period. You should read the name, employee ID number and hours worked from a file. Select and print the records that have hours greater than 40. My Pseudocode: Quote:
|
I'm not a Pseudo code expert but i think you need to put more detail in there. I don't see where you opened the file and closed it.
|
i think your also supposed to indent it like you would the program but not postive.
|
I always thought psuedo-code was pointless, i just turned in classic BASIC and my teacher didn't mind...
|
Quote:
Start Open files read empRecord Get employeeRecord Print employeeRecord Get First employeeName Print First employeeName while NOT eof if hoursWorked > 40 during previous pay period Print empRecord Close files else get next employeeName endif endwhile Read empRecord empName empIdNo hoursWorked Print empName empIdNo hoursWorked Stop |
Quote:
Jim R |
This class starts out with learning to pseudocode, and I do not have any experience in programing so I wouldn't now how to write the code. I beleive after this class tomorrow it will be my 5th class and then we will start using the Microsoft Visual Basic .Net RELOADED by Diane Zak.
Thank you for your response. Jim R |
Quote:
In line 8 Quote:
I would change Quote:
|
Don't use MS-Word to program it adds unecessary BS to the file.
Get Vi or Emacs, hell even notepad is better than word. NotePad 2 might be worth looking into. |
Quote:
|
| All times are GMT -5. The time now is 11:16 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC