Thursday, October 30, 2014

Programming Design Method: Reports & Pseudocode

For today's assignment, we have interviewed the PIC from one of the UKM (club) in Binus University Alam Sutera who had been given a task to make a showcase of the culture and activities from each respective UKM at the Grand Launching Event.

Here is the interview with the PIC of Nippon Club, Hoo Ivan Manuel Hudaya:


There were also interesting activities around the Nippon Club which covers; the small library, a yukata photobooth, a display of kendo, display of the japanese food, calligraphy workshop, the traditional games workshop, screening films, cosplay street, and tanabata celebration.

Our task was to interview one of the PIC from a club, requesting to know about the reports that they are going to make after the event. After we get the information that we need, we made a hierarchy chart on how to make a program to construct the given report. Lastly we made the pseudocode for each respective module in the hierarchy chart.

Here is the result:

Financial Report
NIPPON Binus Alam Sutera

Event Iconation 20-23 Oct 2014



No.
Seller
Quantity
Total
1
Randy Priyatna
5
Rp. 100.000
2
Jovian Andrew
10
Rp. 200.000
3



4



5








Grand Total   :           Rp. 300.000,00
Total Seller    :                                   2

*This is just a Dummy Report (The actual report’s secrecy has been kept by Nippon Club).

Diagram definisi :


Input
Process
Output
File   
        1.       Initialize all variable to 0
        2.       Print header
        3.       Read File 
        4.       Calculate Total
        5.       If LineCount==30 then Page break
        6.       Calculate Grand_Total
        7.       Calculate Total_Seller
        8.       Print
      ·         Seller
      ·         Quantity
      ·         Total_Seller
      ·         Grand_Total



Hierarchy chart :







Pseudocode :

Financial_report
     Init_var
print_header
     read record
     Do while not eof
           If linecount==30 then
                Page break
                Print_header
           end if
           count_total_and_gtotal
           print_var
     end do
     print_footer
END

Init_var
Set linecount to 0
Set total_seller to 0
     Set total to 0
     Set gtotal to 0
END



print_header
Set linecount to 0
     print main header
     print header column table
END

count_total_and_gtotal
     total = qty_sale * 20000
     add total to gtotal
END

print_var
     print seller_name
     print qty_sale
     print total
increment linetotal
increment total_seller
END

print_footer
     print gtotal
print total_seller

END




Made By: 

  • Excleson Manuel J.
  • Kevin Mulia
  • Randy Priyatna
  • Dwitrista C. Garno
  • Jovian Andrew

No comments:

Post a Comment