Lv 11 points

# Poops L

• ### What is the output of the following code? How do I solve this please list steps and provide information.?

int a = 0;

int b = 5;

int total = 0;

while (a < b) {

for (int i = a; i < b; i++) {

total = total + i;

}

a++;

b--;

}

System.out.println(a);

System.out.println(b);

System.out.println(total);

2 AnswersProgramming & Design9 years ago
• ### Having trouble with this problem. I have no clue?

Write a method that takes a single 12-digit number (you will need to use the long data type for

this) and returns true or false depending on whether or not it is a valid UPC barcode (in toher

words whether or not the check digit works). You may wish to create additional helper methods

to perform individual tasks (such as stripping off the checksum digit). You will want to write

some sort of test program.

You must use the following method signature for this problem:

public static void boolean isValidUPC(long a)

1 AnswerProgramming & Design9 years ago
• ### Yes this is for homework Java coding and im confused.?

Twin primes are a pair of prime numbers that differ by 2. For example, 3 and 5 are twin

primes, 5 and 7 are twin primes, and 11 and 13 are twin primes. Write a program to find all twin

primes less than 1000. Display the output as follows

3 AnswersProgramming & Design9 years ago
• ### This question has me stumped. Im using Eclipse Java.?

Write a method that returns the geometric mean of two floating point numbers numbers.

The geometric mean of two numbers, x and y is calculated as follows:

geometricmean = √ x⋅y

Note that you can calculate the square root of a double using the Math.sqrt(double a) method.

Also, write a simple test program (in the main method) that gets two inputs from the user, calls

your method, and displays the result. Any System.out.println() calls should be in the test

program and not the geometricMean method.

1 AnswerProgramming & Design9 years ago
• ### Using Eclipse/ Java write this code and add why so I can understand it?

Write a program that gets 3 integers as input and displays the integers in sorted order (lowest to highest). This is not homework I'm trying to learn this at home

1 AnswerProgramming & Design9 years ago
• ### I recently bought an xbox and signed up for xbbox live.?

the problem is i cant remember what email i used for the account.

• ### I had a limit of 400 on my walmart credit card and i bought a xbox with it. I want to purchase a tv when does?

the money limit renew on the card?

• ### How can my warlock get a flying mount? I learned the talent but i cant find a flying mount a warlock can use.?

3 AnswersVideo & Online Games10 years ago
• ### I'm a 20 year old male who does not know what he is doing in college and wants to find a career fast.?

I have been looking into slot technician but it does not sound right to me really. I don't know what to do. Any advise?

2 AnswersOther - Careers & Employment10 years ago

• ### Im a level 37 demonology warlock and i want to know where i can find some good quests to complete?

Thank You

1 AnswerVideo & Online Games10 years ago

• ### Help me with math Please?

There is a 19 pound bag on the left plate of a scale. There is a 3 pound bag on the right plate. Chris has to balance the scale by adding 4 pound bags to the left plate and 6 pound bags to the right plate. Suppose that he must add the same number of bags to each side. How many bags must he add to each side in order to balance the scale?

• ### How many bags must he add to each side in order to balance the scale?

There is a 19 pound bag on the left plate of a scale. There is a 3 pound bag on the right plate. Chris has to balance the scale by adding 4 pound bags to the left plate and 6 pound bags to the right plate. Suppose that he must add the same number of bags to each side. How many bags must he add to each side in order to balance the scale?

explain why

explain why