I’m a beginner to Java and trying to code a program that will take in the number of views for each episode of a netflix series and eventually give me back the average number of views. However, I have been told to only count view numbers above 50000, anything below will count as 1 view. How would I implement this?
public class assignmentnetflix {
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
int[] NetflixShow;
NetlixShow = new int[10];
for( int i = 0; i < 10; i++) {
System.out.println("Enter the number of views of Season 4 Episode " + (i+1));
NetflixShow[i] = input.nextInt(); }
input.close();
}