1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
shutvik [7]
2 years ago
14

Write a method called classAttendence() that creates a 10-by-10 two-dimensional array and asks for user input to populate it wit

h strings of student names. The method should not return any values.
Computers and Technology
1 answer:
gladu [14]2 years ago
6 0

Answer:

The method written in Java is as follows:

public static void classAttendance(){

   Scanner input = new Scanner(System.in);

   String[][] names = new String[10][10];

   for(int i =0;i<10;i++){

    for(int j =0;j<10;j++){

       System.out.print("Student Name: "+(i+1)+" , "+(j+1)+": ");

       names[i][j] = input.nextLine();        

    }  

   }

}

Explanation:

This defines the classAttendance() method

public static void classAttendance(){

   Scanner input = new Scanner(System.in);

This declares the 2D array of 10 by 10 dimension as string

   String[][] names = new String[10][10];

This iterates through the rows of the array

   for(int i =0;i<10;i++){

This iterates through the columns of the array

    for(int j =0;j<10;j++){

This prompts user for student name

       System.out.print("Student Name: "+(i+1)+" , "+(j+1)+": ");

This gets the student name from the user

       names[i][j] = input.nextLine();        

    }  

   }

The method ends here

}

<em>See attachment for complete program that include main method</em>

Download txt
You might be interested in
Do you think your generation will change the world? Why or why not?
Aleksandr [31]

Answer:

I think it will

Explanation:

because we are very rebellious and like Takis with ketchup I love ice cream with mayonnaise<3

7 0
2 years ago
Read 2 more answers
Question 4 of 20 :
dexar [7]

Answer:

O D. Allowing sensory play with no objective measurement

6 0
3 years ago
Read 2 more answers
Most wheel/tire assemblies are balanced using lead weights which should be removed and segregated from other metals
crimeas [40]
The answer is true. I took the test.
6 0
3 years ago
Read 2 more answers
Amy would like to find all records that were delivered on August 8, 2008. Her database has a field that tracks when the items we
denpristay [2]
Conduct a query and set the criteria as = August 8, 2008. I'm not sure if this is the right answer, but that's what I think it is.
7 0
3 years ago
Read 2 more answers
How to download ram<br> my computer is very slow and I need more ram
AURORKA [14]

Answer:

It is not possible to download RAM onto your computer.

Explanation:

RAM (Random-Access Memory) are physical objects installed onto your computer in the form of some sort of chip. Please do not attempt to download RAM from the internet, you may end up with malicious software on your computer. The only way to get more RAM is by installing more onto your computer or by looking at guides that can explain how to free up some RAM that may already be in use by an application.

8 0
3 years ago
Read 2 more answers
Other questions:
  • What does "FDDI" stand for in Technology?
    5·2 answers
  • Write a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds.
    8·1 answer
  • What does media saturation mean?
    15·1 answer
  • __________is threatening to steal or actually stealing information from a company and then demanding payment to not use or relea
    13·1 answer
  • Which of the following sentences is accurate? a. PDF stands for "Proofreading Direct Files." b. PDF files cannot be edited. c. B
    9·1 answer
  • How to chnage email adresss on slate from tophat?
    13·1 answer
  • What are the paparazzi?
    8·1 answer
  • Which are examples of basic text structures? Check all that apply.
    8·2 answers
  • A _____ is an Access database object that allows you to arrange the fields of a record in any layout so you can enter, edit, and
    6·1 answer
  • What is the full form of Computer?<br>​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!