Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Do the following in Java code: Declare a Scanner type object reference Create a new Scanner object that will read from System.in. Assign the new
Do the following in Java code:
- Declare a Scanner type object reference
- Create a new Scanner object that will read from System.in. Assign the new object to your object reference
- Prompt the user to enter their name. Read in their input and store it in a variable.
- Prompt the user to enter how many teeth they have in their upper jaw. Read in their input and store it in a variable. Multiple that value by two and display the result.
- Prompt the user to enter a joke. Read in their input and echo it back to the user.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started