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
RoseWind [281]
3 years ago
6

Write code to check that HairEyeColor is an array. e) Write code to determine: (i) the total number of respondents in the survey

.
Computers and Technology
1 answer:
jek_recluse [69]3 years ago
5 0

Answer:

Explanation:

The following code is written in Java and first checks to see if the class name starts with the character " [ " which would indicate it is indeed an Array. If it is it prints out that it is an Array and then Prints out the number of respondents/entries that the array has. If it is not an Array it prints out that it is not an array.

if (HairEyeColor.getClass().getName().charAt(0) == '[') {

               System.out.println("Yes, it is an Array");

               System.out.println("HairEyeColor has " + (HairEyeColor.length+1) + " respondents");

           } else {

               System.out.println("It is NOT an Array");

           }

You might be interested in
Which of the following statements is not correct ​
just olya [345]
Wich statements ? I don’t see anything
4 0
3 years ago
Read 2 more answers
And the Founder/Developer of PHP is ____________.
Bingel [31]

Answer:

b. RasmusLerdorf

Explanation:

RasmusLerdorf is the founder/developer of PHP. He created it in 1994. He is a   Danish national who migrated to Canada in 1980.He implemented PHP to support his personal home page and the language continued to get extended  by adding more and more functionality. The original language parser was redeveloped for version 3 in 1997. The latest release of PHP is 7.x made available since December 2015.

7 0
3 years ago
When resizing images or objects in a presentation, why should a user not utilize the sizing handles in the middle of the sides o
Volgvan

Answer:

b. It will resize the image but not maintain aspect ratio

Explanation: is correct. post protected

7 0
2 years ago
Write a loop that displays all possible combinations of two letters where the letters are 'a', or 'b', or 'c', or 'd', or 'e'. T
Dafna11 [192]

Answer:

for (char outerChar='a'; outerChar<='e'; outerChar++){

for (char innerChar='a'; innerChar<='e'; innerChar++){

cout << outerChar << innerChar << "\n";

}

}

3 0
3 years ago
Which were important characteristics of Sparta's government? Select the two correct answers. A. Oligarchs were able to hold a lo
Cerrena [4.2K]

Answer:

Sparta's government was a combination of a monarchy, a democracy, and an oligarchy. and oligarchs were able to hold a lot of power in government.

Explanation:

Spartans government loved to have power more than anyone in their century.

4 0
3 years ago
Read 2 more answers
Other questions:
  • Melissa needs to put a topic name on her email that she will send will to her teacher . choose the name of the field
    6·2 answers
  • Explain why testing can only detect the presence of errors, not their absence.
    14·1 answer
  • A company that designs video games has decided to expand and needs to hire Software Developers, Web Administrators, and Computer
    8·2 answers
  • Modify the NumberedList class we implementd during the lecture by adding a member function: void NumberedList::insertPosition(in
    13·1 answer
  • To lose weight, you must _______.
    10·2 answers
  • Write a C program to input a character, then check if the input
    5·1 answer
  • • Comments are blank which can be blank entered into documents
    5·1 answer
  • What do you do when ur grounded from all electronics and can't go outside and have t clean all day
    10·1 answer
  • The pinky finger on the right hand types _____.
    15·2 answers
  • A. In I/O interation between OS and devices, describe how hybrid mechanism works?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!