Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using Java 3.34 Lab 7c: CharacterOps Write a program that prompts the user to enter their first name. Say hello to the person. Then display
using Java
3.34 Lab 7c: CharacterOps Write a program that prompts the user to enter their first name. Say hello to the person. Then display whether their name begins with a vowel or consonant. If it is neither, perhaps a special character or a number digit, then print neither a vowel nor a consonant. Example 1 Enter your first name Barbara Hello, Barbara! The first letter of your name, 'B',is a consonant. Example 2: Enter your first name: Elizabeth Hello, Elizabeth! The first letter of your name, 'E', is a vowel. Example 3 Enter your first name Sam Hello, Sam! The first letter of your name,'!",is a is neither a vowel nor a consonant. Java's Character class provides a method isAlphabetic() which may assist your coding effort. Suppose we have char ch'm then Character.isAlphabetic (ch) would return true Likewise, Character.isAlphabetic(&' would return false LAB ACTIVITY 3.34.1: Lab 7c: CharacterOps 0/10 CharacterOps.javaStep 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