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
posledela
3 years ago
7

Write two cin statements to get input values into birthMonth and birthYear. Then write a statement to output the month, a dash,

and the year. End with newline. The program will be tested with inputs 1 2000 and then with inputs 5 1950. Ex: If the input is 1 2000, the output is: 1-2000 Note: The input values come from user input, so be sure to use cin statements, as in cin >> birthMonth, to get those input values (and don't assign values directly, as in birthMonth = 1). 1 2 3 4 5 6 7 8 9 10 11 #include using namespace std; int main() { int birthMonth; int birthYear; /* Your solution goes here */ return 0; }
Computers and Technology
1 answer:
vlada-n [284]3 years ago
5 0

Answer:

#include <iostream>

using namespace std;

int main()

{

   int birthMonth, birthYear;

   cout << "Enter your Birth Month and Year" << endl;

   cin>>birthMonth;

   cin>>birthYear;

   cout<<birthMonth;

   cout<<"-";

   cout<<birthYear<<endl;

   return 0;

}

Explanation:

Using C++ Programming Language, Firstly we declare to variables to hold the values for the birthMonth and birthYear. We then used a cout statement to prompt the user to input values for month and year, then three cout statements are used to display the  output according to the question's specification.

You might be interested in
Examine the following output:
bixtya [17]

The report shows that SERVER1 has six active TCP connections. The first two are in the state TIME WAIT, the third is in the state CLOSE WAIT, and the final three are in the state ESTABLISHED.

TCP: What is it?

One of the key protocols in the Transmission control protocol / internet family is the Transmission Control Protocol. (TCP). It was first used to supplement the Internet Protocol in network protocol deployments (IP). TCP/IP is the name given to the full suite as a result. Software running on hosts communicating via an IP network can transmit a stream of octets (bytes) in a reliable, orderly, and error-checked manner using TCP. TCP is a key component of popular internet services like the World Wide Web mail, remote management, and file transfer.

To know more about TCP
brainly.com/question/28119964
#SPJ4

8 0
1 year ago
Why is color theory important
pychu [463]
The Importance of Color Theory in Painting. Color Theory was a required foundations course in the Visual Communication Design program at BYU, so all the design students took it–the interior designers, graphic designers, industrial designers, and the illustrators.
3 0
4 years ago
Read 2 more answers
What is a fax machine used for
pickupchik [31]

Answer:

A fax machine is used to send documents over a phone network.

Explanation:

The transmission that is sent is called "Faxes"

The easiest way to understand this is by having one person print a document at someone else's house. It is also a live time like a telephone, or like a text message.

4 0
3 years ago
HELP ME PLEASE !!!!!!!!!!
Snezhnost [94]

Answer:

the last one

Explanation:

8 0
3 years ago
Which type of network treats all processors equally, and allows peripheral devices to be shared without going to a separate serv
Elis [28]
The correct answer is P2P or peer-to-peer servers.

Hope I helped ;)
7 0
3 years ago
Other questions:
  • You can add envelopes to existing documents. <br> a. True <br> b. False
    10·1 answer
  • Which cost of purchasing a franchise would you still have if you start your own business​
    12·1 answer
  • Create a dictionary password cracker or a brute force
    13·1 answer
  • People who enjoy working with their hands might enjoy a career as a/an
    9·1 answer
  • Individual internet users connect to isps through a(n ________.
    11·1 answer
  • Given a constant named size with a value of 5, which statement can you use to define and initialize an array of doubles named ga
    12·1 answer
  • I NEED THIS ASAP PLS
    12·1 answer
  • A serial schedule:
    8·1 answer
  • Which of these is most likely to contribute to the long term of a local ecosystem?
    5·1 answer
  • Which type of attack can be addressed using a switched ethernet gateway and software on every host on your network that makes su
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!