Write a java program that repeatedly prompts the user to input a string starting with letters...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a java program that repeatedly prompts the user to input a string starting with letters from the English alphabet. The program must stop getting input when the user inputs the string "STOP" Consider The word STOP as case insensitive (i.e. STOP = stop = Stop Stop....). Then the program must display the words starting with each letter (Case -Sensitive) from the alphabet in a separate line (e.g. you need to make a new line after all words starting with a specific letter are finished. = Your program must be written according to the following rules: 1- Create an array list of 52 linked lists. 2- Each linked list will have the strings starting with a specific letter each in a separate node. For example element 0 in the array list will have a linked list of the strings starting with a and element 1 in the array list will have a linked list of the Strings starting with A, element 2 in the array list will have a linked list of the strings starting with b element 3 in the array list will have a linked list of the strings starting with B.,...... element 50 in the array list will have a linked list of the strings starting with z element 51 in the array list will have a linked list of the strings starting with Z 3- Use the classes MyArrayList and MylinkedList. (No Need to re-implement them). 4- Strings NOT starting with a letter from the English alphabet must be ignored. Consider the case when the user input the following strings consequently: Ali Ahmad Abed Basel basel Ayshe ayshe 123 Anas Baba betul Zaki Ziko zakiyya stop The output will be: ayshe Ali Ahmad Abed Ayshe Anas basel betul Basel Baba zakiyya Zaki Ziko Write a java program that repeatedly prompts the user to input a string starting with letters from the English alphabet. The program must stop getting input when the user inputs the string "STOP" Consider The word STOP as case insensitive (i.e. STOP = stop = Stop Stop....). Then the program must display the words starting with each letter (Case -Sensitive) from the alphabet in a separate line (e.g. you need to make a new line after all words starting with a specific letter are finished. = Your program must be written according to the following rules: 1- Create an array list of 52 linked lists. 2- Each linked list will have the strings starting with a specific letter each in a separate node. For example element 0 in the array list will have a linked list of the strings starting with a and element 1 in the array list will have a linked list of the Strings starting with A, element 2 in the array list will have a linked list of the strings starting with b element 3 in the array list will have a linked list of the strings starting with B.,...... element 50 in the array list will have a linked list of the strings starting with z element 51 in the array list will have a linked list of the strings starting with Z 3- Use the classes MyArrayList and MylinkedList. (No Need to re-implement them). 4- Strings NOT starting with a letter from the English alphabet must be ignored. Consider the case when the user input the following strings consequently: Ali Ahmad Abed Basel basel Ayshe ayshe 123 Anas Baba betul Zaki Ziko zakiyya stop The output will be: ayshe Ali Ahmad Abed Ayshe Anas basel betul Basel Baba zakiyya Zaki Ziko
Expert Answer:
Answer rating: 100% (QA)
Java import javautilArrayList import javautilLinkedList import javautilScanner public class Main public static void mainString args Scanner scanner new ScannerSystemin Create an array list of 52 linke... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
When examining criminal justice agencies, the most important characteristic to employees was the feeling that the job was important and yielded a feeling of accomplishment. Job satisfaction differs...
-
Current portion of long-term debt Connie's Bistro, Inc. reported the following information about its long-term debt in the notes to a recent financial statement (in millions): Long-term debt consists...
-
Suppose you are going to apply for a summer job. Compose a rsum which highlights your education, work experiences, and other qualifications for a job that you prefer. CAREER OBJECTIVE EDUCATION WORK...
-
Predict your results. Write "yes" or "no," depending on whether you think the plate will show growth. Give the reason (s) for your predictions. Observe the colonies through the petri plate lids. Do...
-
How does the frequency of a radio wave compare to the frequency of the vibrating electrons that produce it?
-
Kenneth Wheeler was angry at certain police officers in Grand Junction, Colorado, because of a driving-under-the-influence arrest that he viewed as unjust. While in Italy, Wheeler posted a statement...
-
Separation of duties refers to separating all of these functions except which of the following? a. Authorizing transactions b. Keeping accounting records C. Hiring personnel d. Maintaining custody of...
-
A government permits its employees to accumulate all unused vacation days and sick leave. Whereas (in accord with current standards) it may have to book a liability for the unused vacation days, it...
-
Currently your firm has an average collection period of 67 days and your have been asked to analyze offering a 1/10 net 30 discount to expedite collections. You expect a decrease in the ACP of 9 days...
-
1. Supply the missing income statement amounts for each of the following companies for the year ended December 31, 2017: 2. Prepare the income statement for Bell Co., which uses the periodic...
-
Write a program to check whether the given input is digit or lowercase character or upper case character or a special character (use 'if-else-if' ladder)
-
Why did the Argentine currency board collapse whereas Hong Kong has been able to hold on to its fixed exchange rate against the U.S. dollar?
-
What are exchange controls on current account transactions? How do they differ from controls on capital account transactions? Which ones were the more important in ensuring the stability of the...
-
What is the difference between a currency board and dollarization?
-
Budgeting is profit planning. Elaborate this statement. What accounting devices would you use where output varies?
-
How do standards and standard costs facilitate managerial planning and control?
-
Jill Heath has read about the concept of borrowing money to create her own tax shelter as per Ch. 12 of the Ho, Robinson et.al textbook (6th edition), but wonders if she can benefit because her...
-
A supermarket chain is interested in exploring the relationship between the sales of its store-brand canned vegetables (y), the amount spent on promotion of the vegetables in local newspapers (x1)...
-
In this exercise, you will modify the program from Lab 9-1 in Chapter 9. Follow the instructions for starting C++ and viewing the TryThis10.cpp file, which is contained in either the...
-
In this exercise, you modify the program from ADVANCED Exercise 31. If necessary, create a new project named Advanced32 Project and save it in the Cpp8\Chap13 folder. Also create a new source file...
-
A store gives a 15% discount to customers who are at least 55 years old, and a 10% discount to all other customers. Using only the instructions shown in Figure 1-9, write an algorithm that displays...
-
Assume that Boardmaster sold skateboards to a department store for \($35,000\) cash. How would this transaction affect Boardmasters accounting equation? a. Increase both assets and stockholders...
-
Generally Accepted Accounting Principles (GAAP) are created by the a. Securities and Exchange Commission (SEC). b. Financial Accounting Standards Board (FASB). C. Institute of Management Accountants...
-
Boardmaster is famous for custom skateboards. At the end of a recent year, Boardmasters total assets added up to \($622\) million, and stockholders equity was \($487\) million. How much did...
Study smarter with the SolutionInn App