Answer:
import java.util.Arrays;
import java.util.Scanner;
public class num12 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter Number of guesses");
int NUM_GUESSES = in.nextInt();
int [] userGuesses = new int[NUM_GUESSES];
for(int i =0; i<userGuesses.length; i++){
System.out.println("Enter each value");
userGuesses[i]= in.nextInt();
}
System.out.println("userGuesses is "+ Arrays.toString(userGuesses));
}
}
Explanation:
- Prompt user to enter a value for the length of the array int NUM_GUESSES = in.nextInt();
- Create an array of int int [] userGuesses = new int[NUM_GUESSES];
- Use a for loop to request and add elements to the array
- print the array using Arrays.toString () method
Sarah wants to place a title at the top of a spreadsheet at the middle. Sarah should...C. type the title, select the cells running across the top of the spreadsheet, and use the merge and center command
Answer:
Too much sitting-affects the back and makes our muscles tight
Carpal tunnel and eye strain-moving your hand from your keyboard to a mouse and typing are all repetitive and can cause injuries
Short attention span and too much multitasking-As you use a computer and the Internet and get immediate answers to your questions and requests, you become accustomed to getting that quick dopamine fix. You can become easily frustrated when something doesn't work or is not answered in a timely matter.
Answer:
select distinct fname, lname, dname, pname, plocation
from works_on, project, employee, department
where works_on.pno = project.pnumber
and works_on.essn = employee.ssn
and project.dnum = employee.dno
and department.dnumber = employee.dno AND employee.ssn IN(
select essn
FROM works_on
GROUP BY essn
HAVING COUNT(essn)=1
)
order by lname, fname;
Explanation: