Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Influxdb Database A Comprehensive Guide To Learn Influxdb Database

Authors: Cybellium Ltd ,Kris Hermans

1st Edition

B0CNGGWL7B, 979-8867766450

More Books

Students also viewed these Databases questions