Directions
Download and extract the zip archive dusty.zip
.
The result will be a folder named dusty
with
three files in it: an HTML file, a CSS file, and a JS file.
To submit this project, you will zip the folder and upload it to Canvas. You can use the Open Folder menu item in VSCode and it will open the folder and its contents. Save all of your work in this folder.
Description
This is an exercise in conditional logic. You will use
if
, else
, and else if
to help
the crusty Dusty manage his customers.
If a customer enters an age less than 21, Dusty should reply, "Git outta hieah, punk!" Otherwise if the customer is under 65, have Dusty say, "Name yer poizon, baw!" if the customer is 65 or older, have Dusty say, "Shall I cash yer soshal, Geezer??"
You are provided a framework with some helpful hints.
I will demo the operation of this project in class. You may add to the CSS file to spice it up, or place an image showing "Dusty" on the page.