Curriculum Challenges 3.4
- Use the Timer event to provide a countdown with the remaining time displayed in a GraphicsWindow.
- Use the Mouse events to draw rectangles on the GraphicsWindow, mouse down to start the top left and mouse up to finish with the bottom right corner.
- Use the key events to make a ‘code typewriter’ that displays a different letter to the one typed using a simple conversion like reversing alphabet a->z, b->y, c-> x etc.
- Use the button events to display 11 buttons (0-9 and .) laid out like a number keypad to enter numbers using the mouse.
Write a units converter program, where the user can select the units to convert and enter a value for conversion.
Perhaps lengths, weights or currency.
Write a graphical ‘dashboard’ with buttons and textboxes as required to control a school bell timing system.
The resulting system should then sound a bell at the required intervals that can be configured by the interface.
The configuration(s) should be saved and loaded to a file.
Write a program to calculate the distance traveled when the user enters an acceleration profile.
For example: 2m/s/s for 5 sec, then 0m/s/s for 3 sec, then -4m/s/s for 1 sec
Write a vertical scrolling game with obstacles that appear from above and move down.
The player must dodge the obstacles by using arrow keys, probably just left and right.
- Create a program to remove automatically added comments from downloaded Small Basic source program such as following manner.
12' The following line could be harmful and has been automatically commented.' _buf = File.ReadContents(filename)
1_buf = File.ReadContents(filename)
- Make a chess clock.
- Create a program to measure and calculate tempo [quarter note (crotchet)/minute] of Sound.PlayMusic().
In other words, count how many quarter notes (such as “C4”) can be played in a minute.