Question: Problem 1: Loop writ and run a Java program that reads an integer. It will then find and print the multiples (not greater than 100)

Problem 1: Loop

writ and run a Java program that reads an integer. It will then find and print the multiples (not greater than 100) of the given number.

Problem 2: 1D Array

  • Writ and run a Java program that performs the following:
  • Create an Array A of size 10
  • Fills the array with random number between 20 and 40
  • Create Array B and fill it with A elements but according to the following rules
  • If the element in A was odd, copy it to array B as it is

If the element in A was even, add 1, then copy it to arrayB Problem 3: Loop and 1D array

develop a Java program that reads in a sequence of 10 positive integers and fill them in an array of size 10

  • Finds and prints the sum of only the numbers that are multiples of 5.
  • Skips the numbers that are not multiples of 5, it will not be added.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!