Question
JAVA Programming Language Question 1: Strings: Write a program that asks for two parallel arrays of String objects. One of the arrays will hold the
JAVA Programming Language
Question 1: Strings:
Write a program that asks for two parallel arrays of String objects. One of the arrays will hold the first names of the guests, and the other array will hold the last names of the guests. You are organizing a 21m birthday party for your best friend. The guests will be allocated to sit at a table at the party. Some of the guests will be seated at a special birthday table with your friend whose birthday you are celebrating. Those with a first name that starts with the same letter as the first name of your birthday friend will be sitting at the special birthday table.
Write a program that will complete the following tasks:
1. Ask the user for the number of guests to be seated. 2. Ask for the first name of the person having the birthday. 3. Ask the user for the first and last names of each guest, and store them in two parallel arrays. 4. Print out the names of those sitting at the special birthday table. Print the first names in lowercase, and the last names in uppercase.
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