Miscellaneous Visual Projects
- Frogs are known to climb windows in search of food. In this simulation,
have your frog climb the window (randomly advancing or slipping backwards)
to get to the spider. Make it more likely to go forward than backwards
using a random number that can either be positive or negative.
In this project, you should construct a form as follows:
run | Frog.wmf |
The spin edit box should record the number of hops.
The reset button should place the frog back down the window, reset
the hops, turn off the timer and make the spider visible (hiding the
The project comprises:
- 1 spin edit box named hops
- 3 buttons called reset, startstop and done
- 2 images called spider and frog
- a label called yum and a timer called frogtimer
Each press of the startstop button should either start or stop the
timer, Done naturally closes the application.
- Currency Conversion is a nuisance. This simple project uses the
.position property of a scroll bar as the numeric input to convert
Aussie dollars into US, UK and Italian currency.
This project contains a scroll bar (set to be vertical, with a minimum
of 0, maximum of 500), 8 labels (4 of which are changed by the program,
namely AustralianDollars, USDollars, Pounds and
Lire) and a done button. Using the formatted floattostrF command,
ensure the correct number of decimal places are displayed.
if the currency rates are as follows:
1.8 Aussie dollars to each US$;
2 Aussie Dollars to every Pound;
0.002 Aussie Dollars to every Lire
- Prime Pump (Extra for Experts):
Write a small program that prompts for a number and then outputs all
PRIME numbers up to that number. To clarify, Prime numbers are positive
WHOLE numbers that no other number (except 1 and itself) divides evenly
into. You should use showmessage to show each prime, and an input
box to ask for the finishing number.
©Copyright t 1992..2018+. Edition 26.150117
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 2.1 Australia License.