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
AveGali [126]
3 years ago
10

Write a for loop to print all elements in courseGrades, following each element with a space (including the last). Print forwards

, then backwards. End each loop with a newline. Ex: If courseGrades
Computers and Technology
1 answer:
NeTakaya3 years ago
6 0

Answer:

The code is given below in C with appropriate comments at the sample example

Explanation:

#include <stdio.h>

int main(void) {

  const int NUM_VALS = 4;

  int courseGrades[NUM_VALS];

  int i = 0;

  // taking examples of course grades

  courseGrades[0] = 7;

  courseGrades[1] = 9;

  courseGrades[2] = 11;

  courseGrades[3] = 10;

 

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

  printf("%i ", courseGrades[i]);

  printf("\n");

  for(int i = NUM_VALS-1; i >= 0; i--)

  printf("%i ", courseGrades[i]);

  printf("\n");

 

  return 0;

}  

You might be interested in
How do I do this? I know the shapes and everything but how do I do b, d, and e?
aleksandr82 [10.1K]
Look in google for math flowcharts...it will appear easily.
4 0
3 years ago
Personal information in the computer can be viewed and stolen
agasfer [191]
If that’s a true or false question it’s true.
6 0
3 years ago
In most languages, if a file does not exist and a program attempts to open it in append mode, what happens?
chubhunter [2.5K]

Answer:

It create a new file in which writing of data begins.

Explanation:

A file can be open in the three mode:

-r (Read mode): open an existing file for the purpose of reading data from it.

-w (write mode): Create a new file for the purpose of writing data to it.

-a (append mode): open an existing file for the purpose of appending extra data to it but if the file does not exist, it create a new file and start writing data to it.

5 0
4 years ago
What might be the explanation for the following scenario? A user reports that it took a longer than usual amount of time to acce
emmainna [20.7K]
<h2>Answer: </h2>

Usually a report is fetched from the database where data from all previous years is available. Once data is fetched, the raw data is compiled and formulated into appropriate report. The reason that report took longer is that user might have selected a date range from last two years until now which means that entire two years data was fetched from the database, operations were performed onto the raw data and the compiled data was then adjusted as per the report output.


3 0
4 years ago
Need help ASAPppppppppp
Darina [25.2K]

Answer:

Below picture should give you an indication. On different PC cases, the position of the connectors can be different, so you have to look at the shape.

5 0
3 years ago
Other questions:
  • In Python, what kind of error is returned by the following code? (e.g. NameError, ValueError, IOError, etc.) def my_func(n1, n2)
    8·1 answer
  • Programmers often author which type of information to guide test runs?
    10·1 answer
  • Whoevr answers this will be marked brainliest
    12·1 answer
  • What happened if the offshore team members are not able to participate in the iterations demo due to timezone/infrastructure iss
    12·1 answer
  • A BufferedReader has a constructor that takes a single InputStreamReader parameter. InputStreamReader has a constructor that tak
    8·1 answer
  • What is the biggest type of gear?<br><br>A. Spur<br>B.Worm<br>C.Wheel<br>D.Pinion
    6·2 answers
  • The length property of the String object returns
    15·1 answer
  • Why is proper planning important?
    10·1 answer
  • These statements describe a network server.
    5·1 answer
  • Plsssssssss help me​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!