Lab 0 | |
Lab 1 | |
Lab 2 | |
Welcome to Lab 3 | |
Lab 4 | |
Lab 5 | |
Lab 6 | |
Lab 7 | |
Lab 8 | |
Examples Page |
By the end of this Lab you should be able to do the following.
The Programmers Bar and Grill does not have their happy hour on Friday afternoons like everyone else. We have them on Monday mornings, probably because way back when computer people worked all weekend and only got off work at 8 am on Monday morning when everyone else came to work. Regardless, because we are programmer we need a drink dispensing program. After a few short minutes of totally unscientific research we determined that the following tables applied to all the patrons of the PB&G.
Under 19 | Male | Coke |
Female | Pepsi | |
19 to 29 | Male | Beer |
Female | Cooler | |
30 to 39 | Male | Vodka Martini |
Female | Gin Martini | |
40 to 49 | Male | Jack Daniels |
Female | White Wine | |
50 and Over | Male | Scotch |
Female | Liquier |
Write a drink dispensing program for the Programmers Bar and Grill that dispenses drinks according to the table above.