Question: Introduction To Java Reading Keyboard Input: Lab Exercises Learning Objectives: Creating and compiling a basic Java program. Accepting user input of different types (via the


Introduction To Java Reading Keyboard Input: Lab Exercises Learning Objectives: Creating and compiling a basic Java program. Accepting user input of different types (via the keyboard). Personalised Greeting write some Java code which asks the user for their name and outputs a personalised greeting which includes the use of their name. 2g. "Good morning Shelly!"|| Please enter your name: Shelly Good morning Shelly! Age On Next Birthday write some Java code which asks the user for their current age. Your program must inform the user how old they will become on their next birthday. Can you do this using only a single variable to store the current age entered by the user? How old are you now? 44 On your next birthday you will be 45 years old. Initial Letters Write some Java code which asks the user to enter their first and last name. Your program must display only the initials, as shown Please enter your first name: Shelly Please enter your last name: Wisseurs SW Hint: Use the sberat method to take only the first letter of each name entered by the user. Making Change Write some Java code which accepts an amount of money between 0 and 100 cents. Your program must output the best way (the fewest number of coins) to make the amount using quarters (25c), dimes (10c), nickels (5C) and pennies (1C). Enter a number (between 1 and 100): 73 2 quarters 2 dimes O nickels 3 pennies
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
