InClassExercise08

InClassExercise08 - CS112: In-class Exercise 8 Keyboard...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS112: In-class Exercise 8 Keyboard Interaction Today we’ll take a break from objects & object-oriented programming and experiment with writing interactive programs based on keyboard input. 1. Most computer programs interact with the user through the keyboard, mouse, and screen. The keyboard is the primary input device, and the screen is the primary output device. Let’s start by writing a simple Java program that prompts the user to enter his/her name, reads the name from the keyboard, and then prints the name to the terminal window. Here’s how the program should behave (what the user types appears in boldface ): 2. Most computer programs interact with the user through the keyboard, mouse, and screen. The keyboard is the primary input device, and the screen is the primary output device. Let’s start by writing a simple Java program that prompts the user to enter his/her name, reads the name from the keyboard, and then prints the name to the terminal window. Here’s how the program should behave (what the user types appears in
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

InClassExercise08 - CS112: In-class Exercise 8 Keyboard...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online