Question: 1. Write a java program that reads text from the user and returns a list of the characters that are in the text together with
1. Write a java program that reads text from the user and returns a list of the characters that are in the text together with a count of how many times each character appears. Ignore white spaces and punctuation marks. (Hint: Use a char array to keep track of the characters and another array to store the counts for each corresponding character.) Below is a sample run: Enter the text to analyze: This is a sample text to analyze. The characters in the text are: T 1 h 1 i 2 s 3 a 4 m 1 p 1 l 2 e 3 t 3 x 1 o 1 n 1 y 1 z 1.
2. Write a program that prompts the user to enter the size of the lists and two lists of numbers and calculates the sum of the products of the corresponding elements of the two lists. For example, if the user enters the following two lists: Enter the size of the lists: 5 List 1: 1 2 3 4 5 List 2: 6 7 8 9 10 The program should display the result of 1 6 + 2 7 + 3 8 + 4 9 + 5 10 = 130.

1. Write a program that reads text from the user and returns a list of the characters that are in the text together with a count of how many times each character appears. Ignore white spaces and punctuation marks. (Hint: Use a char array to keep track of the characters and another array to store the counts for each corresponding character.) Below is a sample run: Enter the text to analyze: This is a sample text to analyze. The characters in the text are: T 1 h 1 i 2 s 3 a 4 m 1 p 1 12 e 3 t 3 x 1 o 1 n1 y 1 z1 2. Write a program that prompts the user to enter the size of the lists and two lists of numbers and calculates the sum of the products of the corresponding elements of the two lists. For example, if the user enters the following two lists: Enter the size of the lists: 5 List 1: 12345 List 2: 6788910 The program should display the result of 16+27+38+49+510=130
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
