Question: 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 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.java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!