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
irina [24]
3 years ago
5

. Suppose that name is a variable of type string. Write the input statement to read and store the input Brenda Clinton in name

Computers and Technology
1 answer:
prohojiy [21]3 years ago
3 0

Answer:

The program to this question can be given as follows:

Program:

//header file

#include <iostream> //defining header file  

using namespace std;  

//main

int main() //defining main method

{

   string name; //defining main method

   cout<<"enter name: "; //print message

   getline(cin,name); //using getline method

   cout<<"The name you inserted is: "<<name; //print value

   return 0;

}

Output:

Please Enter Name: Brenda Clinton

The name you inserted is: Brenda Clinton

Explanation:

Firstly the header file is included in the above C++ program code, in the next line the main method is defined, inside this method the string variable is defined which takes value from user-ends.

  • In the above specifies the getline method, which can be referred to as a standard library feature for reading an input stream string or a line. It removes characters from the input stream and applies this to the string object until the character is delimited.
  • After taking input the print method "cout" is used to print "name" variable value.

You might be interested in
In which of the following scenarios would you use the Redo function?
MakcuM [25]
D. <span>You have just used the Undo function to delete a paragraph, and you want that paragraph back.</span>
6 0
3 years ago
Wi-Fi is designed for medium-range transfers, up to ____ feet outdoors. Answer 100 300 500 900
Papessa [141]
Wi-Fi is designed for medium range transfers up to 900 feet out doors. ANSWER: 900 feet
6 0
3 years ago
The power on any voltage rail of the hard drive is calculated by multiplying _____. (a). Voltage X Current (b). Voltage X Watts
Papessa [141]

Answer:

(a). Voltage X Current

Explanation:

Power -

In the concept of physics , power is denoted by P ,

Power = Voltage * Current

Power = V * I

The unit is Ampere  *  Voltage

Power is defined as the rate of work done , i.e. , work divided by time .

Power = work / time .

Power is a scalar quantity .

The standard unit of power is Watt , which is denoted by W .

6 0
3 years ago
The smallest unit of time in music called?
zmey [24]

Answer:

Ready to help ☺️

Explanation:

A <em>tatum</em> is a feature of music that has been defined as<u> the smallest time interval</u> between notes in a rhythmic phrase.

7 0
2 years ago
Read 2 more answers
I will give brainliest !!
OverLord2011 [107]
Do these questions have given answers already?
3 0
2 years ago
Other questions:
  • During the processing stage what does the computer do
    12·1 answer
  • Using Gen/Spec, classes can be organized by using a peer-to-peer inheritanc True/false
    10·1 answer
  • What is a biometric scanner?
    8·2 answers
  • Which statement describes what happens if multiple users make changes simultaneously to a presentation when
    10·1 answer
  • Which shape denotes a process to be carried out in a flowchart?
    7·2 answers
  • Easy 25 points answer what is it called that you use only 1 and 0 like this 1010010011001100011110001010010101001010101010010101
    5·1 answer
  • A _____ refers to a product or service, such as a technical report, a training session, a piece of hardware, or a segment of sof
    12·2 answers
  • Which option is the default when creating appointments and meetings in a user’s own calendar as it relates to Free/Busy informat
    8·1 answer
  • Can someone tell me how to get rid of the the orange with blue and orange on the status bar
    14·2 answers
  • Please help fast
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!