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
bulgar [2K]
4 years ago
11

Plssssssssssssssssssssssss helpp

Computers and Technology
1 answer:
brilliants [131]4 years ago
8 0
Tell me the question
You might be interested in
What does the following code print?double[] myList = {1, 5, 5, 5, 5, 1};double max = myList[0];int indexOfMax = 0;for (int i = 1
Liula [17]

Answer:

This code will print: 4

Explanation:

Following is the step-by-step explanation for the given code:

  • Given is the array of data type double named myList, it has entries, 1, 5, 5, 5,5, 1:

                    double[] myList = {1, 5, 5, 5, 5, 1};

  • Now the first element of the array (1) with index 0 will be stored in the variable max (data type double).

                 double max = myList[0];  

  • A variable indexOfMax having datatype int will be initiated as 0.

                 int indexOfMax = 0;

  • Now for loop will be used to find the maximum number of the array. The variable i will be put as index for each element to compare with first element. If the checked element is greater than or equal to the integer in max, it will be replaced. So at the end the variable max will have value 5 that will be at index i = 4.

                    for (int i = 1; i < myList.length; i++)

                            { if (myList[i] >= max)

                               { max = myList[i];

  • Now the variable i that is the index for max value will be stored in the variable indexOfMax (indexOfMax = 4).

                  indexOfMax = i; }}

  • At end the value stored in variable indexOfMax will be printed, so 4 will be printed as output.

              System.out.println(indexOfMax);

i hope it will help you!

7 0
3 years ago
Suppose you are purchasing something online on the Internet. At the website, you get a 10% discount if you are a member. Additio
patriot [66]

Answer:

<em>The function is written in C++</em>

void calc_discount(double amount,bool member)

{

 double discount;

 if(member)

 {

  discount = amount - 0.10 * amount - 0.05 * amount;

 }

 else

 {

  discount = amount - 0.05 * amount;

 }

 cout<<"Discount = "<<discount;

}

Explanation:

<em>I've included the full source code (including the main method) as an attachment where I use comments as explanations</em>

Download cpp
6 0
3 years ago
I have a DBA for keyboarding coming up and I am nervous. Any tips or pointers?
Gennadij [26K]
Don't be nervous... haha
3 0
3 years ago
Read 2 more answers
Pls help!!
alexira [117]

Answer:

4.24

Explanation:

First you find the mean of the data set, which is 7. Then to find standard deviation you have to follow the formula which tells you to subtract the mean from each number under the square root : √(2 - 7)^2 + (9 - 7)^2 + (10 - 7)^2 + (4 - 7)^2 + (8 - 7)^2 + (4 - 7)^2 + (12 - 7). Once you solve the parenthesis you square it, once you square it the negatives won't matter. That will leave you with this : √(25 + 4 + 9 + 9 + 25). The formula tells you to find the sum of those numbers (which is 72) then subtract one from how many numbers there are, 5 - 1 = 4, and divide your sum by that number. So 72 / 4 = 18. Then you find the square root of 18 and that becomes your answer.

7 0
2 years ago
How will bits and bytes of computer networking help in my career goal?
Allisa [31]

Answer:

By helping you learn and understand the very basics of computer networking therefor giving you a building block to use

Explanation:

ive been asked this before

6 0
2 years ago
Other questions:
  • Which is the most likely problem with a static layout?
    5·2 answers
  • Why is it important to match the latencies fo the older modules to the newer modules?
    14·1 answer
  • How can development in ICT be utilized to speed up the development and integration efforts
    5·1 answer
  • _______ are special incentives or excitement-building programs that encourage consumers to purchase a particular product, often
    7·1 answer
  • Exit windows entirely and turns off the computers power
    8·1 answer
  • Designing a mouse to fit well in your hand would demonstrate ..?
    14·2 answers
  • The U.S. military was instrumental in the rise of the simulation training industry.
    11·1 answer
  • What is the processing speed for the second generation of computers​
    7·1 answer
  • I need subscribers plz ​
    15·2 answers
  • The ____ project was developed to make information widely available in an attempt to thwart internet and network hackers.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!