--This is supposed to be an impossible task since we are just starting out with variables, so you would just settle my curiosity, not doing my homework
The problem:
Make a little program where the user can guess the distance(in Nautical miles) between Langesund and other known Norwegain harbors.
- Kragerø (14 nautical miles from Langesund)
- Lyngør (32 nautical miles from Langesund)
- Kristiansand (85 nautical miles from Langesund)
- Sandefjord (23 nautical miles from Langesund)
- Strömstad (46 nautical miles from Langesund)
- Göteborg (109 nautical miles from Langesund)
From a list the user can choose the harbor he/she wants to guess the distance of. After the user have guessed the distance he shall get the answer if he guessed too many miles or too few.
The user shall be able to guess the right answer with a margin of error of 10%. A graphic in the form of a standing or laying pole shall show how many attempts the user have used. Last there should be a comment of how many tries the user used.
The program is supposed to be posted on the web. How would you solve such a task?
Regards, Endre.

New Topic/Question
Reply




MultiQuote




|