Assignment 16: Iteration Control Structure - Hands on practice Hint: Consider numbers 1 to 10, for each number find the odd multiples. Example, for 1, it should be 1, 3, 5, 7, 9 Objective: Given a...


Assignment 16: Iteration Control Structure -<br>Hands on practice<br>Hint: Consider numbers 1 to 10, for each number find<br>the odd multiples.<br>Example, for 1, it should be 1, 3, 5, 7, 9<br>Objective: Given a real world problem, implement the logic<br>and solve the problem using appropriate constructs (sequen-<br>tial, selection, iteration) using an object oriented program-<br>ming language (Java)<br>for 2, it should be 2, 6, 10, 14, 18<br>Estimated time: 50 minutes<br>Summary of this assignment: In this assignment, you have<br>learnt the implementation of iteration control structures.<br>Problem Description:<br>Write simple java programs to implement the following prob-<br>lems.<br>1.Find the sum of first 5 numbers (1 to 5) using for loop<br>End of document<br>statement<br>2.Find the product of first 5 numbers (1 to 5) using while<br>loop statement<br>3. Generate the multiplication table of 10 upto multiple<br>value 500<br>4.Calculate the square of first 5 numbers (1 to 5) using<br>do..while statement<br>5.Find the odd multiples among the first 10 multiples of<br>first 10 numbers<br>

Extracted text: Assignment 16: Iteration Control Structure - Hands on practice Hint: Consider numbers 1 to 10, for each number find the odd multiples. Example, for 1, it should be 1, 3, 5, 7, 9 Objective: Given a real world problem, implement the logic and solve the problem using appropriate constructs (sequen- tial, selection, iteration) using an object oriented program- ming language (Java) for 2, it should be 2, 6, 10, 14, 18 Estimated time: 50 minutes Summary of this assignment: In this assignment, you have learnt the implementation of iteration control structures. Problem Description: Write simple java programs to implement the following prob- lems. 1.Find the sum of first 5 numbers (1 to 5) using for loop End of document statement 2.Find the product of first 5 numbers (1 to 5) using while loop statement 3. Generate the multiplication table of 10 upto multiple value 500 4.Calculate the square of first 5 numbers (1 to 5) using do..while statement 5.Find the odd multiples among the first 10 multiples of first 10 numbers

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here