DISC 3371 MIDTERM FALL 2005 Parks
 

1. (40 points) The VBScript function now returns the current date and time in the form of a string in the format: mm/dd/yyyy hh:mm:ss followed by "AM" or "PM" (e.g., "11/3/2005 11:31:25 AM").

Write the VBScript code that will place a graphical presentation of the current date/time in a SPAN block when the page is loaded. This graphical representation is created by placing a sequence of gif files that represent the characters in the date/time string into the SPAN block. The 15 possible gif files that may be used are named: e0.gif, e1.gif, e2.gif, ... , e9.gif, eslash.gif, ecolon.gif, eam.gif, epm.gif and eblank.gif. The gif files are shown below:

                           

A sample of the desired output is shown below:

The Current Date and Time is:

Assume that the BODY tag contains: onLoad="p1" and the SPAN block has: id="dt_span". Show NO HTML -- just the VBScript for p1.

2. (40 points) Write a javascript program that generates random user passwords. The password contains a mixture of upper case letters, digits and lower case letters. The number of characters of each type (upper case, lower case and digits) is to be entered by the user in text boxes as shown below.

The "upper case" letters appear first, followed by "digits", followed by "lower case" letters.

PASSWORD GENERATOR
Number of Upper Case Letters
Number of Digits
Number of Lower Case Letters
Password Generated

Assume:

Do NOT edit the user's input. Show only the javascript for p2 -- Show NO HTML.

3. (20 points)

ANSWERS
Companies/Organizations Products/Services People
SDCSABRE John Imlay
RAND SAGE John Backus
CSCFORTRAN Dennis Ritchie
ADRCOBOL Walter Bauer
IBMFLOWMATIC H. Ross Perot
SHARE 701/704 John F. Jacobs
AT&T (Bell Labs) OS/360 Sam Wyly
ADP AUTOFLOW Gene Amdahl
EDS SYNCSORT Ken Thompson
ACTCICS Grace Hopper
MSA MARK IV John Cullinane
Informatics UNIX Sandra Kurtzig
UCC MANMAN/ASK Fletcher Jones
QUESTIONS
1.Founder of EDS H. Ross Perot
2. Wrote MANMAN/ASK Sandra Kurtzig
3. Company that sold MARK IV Informatics
4. Programming Manager at SAGE who developed "waterfall" Fletcher Jones
5. Co-author with UNIX with Ritchie Ken Thompson
6. Saved MSA John Imlay
7. CICS IBM
8. AUTOFLOW ADR
9. Wrote FORTRAN John Backus
10. MARK IV Informatics