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
Tems11 [23]
3 years ago
15

Populate a one-dimensional array with the following grades in this order: 90, 61, 74, 42, 83, 51, 71, 83, 98, 87, 94, 68, 44, an

d 66. Use a loop to call a method from main() that adds 15 points to all student grades that are a C or above. A C is defined as a score of 70 or above. Make this happen by passing the subscript value and not the entire array. The addition of the 15 points should happen in the method and be passed back to main. Use a loop to show final values within the array. The final array values should show the new adjusted grades.
Computers and Technology
1 answer:
yawa3891 [41]3 years ago
7 0

Answer:

#include <iostream>

using namespace std;

void func(int&num)

{

if(num>=70)

num+=15;

}

int main()

{

int arr[]={90, 61, 74, 42, 83, 51, 71, 83, 98, 87, 94, 68, 44, 66};

for(int i=0;i<14;i++)

{

func(arr[i]);

}

cout<<"Adjusted scores are: ";

for(int i=0;i<14;i++)

{

cout<<arr[i]<<" ";

}

cout<<endl;

return 0;

}

Explanation:

Our program is a one-dimensional array with the following grades in this order: 90, 61, 74, 42, 83, 51, 71, 83, 98, 87, 94, 68, 44, and 66.

It made use of loop to call a method from main() that adds 15 points to all student grades that are a C or above. A C is defined as a score of 70 or above.

It further uses a loop to show final values within the array. The final array values show the new adjusted grades.

You might be interested in
What considerations should you make when deciding on the size of a table?
Kisachek [45]

Answer:

You should consider the number of cells needed for data, labels, titles, and formulas.

Explanation:

4 0
3 years ago
Which of the following are examples of IT
Advocard [28]

Answer:

Computer hardware engineer

Systems analyst

Database administrator

7 0
3 years ago
Why was the microchip essential to improving computers?
-BARSIC- [3]
Because it downsized the scale of the computer itself.

5 0
3 years ago
After configuring the role services on the Remote Desktop server, Jabez creates a collection for the Marketing group in the orga
lawyer [7]

The option that  is true is option C: Jabez created a shared folder that is accessible to remote servers in the collection.

<h3>What are servers?</h3>

A server is known to be a form a computer program or device that helps to give a service to a given computer program and its user.

Note that in the case above, The option that  is true is option C: Jabez created a shared folder that is accessible to remote servers in the collection.

Learn more about servers from

brainly.com/question/17062016

#SPJ1

8 0
2 years ago
Tristan has successfully deleted the blank row. The next thing he wants to do is to increase the length of the first column. A 2
Sonja [21]

Answer:

B

Explanation:

;)

4 0
3 years ago
Read 2 more answers
Other questions:
  • On hearing my name, you may think that I am iterative, but I play a vital role in networking by boosting the signal strength to
    13·1 answer
  • Kyra needs help planning what images and text to use in her web page what technique can help her
    5·2 answers
  • #Write a function called "in_parentheses" that accepts a
    5·1 answer
  • _______ an embedded Word table to activate the Word features.
    6·1 answer
  • The order of precedence is very important when building formulas in Excel. Which of the following formulas will produce 778 as t
    11·1 answer
  • What kinds of circumstances would lead you to writing a function versus using a loop? please explain in simple terms
    6·1 answer
  • If you give an actual answer I'll give brainliest​
    13·2 answers
  • Describa la clasificación de los recursos educativos digitales abiertos. vea este video, para hacer eso
    11·2 answers
  • I ate five M&amp;Ms: red, green, green, red and yellow. Only these three colors are possible. I assume that p(yellow)=3p(green)
    9·1 answer
  • Choose the answer.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!