Answer:
Option 3: alpha = {3, 2, 9, 6, 8}
Explanation:
Given an an array, <em>alpha,</em> with 5 integer elements.
What happen inside the for-loop is that
- The current index-j will be multiplied by 2 and then assigned as the value of the element of the array indexed by j.
- If the index-j is an odd number (j % 2 == 1), the previous element of the array, alpha[j - 1] will be assigned with value of alpha[j] + j. For example, given the alpha[0] = 0. If j = 1, alpha[j - 1] = alpha [0] = alpha[1] + 1= 2 + 1 = 3
- In short, the elements with even index-j are simply equal with 2 * index-j. Whereas the elements with odd index-j will always equal to alpha[j - 1] = alpha[j] + j
Choose the web design factor from the drop-down menus that best represents each statement.
Answer:
A. Good web pages stick to the point, do not have useless information, and showcase important information.
B. The best websites clearly present a reason for the creation of the site.
C. The best websites are pleasing to look at and make you want to click further through the pages.
D. It is important for the web designer to understand the needs, interests, and technology level of the target web page visitor.
E. Good websites make it easy to navigate from one page to the other with relevant links in obvious places.
Answer:
import java.util.Scanner;
public class num6 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int product=0;
do{
System.out.println("Enter a number");
int num = in.nextInt();
product = num*10;
System.out.println("The product is " + product);
}while (product<100);
}
}
Explanation:
In the Java program above, The user will be prompted to enter a number.
The number is multiplied by 10 and assigned to a variable called product.
A do....while loop has been implemented to check the variable product
As long as this variable is less than 10, the user will be prompted to enter another number.
Answer:
B
Explanation:
It's B because why would it me made to play video games