Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

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

Students also viewed these Databases questions

Question

6. What information processes operate in communication situations?

Answered: 1 week ago