Question: Loop Programming Problem 1. Print the first 2 even values in a given integer array. 2. Given an array of lowercase letters, print their corresponding
Loop Programming Problem
1. Print the first 2 even values in a given integer array.
2. Given an array of lowercase letters, print their corresponding uppercase letters.
3. Print the indices/positions of all the elements, which have the value 10, in a given integer array.
4. Given 2 arrays of the same length, check if they have the same values in the same positions.
5. Print the values of a given array until you find the value 0.
6. How many times the value 5 is repeated in a given integer array?
7. What is the total of summing the first 20 odd numbers (>0)?
8. Given an array of integers, add 1 to the value of all of its elements.
9. Given a double array, round all of its values to the nearest integer.
10.Are all the values in a given array negative ones?
11.Given an array of String values, print its string elements until you find the value "End".
12.Check if a given array has a negative value.
13.Count the number of the uppercase letters in a given String variable.
14.What is the sum of all even values in a given integer array?
15.Print all the values in a given integer array that are divisible by 3.
16.Given an array of String values, print all the string elements which starts with an uppercase
letter.
17.Print the first uppercase variable in a given String variable.
18.Print all the even values in a given integer array.
19.How many positive values are there in a given array?
20.Given a positive number, calculate its factorial using a loop.
21.Read a series of numbers from a user [until a negative number is entered], and then print their
sum.
22.Given a double array of student marks, print their corresponding letter grades.
23.How many odd numbers (> 0) should we sum to get a total of at least 50?
24.Read 7 numbers from a user, and then print their sum.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
