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
Mumz [18]
3 years ago
11

Write a for loop to print all NUM_VALS elements of vector courseGrades, following each element with a space (including the last)

. Print forwards, then backwards. End each loop with a newline. Ex: If courseGrades = {7, 9, 11, 10}, print:7 9 11 10 10 11 9 7 Hint: Use two for loops. Second loop starts with i = NUM_VALS - 1.#include using namespace std;int main() {const int NUM_VALS = 4;int courseGrades[NUM_VALS];int i = 0;courseGrades[0] = 7;courseGrades[1] = 9;courseGrades[2] = 11;courseGrades[3] = 10;//Your solution goes here
Computers and Technology
1 answer:
expeople1 [14]3 years ago
6 0

Answer:

#include <iostream>

using namespace std;

int main()

{

int courseGrades [ ] = {7, 9, 11, 10};

for(int i =0; i<4; i++){

       cout<<courseGrades[i]<<" ";

}

for(int j = 3; j>=0; j--){

   cout<<courseGrades[j]<<" ";

}

}

Explanation:

Using C++ programming language

Create the array vector and assign values with this statement int courseGrades [ ] = {7, 9, 11, 10};

The first for loop prints the values from 0-4 (Since four values are given and hard coded) for(int i =0; i<4; i++)

The second for loop prints from the last to the first element (i.e reversed) for(int j = 3; j>=0; j--)

You might be interested in
What word can you spell with the letters e, e, a, m, g, t, and k?
SVETLANKA909090 [29]
Eat,get and Meg
all the words I can think of
8 0
4 years ago
Write a program to compute the sum of digits in a number given by the user. You must use your own function to compute the sum of
Sergio [31]

Answer:

python program compute the sum of digits of a number using function.....hope this answer is perfect and better for urr question....thanks

4 0
3 years ago
Which of the following self-contained APs are autonomous, or independent, because they are separate from other network devices a
const2013 [10]

The self-contained APs are autonomous, or independent, because they are separate from other network devices and even other autonomous AP,these are referred to as the Fat APs

Explanation:

A <u>fat AP wireless access poin</u>t is used to manage wireless client. In other words it can provide wireless access independently.It can handle encryption,authentication,and management of communication of client devices.

There are two types of wireless access points, <u>intelligent (fat) and thin wireless access points. </u>

A thin access point can be a radio and antenna, that is  controlled by a wireless switch.

Some  role of Fat APs include

  • It controls the functionality of a central switch
  • It provides for the  Encryption of connected client devices
  • It Manages the connected client devices
  • It also performs the task of Authentication of the  connected client devices
3 0
4 years ago
By default, tables are sorted in ascending order by this.<br><br><br> What’s the answer?
raketka [301]

Answer:

Record number

Explanation:

It simply can't be "data type" as there cant be more than one data type in a field. It won't be "primary key field" either as primary keys only set the field as unique. You can test this by changing the primary key to a different field. But for simplicity's sake, I did this experiment for you.

As you can see in the first and second attachments, ID is the primary key, set default by the program.

But when I set Field 8 as the primary key, shown in the third attachment, field 8 doesn't sort, shown in the fourth attachment.

5 0
3 years ago
Read 2 more answers
You have recently implemented a new WAN technology to connect a remote branch office to your headquarters. While making VoIP cal
sergejj [24]

Answer:

Satellite is the correct answer to the given question .

Explanation:

Connections via the  satellite deliver the communication in the whole  world environment .The  reliability, expense and the performance problems have long suffered satellite connections, rendering the satellite-based WAN connections are just under the suitable.

The satellite wan connection is the Linking of  the head office to a remote branch office.The satellite wan technology  allowing the VoIP calls between both the departments .When the workers complain about discrepancies between something talking as well as the other person learning.

5 0
4 years ago
Other questions:
  • Having plug and play support means you can plug in a device, turn on the computer, and then immediately begin using the device t
    11·1 answer
  • WILL UPVOTE ALL plz
    13·1 answer
  • When a communication exchange that does not verify the identity of the endpoints of a communication and accepts any properly for
    10·1 answer
  • Business customers pay $0.006 per gallon for the first 8000 gallons. If the usage is more than 8000 gallons, the rate will be $0
    11·1 answer
  • Write a declaration for a class named City, which has the members cityName, a string, and position, a Location structure (declar
    10·1 answer
  • Consider the class ScopeTest defined this way:
    15·1 answer
  • Corinne is on a project team and they are in the project execution phase. She gets a call from a stakeholder to make a change to
    6·1 answer
  • Write a program to enter a number and test if it is greater than 45.6. If the number entered is greater than 45.6, the program n
    8·1 answer
  • What is versatility according to computer​
    11·1 answer
  • How do I mark brainlyist
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!