Basic Input and Output
Many programs are dependent on:
- Asking a user or player to input information
- What is your name?
- What is your bet?
- What is your guess
- Enter two numbers
- Being able to store the user's input for use by the program
- name = "Vicki"
- guess = 15
- num1 = 10 and num2 = 25
- Processing the user's input or information
- Display it back to them
- It's nice to meet you Vicki
- Use their input in a calculation or other process. Results may or may not be displayed on screen.
- Compare their guess to the actual number: "Your guess is too low. Try again."
- total = num1 + num2
- Display it back to them