Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/08/07 21:49
Read: times


 
Msg Score: -1
 -1 Message Not Useful
#140461 - flowchart for this pseudocode
Responding to: ???'s previous message
Can anyone please help me to draw the flowchart for this pseudocode:

Function calculateFineStatus

Constant integer MaximumNumberOfBooksBorrowed
Variable integer NumberOfBooksOverdue
Variable float FinalFinesAccrued, FinesForBooksOverdue, DateFinesLastCalculated

Read student record using studentId

DateFinesLastCalculated = calcInterest(finesAccrued,dateFineLastCalculated)
FinesAccrued= FinesAccrued + DateFinesLastCalculated

FinesForBooksOverdue = calcFinesForBooksOverdue(studentId)
FinalFinesAccrued = finesAccrued + FinesForBooksOverdue
Output message(“You currently owe £”, FinalFinesAccrued)

NumberOf BooksOverdue = booksOverdue(studentId)
If finesAccrued <= 5 then
Output message (“Please pay £”,finesAccrued)
Else
if finesAccrued < = 10 then
Output message (“Please pay £”,finesAccrued – 5)
Else
Output message(“Please pay £”,finesAccrued*0.2)
If NumberOfBooksOverdue less than or equal 1 then
Output message (“You can borrow “, MaximumNumberOf BooksBorrowed – booksBorrowed, “books”)
Else
Output message (“You can borrow 1 book for each overdue book returned”)
Function exit


List of 27 messages in thread
TopicAuthorDate
Flowchart Programs            01/01/70 00:00      
   Hey, that's great!            01/01/70 00:00      
   Excellent!            01/01/70 00:00      
   Thanks!!!            01/01/70 00:00      
   Seems a tad backwards?            01/01/70 00:00      
      Maybe yes, maybe no            01/01/70 00:00      
         ms visio = "yawnware"            01/01/70 00:00      
            naah - coffeeware            01/01/70 00:00      
               Your right            01/01/70 00:00      
               4 seconds ?            01/01/70 00:00      
   Thanks to all for the kind words            01/01/70 00:00      
   state diagram?            01/01/70 00:00      
      "Pseudocode" for state machines?            01/01/70 00:00      
         i wish...            01/01/70 00:00      
            Automatic state diagrams            01/01/70 00:00      
               EDIF?            01/01/70 00:00      
            ABEL            01/01/70 00:00      
               yeah...            01/01/70 00:00      
         State Tables?            01/01/70 00:00      
            Hmm            01/01/70 00:00      
   flowchart for this pseudocode            01/01/70 00:00      
      Part of it            01/01/70 00:00      
      Something close to this            01/01/70 00:00      
   flowchart for this pseudocode            01/01/70 00:00      
   flowchart for this pseudocode            01/01/70 00:00      
   flowchart for this pseudocode            01/01/70 00:00      
   flowchart for this pseudocode            01/01/70 00:00      

Back to Subject List