Question: Lab # 0 1 : Loops and Functions OBJECTIVE: Learn how to deal with loops and functions in Java. Learn how to declare and define

Lab #01: Loops and Functions
OBJECTIVE:
Learn how to deal with loops and functions in Java.
Learn how to declare and define functions
Learn how to use value parameters with a function and return a single value from the
function
Learn how to use pass-by-reference arguments to return multiple values from a
function
Loops :
Background:
The following Java program computes the average of 5 numbers.
// P1.java - Read and compute the average for 5 integers, display the result.
import java.util.Scanner;
public class P1
{
public static void main(String args[])
{
Scanner input = new Scanner
System.in
 Lab #01: Loops and Functions OBJECTIVE: Learn how to deal with

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 Databases Questions!