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
anygoal [31]
4 years ago
6

You are given an array x of string elements along with an int variable n that contains the number of elements in the array. You

are also given a string variable mode that has been declared. Assign to mode the mode value of the array. (Assume there are no "ties".)
Computers and Technology
1 answer:
jarptica [38.1K]4 years ago
6 0

Answer and Explanation:

Make an algorithm of that which include array x of string where Mode of the value of the array means that you have the values such that 1.2,4,2,6,7,8,2 so 2 is the value of set as it appears more than other number similarly when a array of x has been given.First of all initialize a variable then declare it . so for initialization create a variable .Let suppose i create a variable of add and initialize it with 0 and given a it data type integer then

int add= 0;  // declaration

int add[]=0; // declaration and initialization in array

class add {  

void main(String array[]){  

int add[]=0;//declaration and instantiation  

int add[] = new int [3];

add[0]=30;//initialization  

add[1]=80;  

add[2]=20;  

output the given array of string

for ( int i = 0 ; i <add.length ;i++)

cout <<add[i];

 }

Taking an other example let initialization and declare array of string and print the greater value.For this create a variable with integer data type \

class Test{  

void main(String[] array){  

       //declaration of array

int test[][] = new int [2];

test[0]; new int [2];

test[1]; new int [4];

for initialization of array lets take variable a with data type integer

      int a=0;  

//taking loop for condition

       for (int i=0; i<test.length; i++)  

           for(int j=0; j<test[i].length; j++)  

//if the loops working properly then take increment in the variable a

               test[i][j] = a++;  

this process repeat until loops got false

   for (int i=0; i<test.length; i++)  

           for(int j=0; j<test[i].length; j++)  

         cout<<test[i][j]<<"+"<<"";  

           }  

           System.out.println();

       }  

   }  

You might be interested in
Can anyone help my please
Makovka662 [10]

order: soil, plant seeds, water, seedling, corn plant

4 0
2 years ago
Read 2 more answers
Public class Bird
Anna007 [38]

Answer:

Answer below.

Explanation:

You are creating an object of bird "b" with a talon strength of 5 and a beak of 5.

public Hawk(int talon, int beak)

{

super(beak);

talonStrength = talon;

}

Please mark brainliest if this is the answer you were looking for

Please mark brainliest if this is the answer you were looking for

6 0
3 years ago
Why would businesses apply cell protection to spreadsheet entries? Provide one specific example.
docker41 [41]

Answer:

To protect a formula

Explanation:

One common example to apply cell protection to spreadsheet entries is to protect a formula used in the sheet to calculate payouts or rankings for example.   A manager might want to share the results of the team to all its team and provides some ranking or other form of calculations in the sheet.  He then needs to protect the formula so it's not altered by the team members or anyone else reviewing the file.

6 0
4 years ago
Which best explains a password attached to a document?
Otrada [13]
That is encryption. Encrypted files usually have a password assigned. In order to decrypt the file, you need to have the password.
3 0
3 years ago
What data type or you use to represent true or false values?
vfiekz [6]
The Boolean type is used to represent true or false values
3 0
3 years ago
Other questions:
  • Shelly praised Susan via email for how well she executed an employee training program last week. Shelly is engaging in the _____
    6·1 answer
  • Which part of a window lets you see a fileâs contents without opening the file?
    9·1 answer
  • What are the first and the last physical memory addressesaccessible using
    10·1 answer
  • What is the best reason to delete Internet browsing history on a regular basis? to solve a computer hardware problem to protect
    13·2 answers
  • The network layer of the Internet model uses the _____________ protocol to route messages though the network.
    13·1 answer
  • We can include following item(s) during configuration itemidentification:
    10·1 answer
  • How do the principles behind the Agile Manifesto suggest approaching architecture?A. Architecture emergesB. Architecture is not
    10·1 answer
  • JAVA QUESTION::
    10·1 answer
  • PowerPoint is best described as:
    13·1 answer
  • When patel’s advertising co. decided to upgrade its computer network, many people were involved in the decision. In b2b buying s
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!