![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Newbie
Join Date: Sep 2005
Posts: 8
Rep Power: 0
![]() |
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:
|
|
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
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.
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4
![]() |
i think your also supposed to indent it like you would the program but not postive.
|
|
|
|
|
|
#4 |
|
Programming Guru
![]() |
I always thought psuedo-code was pointless, i just turned in classic BASIC and my teacher didn't mind...
__________________
|
|
|
|
|
|
#5 | |
|
Newbie
Join Date: Sep 2005
Posts: 8
Rep Power: 0
![]() |
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 |
|
|
|
|
|
|
#6 | |
|
Newbie
Join Date: Sep 2005
Posts: 8
Rep Power: 0
![]() |
Quote:
Jim R |
|
|
|
|
|
|
#7 |
|
Newbie
Join Date: Sep 2005
Posts: 8
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#8 | |||
|
Newbie
Join Date: Oct 2005
Location: The othe side
Posts: 19
Rep Power: 0
![]() |
Quote:
In line 8 Quote:
I would change Quote:
__________________
Cheers Ithaqua |
|||
|
|
|
|
|
#9 |
|
Expert Programmer
|
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.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#10 | |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3
![]() |
Quote:
![]() |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|