Car Dealer

Line: Forms Line
Medium Difficulty Forms Learning Outcome One Learning Outcome Two Learning Outcome Six Exercise
Type: Exercise
You should have completed: Timing App This topic leads to: Music Shop

Summary

You are required to write a windows computer program for a local Car Dealer

The users of the program will be potential buyers who come into the Car Showroom i.e. members of the public who may have little or no experience of computers and of using computer programs.

The program will challenge the user to guess the correct price of a particular car in the showroom. To earn this chance, they have to enter their name and postal address into a form.

The user will be allowed to have up to three guesses and if they guess the correct price (which is £35,950) they win the car and the program terminates.

After each incorrect guess your program is tell the user if their guess is lower or higher than the actual price so that they may adjust their guesses accordingly.

If after three guesses the user has not correctly guessed the price of the car the program will not allow another guess until a different name and address is put in.

Task

  1. Create a Windows Forms application
  2. Create a program to satisfy the requirements above.

Questions

  1. If it does not already, can you modify your program to pop up a new form for entering personal details so that the guess-a-price interface is not cluttered by it?
  2. Can you make your program store the names and addresses in a file (for later use as a mailing list perhaps)?