Line: | Input Line | Type: | Walkthrough |
You should have completed: | Business Card | This topic leads to: |
The data input so far has all been in the form of strings. In order to get numbers for our program to work with, we need to convert the strings the user types in into a number data type.
The program crashes with an exception, as 'Bob' cannot be parsed into a number. Ways of dealing with this will be explored later in the module.