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
Serjik [45]
3 years ago
9

Suppose that sales is a two-dimensional array of 10 rows and 7 columns wherein each component is of the type int , and sum and j

are int variables. Which of the following correctly finds the sum of the elements of the fifth row of sales?1. sum = 0;for(j = 0; j < 10; j++)sum = sum + sales[5][j];2. sum = 0;for(j = 0; j < 7; j++)sum = sum + sales[4][j];3. sum = 0;for(j = 0; j < 10; j++)sum = sum + sales[4][j];4. sum = 0;for(j = 0; j < 7; j++)sum = sum + sales[5][j];
Computers and Technology
1 answer:
Deffense [45]3 years ago
3 0

According to the given question, sales is a two-dimensional array and contains 10 rows and 7 columns wherein each component is of type integer and the variables sum and j are also of integer type.

<u>Explanation:</u>

In order to find the sum of the elements of the fifth row of sales, the correct piece of code should be:

sum=0;

for(j=0;j<7;j++)

sum=sum+sales[4][j];  

The indexing in an array always starts from zero, therefore, to calculate the sum of the fifth row, the user has to write 4 in the index to point to the fifth row.

You might be interested in
Find the name of the professor with the maximum percentage of students that failed his course.
aleksandrvk [35]

The minimum score needed to make an A is 89.

<h3>What is the z-score?</h3>

A Z Score, also known as the Standard Score, is a calculation used to determine how many standard deviations a raw score is below or above the population mean. Simply said, the Z Score informs you of a value's relationship to the mean and the distance a data point is from the mean.

Since the grades of his students were normally distributed, we would apply the formula for normal distribution which is expressed as

z = (x - µ)/σ

Where

x = grades of his students.

µ = mean grade

σ = standard deviation

From the information given,

µ = 74

σ = 10

The professor has informed us that 6.3 percent of his students received A's. The p-value for the minimum score is 1 - 0.063 = 0.937. The z value of 0.937 is 1.53.

1.53 = (x - 74)/10

1.53 × 10 = x - 74

15.3 = x - 74

x = 15.3 + 74

x = 89.3

Therefore, the minimum score needed to make an A is 89.

The complete question is given below:-

A professor at a local community college noted that the grades of his students were normally distributed with a mean of 74 and a standard deviation of 10. The professor has informed us that 6.3 percent of his students received A's while only 2.5 percent of his students failed the course and received F's. What is the minimum score needed to make an A?

To know more about the z- score, follow

brainly.com/question/25638875

#SPJ4

3 0
1 year ago
Convert the following denary numbers into binary using 8-bit register:
kobusy [5.1K]

Answer:

9LA+ªÿ

Explanation:

7 0
2 years ago
Write a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds.
Alex

Answer:

#include<iostream>

#include<string>

int main()

{

double weight;

double weightInPounds;

cout<<"Enter Weight of person in kilograms\n";

cin>>weight;

weightInPounds = weight * 2.2;

cout<<"Your weight in Pounds is : "<<weightInPounds<<endl;

return 0;

}

6 0
3 years ago
...................You like swamps
maks197457 [2]
Yes hehdhejddusjsjsbsjdjd
6 0
3 years ago
Read 2 more answers
The World Wide Web is full of unstructured data. Search engines like Google, Bing and Yahoo have been doing a good job of allowi
bija089 [108]

Answer: Query

Explanation:

The Search Criteria is entered and any when a related Query is logged, it speedily bring out the linked details for exploration.

5 0
3 years ago
Other questions:
  • The amount of data is increasing exponentially over time. true or false.
    6·1 answer
  • Which option can Jesse use to customize her company’s logo, name, address, and similar details in all her business documents?
    7·1 answer
  • The network layer of the Internet model uses the _____________ protocol to route messages though the network.
    13·1 answer
  • Is full dive vr possible and can we accomplish it with today’s technology? Explain why
    13·2 answers
  • Tools, documents, language and processes—these are examples of boundary objects. Which of the following is the best definition o
    11·1 answer
  • In linear​ programming, what are restrictions that limit the degree to which a manager can pursue an​ objective?
    15·1 answer
  • What is the positional weigh of the digit 7 in the octal number 7642 ?​
    15·1 answer
  • How was WiFi discovered?
    8·1 answer
  • Please help with question
    14·1 answer
  • Software is in -----language​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!