Question: Question 1: Write a program that prompts the user to enter a string and displ ys the number of the uppercase letters, spaces, lowercase letters
Question 1: Write a program that prompts the user to enter a string and displ ys the number of the uppercase letters, spaces, lowercase letters and digits in the string. Use a for loop. Question 2 Use nested for loops to display the following patterns: Pattern 1: Pattern 2: 1 22 333 4444 (4 spaces then the number 1) (3 spaces then the numbers 22) (2 spaces then the numbers 333) (1 space then the numbers 4444) Use nested for loops to display the following patterns Pattern 1: Pattern 2: 1 (4 spaces then the number 1) 22 (3 spaces then the numbers 22) 333 (2 spaces then the numbers 333) 4444 (1 space then the numbers 4444) 55555 (0 spaces then the numbers 55555) Question 3 wnloads/ch5-2.pdf 4444 (1 space then the numbers 4444) 55555 (0 spaces then the numbers 55555) Question 3: Write a program to read a sequence of numbers ending the value O and print how many were positive numbers and how many were negative numbers. Use a for loop. For example, if the user enters 10-20-34620 The program will display: Number of positive numbers 4 Number of negative numbers 2 SECTION 2: MULTIPLE CHOICE (WORTH 25% OF SCORE) For this section, provide your answers in a table like the following Question # 1 answer Section 5.2 The while Loop How many times will the following code print Welcome to Java"? int count 0 while (count
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
