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
TRUE OR FALSE! A query can have no more than three common interpretations.
Vanyuwa [196]

A query can have no more than three common interpretations is false. A query is a search through a source to find the answer to something. A common interpretation are the items that pop up in in the first spots of the search query because they are the most relatable to the question. A common interpretation usually answers the question, but there are times that the question is more complex and needs to be search for longer within the sources that pop up.

8 0
3 years ago
If a 120 V appliance requires 15 A to operate, what is the resistance of the appliance?
Strike441 [17]

The resistance is 16 ohm's

V=I x R where V is the voltage, I is the current, and R is the resistance in Ohms

120= 15 x R

R=120/15

R= 8 Ohm's

P=VxV / R

P=120v x 120v / 8 ohms

P= 14400/8

P = 1800 watts

R = V x V/P

R = 14400/900

R = 16 Ohm's

The resistance is 16 ohm's:

I = V/R

I = 120/16

I = 7.5 Amps


8 0
3 years ago
You can choose which rules you want excel to use by enabling and disabling them in the ____ area in the excel options dialog box
vfiekz [6]
It is in the conditional formatting area that such changes are made.
4 0
3 years ago
1. A(n) ____ is a special type of inline image in which you define one or more areas as hotspots. *
3241004551 [841]

<span>1.       </span>Image map

Typically, web pages use different types of inline images. An image map defines one or more areas as hotspots and is a special type of inline image. For instance, every hotspot in an image map is able to link to a different page.


<span>2.       </span>Headings

Once the Web page structure is set, you can now enter content of the web page informational text paragraphs and headings. Headings separate text or add new topics on the page. Headings are indicated by the tags <h1> all through to <h6>


<span>3.       </span>Deprecated tags

<span>By default, W3C supports 3 document types for XHTML HTML, frameset, transitional, and strict. Strict is specified when you want to illegalize use of deprecated tags. Deprecated tags are tags that W3C has earmarked for eventual removal from their specifications because these tags have been replaced by much more newer and functional tags.
</span>
<span />

<span>4.       </span>Frameset document type

As mentioned above in question 3, W3C supports 3 document types for XHTML HTML, frameset, transitional, and strict. Frameset document type is used to support frames on a page and allows the use of deprecated tags.


<span>5.       </span>Definition list

Definition list is an example of a list that offsets info in a dictionary like style. They are not often used as compared to unordered and ordered lists and are important in creating a glossary like list of definitions and items.

6.       Virus.

A virus is a malicious software code that multiplies and replicates by copying itself to another application, document, boot sector and changes how a computer should operate. Typically, a computer virus cannot reproduce without programming a document or a file.


<span>7.       </span>Width Attribute

This attribute specifies the width of an image and the height specifies the height of an image. Both are measured in pixels and the value must always be in pixel. It specifies the width of a cell attribute and is used to set a predefined width of a cell.


<span>8.       </span>Alt attribute

Commonly used with the <img> tag, the alt attribute specifies an alternate image or text, if the image is not in a position to be displayed. The required alt attribute provides info of an image if a user for known or unknown reasons cannot view it.


<span>9.       </span>Color property

It defines the text for an HTML element. It is specified by the color name, a HEX value and an RGB value. The most common ways amongst these three is the HEX value. You can also use color name by replacing the HEX code with the name of the color.


<span>10.       </span>Source Code

Source code is that HTML code which is translated into a graphical web page by a browser. It is possible to view the source code for any page from within the web browser. Using this feature,  it can help one check his or her own code or for another developer.











6 0
3 years ago
what is a paragraph on what i can write on what i learned from watching basic keyboard shortcuts using control functions video
finlep [7]

Answer:

Write the following nonsensical paragraph:

Explanation:

I learned how to navigate the computer efficiently. I learned how to use Ctrl + (key) to quickly do (something). ( Now reword that multiple times with different commands. ) Now I can harness my inner laziness to browse the computer at a faster speed.

6 0
4 years ago
Other questions:
  • How do Filament 3D printers build a model?
    8·1 answer
  • Betty removed a web page from her website. Some users were browsing on her website. One of them clicked on a particular link and
    15·1 answer
  • How do you add a new comment to a document?
    14·1 answer
  • Linela Insurance needs to hire twenty accountants immediately to support its accounts receivable process. The hiring and trainin
    7·1 answer
  • If I was to sort the months of the year in ASCENDING order alphabetically, which
    11·1 answer
  • What is a resume?A collection of all your professional and artistic works.A letter which explains why you want a particular job.
    6·1 answer
  • What menu and grouping commands is the "SORT" tool? ( please answering meeeee)
    9·1 answer
  • What is the output of the following C++ code? int list[5] = {0, 5, 10, 15, 20}; int j; for (j = 0; j &lt; 5; j++) cout &lt;&lt;
    11·1 answer
  • n (m,n) correlating branch predictor uses the behavior of the most recent m executed branches to choose from 2m predictors, each
    11·1 answer
  • Kate saves her work on a secondary storage device that is fairly new, and uses flash technology instead of disks.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!