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
Sergio [31]
3 years ago
5

Write a program that asks the user for three names, then prints the names in reverse order.

Computers and Technology
1 answer:
sasho [114]3 years ago
8 0

Answer:

The program written in C++ is as follows'

#include<iostream>

using namespace std;

int main()

{

string names[3];

cout<<"Please enter three names: "<<endl;

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

{

cin>>names[i];

}

for (int i = 2; i>= 0;i--)

{

cout<<names[i]<<endl;

}

return 0;

}

Explanation:

This line declares an array for 3 elements

string names[3];

This line prompts user for three names

cout<<"Please enter three names: "<<endl;

This following iteration lets user input the three names

for (int i = 0; i< 3;i++)  {  cin>>names[i];  }

The following iteration prints the three names in reverse order

for (int i = 2; i>= 0;i--)  {  cout<<names[i]<<endl;  }

You might be interested in
If I gain a rank and go under the points that the rank coust do I lose the rank
padilas [110]
This is a good question, and I've wondered about that myself. I'm going to 'report' the question, not because there's anything wrong with it, but to bring it to the attention of the Moderators, so they can tell both of us.
4 0
3 years ago
Read 2 more answers
Which is true about POP3 and IMAP for incoming email?
Novay_Z [31]

Answer:

Both keep email on an email server by default

Explanation:

IMAP synchronises emails, while POP3 downloads them for offline use.

7 0
3 years ago
3 uses for auto formatting
zalisa [80]
Auto formatting is a computer software feature that automatically change the appearance of texts. Uses of auto formatting include the following:
it can be used to quickly apply or change automatic formatting.
It can be used to give a professional look to a document with minimal efforts.
the internet and network hyperlink option can be used to format email addresses and URL as clickable hyper link fields. 
The border line option can be used to apply paragraphs border styles to one's documents.
The table option can be used to create a table. 

3 0
3 years ago
What is the purpose of each of the components (each shown with a leader and line) of the circuit shown in the diagram?
MArishka [77]
The upper right is a switch that once the metal contacts the receiving end will complete the circuit. The light is what is powered when the circuit is completed by the switch. The battery which has a positive and a negative, has a lead running from positive to the switch, from the switch to the light, from the light to the negative terminal on the battery to run a complete circuit. The wire is what carries the current. Put it this way, start at the battery and run counter clockwise from there. 1, battery 2, switch 3, light 4, wire. Just a question, is this for 8th grade science learning about energy and electricity?
5 0
4 years ago
i emailed someone and im sure that they emailed back however it says nothing has arrived in my inbox what do I do
Lynna [10]

Answer:

report it or check ur spam mail or refresh the page

Explanation:

good luck figuring it out :)

8 0
3 years ago
Other questions:
  • Which of the following has likely attended vocational school?
    10·1 answer
  • Open a command prompt on pc-a and pc-b and type ipconfig /all. what are the ethernet adapter physical addresses?
    7·1 answer
  • Where can I easily find an easy app or program to use for making/editing videos?
    13·1 answer
  • PDA is an acronym for professional digital aid. <br><br> True <br><br> False
    10·1 answer
  • Assuming x and y are variables of type float, the expression:
    6·1 answer
  • we studied FIFO, Priority, Round Robin (RR), and Weighted Fair Queueing (WFQ) packet scheduling disciplines. Which of these queu
    12·1 answer
  • The Electronic Communications Privacy Act requires an investigator to have a wiretap order to acquire ___________ information fr
    8·1 answer
  • Given N lines of input, print the 3rd character from each line as a new line of output. It is guaranteed that each of the n line
    8·1 answer
  • Sube
    10·2 answers
  • What type of degree do web masters tend to have?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!