Welcome

CSS 341 -  Fundamentals of Programming Theory and Applications

Most examples due to Professor Kelvin Sung 

 

CSS341        Computing and Software Systems        UW Bothell   

Here are the links to in-class demos  for WEEK 2.

Lecture Week/Date

What

For Download

Week 2

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.

Please pay special attention to the comments and overall layout of this program. This is an example of what is expected of program submissions.

 

.HundredthDigit.vbs

 

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?

 

FiveDigit.vbs

 

Simple Sample Working Template. The simplest HTML document you can find.   There is no vbs program in this example.

 

FirstHTMLExample.html

 

Largest of three: Embedded VBScript in HTML finding largest number among three user input. Unfortunately, our script only works with with Microsoft Internet Explorer.   same program we developed last week - just ported to html input/output format.

 

LargestNum.html

 

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.

 

 

LargestNumberWithFormat.html

 

Income Tax: Taxing according to income brackets, this is problem solving with conditional constructs

IncomeTax.html

 

Commission: Using Control statemenst for problem solving: Commissions, sales, how much did I sell, how much should I make?  Very similar to IncomeTax.html

Commission.html

 

Automation with MS Excel: let's do simple work with MS Excel. . add two numbers J

Has mechanism for opening Excel object and using it to do work.

OpenExcel.vbs

 


 

*


University of Washington, Bothell
Copyright ©2009, UWB. All rights reserved.