Translate

Saturday, September 28, 2013

Widgets

More Game Logic Psuedocode!

class Cupons


    main()


    // Declarations

    num apartNum

    num buildNum

    num month

    num rent = $800

    buildNum = 0

    aptNum = 0


    while buildNum <= 20

          buildNum = buildNum + 1

          output “Building #:   ” buildNum

       while apartNum <= 15

             aptNum = aptNum + 1

             output “Apartment #:   ” apartNum

          while month <= 12

                output “Month:   ” month

                output “Rent due:    ” rent


          endwhile


       endwhile


    endwhile


end class