Question: Declare an array of floating - point numbers, named userPoints, with size NUM _ ELEMENTS. Then, read each element of userPoints from input: Ex: If
Declare an array of floatingpoint numbers, named userPoints, with size NUMELEMENTS. Then, read each element of userPoints from input:
Ex: If the input is then the output is:
Points:
import java.util.Scanner;
public class PointsTracker
public static void mainString args
Scanner scnr new ScannerSystem in;
final int NUMELEMENTS ;
int ;
vour code goes here
System.out.printPoints: ;
for userPoints. length;
System.out. printuserPoints i;
System.out. println;
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
