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]
2 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]2 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
An open system consists of nonproprietary hardware and software based on publicly known standards that allows third parties to c
kolezko [41]

Answer:

The answer is "Option D".

Explanation:

A system or a group of components that communicate with your environment through the sharing of resources, materials, and knowledge with a view to system regeneration and development is known as an Open system. In other words, we can say that it is a system that includes a non-proprietary hardware and advert-based software which enables third parties to add or interact with products to plug in the system and It is freely available on the internet. In this question, the incorrect options can be described as follows:

  • In option A, The management system is used by an organization. It is a paid system that's why it is not correct.
  • In option B, This system enables users in online communities and evaluates one another that's why it is not correct.
  • In option C, This type of system provides resources for upgrade user knowledge. It is a paid system that's why it is not correct.  

6 0
3 years ago
A market-product strategy that requires no change in the basic product but instead seeks new buyers is known as ______
lina2011 [118]

Answer:

market development

I hope this helps! ^-^

3 0
2 years ago
What does flexibility look like within your learning? Relevancy of Flexibility: Why is this important to your students?
Yakvenalex [24]

Answer:

just look like I they legs and hope they don't pop off

7 0
3 years ago
Look at the simple circuit illustrated in the figure above. What will happen when only switch S1 is closed?
Tema [17]
If only S1 is closed, due to the diode across S3 is pointing to the right, the current cannot be flowing to the left.

So nothing will happen, the bulb is not on.
6 0
2 years ago
Read 2 more answers
Do all the OSs provide support for multiprocessing?
Zigmanuir [339]

Answer: No, not all the OSs provides facilitation working with multiprocessor.

Explanation: Multiprocessing is the executing different tasks at the same point of time within a system through two or more processors. Multiprocessing is not supported by the single processor operating system(OS) .

Single processor system cannot operate several tasks at the same time and cannot run the processes simultaneously.But, most of the modern operating system are designed in a way that it can support multiprocessing.

4 0
3 years ago
Other questions:
  • Are u a chicken nugget!!??
    14·2 answers
  • If you create an object using Java’s BigDecimal class, and then perform a division that results in a non-terminating decimal div
    8·1 answer
  • A network administrator was told by the Chief Information Officer (CIO) to set up a new office with a network that has redundanc
    7·1 answer
  • Which of these statements about cell references is NOT true?
    10·2 answers
  • Please draw a diagram of a complete graph with 5 vertices (K5), its adjacency matrix and adjacency list representations.
    5·1 answer
  • A wireless network does not benefit like a wired network does, when it comes to collision reduction. Which device reduces collis
    6·1 answer
  • I really want to know the best way to deal as much heart as possible plz tell me
    7·2 answers
  • Heeeeeeeelp :)<br> thx<br> jfdyiusjmkdsuiho;dmcvrvho;j
    5·2 answers
  • ...............is a personal computer that fits on desk.​
    5·2 answers
  • What describes Accenture's approach to automation?
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!