Part I. C# Lab: A Day at the Races
Name: | ____________________ | Date: | ____________________ |
This lab gives you a spec that describes a program for you to build, using the knowledge you’ve gained over the last few chapters.
This project is bigger than the ones you’ve seen so far. So read the whole thing before you get started, and give yourself a little time. And don’t worry if you get stuck—there’s nothing new in here, so you can move on in the book and come back to the lab later.
We’ve filled in a few design details for you, and we’ve made sure you’ve got all the pieces you need...and nothing else.
It’s up to you to finish the job. You can download the graphics files we used in our solution...but we won’t give you code for a solution.
Note
But other readers have claimed their bragging rights by publishing their solutions on CodePlex, GitHub, and other collaborative source code hosting sites, in case you need a hint!
The Spec: Build a Racetrack Simulator
Joe, Bob, and Al love going to the track, but they’re tired of losing all their money. They need you to build a simulator for them so they can figure out winners before they lay their money down. And, if you do a good job, they’ll cut you in on their profits.
Here’s what you’re going to build for them...
The Guys
Joe, Bob, and Al want to bet on a dog race. Joe starts with 50 bucks, Bob starts with 75 bucks, and Al starts with 45 bucks. Before each race, they’ll each decide if they want to bet, and how much they want to put down. The guys can change ...
Get Head First C#, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.