|
|
CSS 341 - Fundamentals
of Programming Theory and Applications Most examples due to Professor Kelvin Sung |
|
Lecture Week/Date |
What |
For Download |
|
|
Hundred-th Digit Program enters a 3 digit number and separates the hundred-th
digit, prints out the hundred-th digit and the remaining two digit number
separately. |
||
|
|
Five Digit Program enters a 5 digit number and separates and prints out all
the digits separately. Goes to show, once you know something it is
straightforward to generalize. Think how can we separate a
“any-digit” number?
|
||
|
Simple Sample Working Template.
The simplest HTML document you can find. |
|||
|
|
Largest of three: Embedded VBScript in HTML finding largest number among
three user input. Unfortunately, our script only works with with Microsoft
Internet Explorer. |
||
|
|
Largest of three with a little style: OK, not that much, but
notice, in this example, at least the numbers are aligned nicely on input. Notice the HTML
<table> tag. Unfortunately, our script
only works with with Microsoft Internet Explorer.
|
||
|
|
Income Tax: Taxing according to income brackets, this is problem
solving with conditional constructs |
||
|
|
Commission: Using Control statemenst for problem solving:
Commissions, sales, how much did I sell, how much should I make? |
||
|
|
Automation with MS Excel: let's do simple work with MS Excel. . add two numbers J
|
|
|
|
|