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 is modern technology developed? Explain.
vivado [14]

Answer:

Modern technology has developed

Explanation:

The development of technology may draw upon many fields of knowledge, including scientific, engineering, mathematical, linguistic, and historical knowledge, to achieve some practical result. ... For example, science might study the flow of electrons in electrical conductors by using already-existing tools and knowledge.

4 0
3 years ago
Read 2 more answers
If 400 Pa of pressure is applied to an area of 55 m2, which is the resulting force?
Free_Kalibri [48]
Formula is
Force=pressure x area
So the answer would be
400 x 55= 22000N
7 0
4 years ago
Read 2 more answers
I
Naily [24]

Answer:

True

Explanation:

Not(False) OR False = True OR False = True

4 0
3 years ago
What does the statement that follows do? double gallons[6] = { 12.75, 14.87 }; a. It assigns the two values in the initializatio
Serhud [2]

Answer:

It assigns the two values in the initialization list to the first two elements and default values to the other elements.

Explanation:

Given

The array initialization

Required

Interpret the statement

double gallons[6] implies that the length/size of the array gallons is 6.

In other words, the array will hold 6 elements

{12.75, 14.87} implies that only the first two elements of the array are initialized ; the remain 4 elements will be set to default 0.

3 0
3 years ago
What are the advantages of the java.util.Stack implementation of a stack?
klemol [59]

Explanation:

The advantages of java.util.Stack are as following:-

  1. java.util.Stack is an implementation of the vector class hence it can keep track of position of elements in the stack hence it is not required to store an additional pointer for each node.
  2. In the implementation it allocates space only that much is needed.

These are the two advantages of java.util.Stack.

3 0
4 years ago
Other questions:
  • Worms often try to disguise from where they are sending data by using a bogus ip addresses instead of using an authorized ip add
    11·1 answer
  • Trish uas bought a new computer, which she plans to start working on aftwr a week. Since Trish has not used computers in the pas
    13·1 answer
  • When sending a packet of data from source host to a destination host over a fixed route. Which of the delay components are varia
    8·1 answer
  • You are replacing the toner cartridge for an old laser printer. You are concerned that several internal components are reaching
    8·1 answer
  • The sequence of folders to a file or folder is called a(n) ________
    8·1 answer
  • While waiting to be seated at a restaurant, Jason receives a customer loyalty coupon through an app on his mobile phone for half
    7·1 answer
  • In IDLE, which symbols are used for the prompt? <br>*** <br>&lt;&lt;&lt;<br> &gt;&gt;&gt;<br> ---​
    8·1 answer
  • Write a function named "list_concat" that takes a list of strings as a parameter and returns the concatenation of all the values
    13·1 answer
  • Can i add ADSence on bangla content in blogsopt website?
    12·1 answer
  • Which of the following would most likely be the target audience for a product
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!