Question: How do you read multiple commands/variables/modifiers from a single line of user input?
Much like any CLI such as Command Prompt would do, the user enters a single line and variables + modifiers are read and assigned from it.
E.G. A conversion program command:
32 km to cm
Then it reads:
numToConvert = (32)
then
"km to cm"
points to conversionRate1
conversionRate1 = (0.621371192)
multiply 32 by conversion rate (0.621371192)
print Result.
Second Example:
shutdown -h
or
shutdown /?
shutdown is read as a command
-h modifies it or /? modifies it