Thursday, April 22, 2010

Extra Credit 3 - Flowchart to javascript part 1

LABAR
Extra Credit Project 3
This Extra Credit assignment 3, is the part 1 of the extended (assignment 8) flowchart to javascript, is to be done during your one hour lab by arrangement (LABAR). This javascript assignment requires you to familiar with the translation from flowchart to javascript. The flowchart is made of a set of code blocks that are connected through the execution flow (arrow) connectors, where:
  • A simple block is a collection of symbols with no decision symbol.
  • A basic block is a collection of symbols with one decision symbol.
  • A complex block is a collection of symbols with two or more decision symbols.
  • A compound block is a block containing another block.
Here is an illustration of blocks and the basic if, if-else, and while blocks' coresponding javascripts.



Here is the flowchart that you are to translate to javascript:





Example Flowchart
An example flowchart (the top portion of the assignment flowchart) is translated below:



Example javascript Translation


Please submit your
javascript work in .html file through webCT-assignment.



No comments:

Post a Comment

 

comsc-100 Copyright © 2009 Gadget Blog is Designed by Ipietoon Sponsored by Online Business Journal