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
Why is IP configuration used with its components for network, broadcast, host addresses, and local host?
matrenka [14]

Answer:

GeoLocation

Explanation:

It is based on geolocation and wireless provider so it differs based on where and what hope this helps!

3 0
3 years ago
¿que lenguaje de programacion usan los operadores matematicos?​
kolbaska11 [484]

Answer:

Matlab / GNU Octave. MATLAB (laboratorio de matrices) es un entorno informático numérico multiparadigma y un lenguaje de programación de cuarta generación.

Explanation:

8 0
3 years ago
Read 2 more answers
I’ll mark brainliest, thanks
Mrrafil [7]

Answer:

if that is a tutorial, than just hit submit, the teacher doesn't see it.

Explanation:

i do online schooling on the same website

7 0
3 years ago
Read 2 more answers
Select the correct text in the passage. Idenufy the phrase that shows the use of a non-contact-type temperature sensor. Jim work
suter [353]

Answer:

where he is allowed only to enter on successful biometric verification by sensor at the gate,,it shows to some extent there is no contact,,,the molten we are told is risky so there should be no close contact with it,,

5 0
3 years ago
What should a good interface delight incorporate?
antoniya [11.8K]

<u>Answer:</u>  

A) a very long but detailed menu system

<u>Explanation:</u>

A <em>detailed menu will never attract or support the user in any form</em>. It might be difficult to use the application for longer time due to the <em>un supportive menu format.</em>

Option B: This option might look closer to the answer but it might not attract if many users are unaware of the latest changes.

Option C: The application should support and should not challenge the user. It is not a quiz or game show to challenge people.

Option D: Any GUI should be attractive so that the user tend to use it frequently.

8 0
3 years ago
Other questions:
  • You just realized the turn signal on your vehicle is broken,
    15·1 answer
  • Which part of an I-statement involves a description of your needs or feelings?
    12·1 answer
  • Mrs. Sims polled her students about which social media app they use most. Which type of chart would best display this data?
    9·2 answers
  • What does ALU stand for?
    12·2 answers
  • What does it mean when you mail is labled unable to forward for review
    5·1 answer
  • Which tool is best used to test an electrical current for a power source?
    8·1 answer
  • Bubbles are seen in the sight glass of an R-12 system. Technician A says this that indicates a fully charged system. Technician
    12·1 answer
  • There are 4 fruits apples,oranges,bananas and grapes. Each student can pick up 2 fruits.There are some conditions which have to
    5·1 answer
  • Which group scope can be used to assign permissions to resources only in the domain in which the group is created
    12·1 answer
  • Read the sentence. Piles of discarded trash litter the cobblestones of the quaint brick alley. Which image best shows a visualiz
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!