, 02.10.2019 07:10 TunaBoi

# What is the input value for which g(x) = 3

A

Step-by-step explanation:

A circle does not pass the vertical line test because for most x-values there are 2 y-values.

A

Step-by-step explanation:

The x value fits in.

i really don't know

Explanation:

import java.util.Scanner;

public class DistanceFromAverage

{

static double[] userValues = new double[20];

static double userInput;

static int totalValues = 1;

static int y = 0;

static double totalUserInput = 0;

static double avg;

public static void main(String[] args)

{

getInfoFromUser();

calculation();

}

public static void getInfoFromUser() {

Scanner input = new Scanner(System.in);

System.out.print("Enter an integer or enter 99999 to quit: ");

userInput = Double.parseDouble(input.nextLine());

if(userInput == 99999)

System.out.println("Enter a value: ");

while(userInput != 99999 && totalValues < userValues.length)

{

userValues[totalValues] = userInput;

totalUserInput = totalUserInput + userInput;

System.out.print("Enter an integer or enter 99999 to quit: ");

userInput = Double.parseDouble(input.nextLine());

if(userInput == 99999)

break;

totalValues++;

}

}

public static void calculation() {

avg = totalUserInput / totalValues;

System.out.println("You have entered " + totalValues + " numbers and their avg is " +avg);

for (y = 1; y < totalValues; ++y)

{

System.out.println(userValues[y] + " is " + (userValues[y] - avg) + " away from the avg");

}

}

}

Explanation:

Create the getInfoFromUser method that takes information from the user and save it in the array and if user enters 99999 then it exitsStop taking information from user if it exceeds 20  inputs.Create the calculation method that finds the average and as well as calculates the distance from the average. Calculate the average by using the following formula:

avg = totalUserInput / totalValues

At the end, display all the results.

This is HTML code.

Explanation:

I can't explain everything about this as I do Java but this is clearly HTML (website) code.

I hope this helps somehow.

### Other questions on the subject: Mathematics

Mathematics, 21.06.2019 23:00, jerseygirl3467
Can someone me with my math problems i have a bunch. i will give brainliest and lots of pleeeaaasssee
Mathematics, 22.06.2019 00:50, Pmedellin27
Acube has a volume of 800 cubic inches. whatis the length of an edge of the cube, in inches? a. 23/100b. 43/50c. 83/100d. 1003/2e. 1003/8
Mathematics, 22.06.2019 01:00, justkevin1231
You went to a restaurant and spent \$53.25 on the meal. there was a 6% sales tax. what was the amount of money, not including a tip, you spent at the restaurant?