☰ Year plan · Communication Technology

The converter in VB.NET: window, code and tests

Week 6 · Unit 1 Topic 2: a number converter project with VB.NET: window, controls, properties and code · 3 lessons
Answers are for parents and teachers.
1
Trace the handler for the typed text 8 with Decimal ticked in From and Binary ticked in To. Give fromBase, toBase, number and the message.
2
The user types 2B, with Hexadecimal in From and Decimal in To. What does the message box show? Show the working.
3
The user types 5E, with Hexadecimal in From and Binary in To. Give the message and explain why it has seven digits.
4
A tester types 11 01, with a space in the middle, and ticks Binary in From. What happens in the plain converter and in the Try … Catch version?
5
Which change to the last line makes the message show capitals? Write the line.