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
Phoenix [80]
4 years ago
12

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

h, 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 scanf statements, as in scanf("%d", &birthMonth), to get those input values (and don't assign values directly, as in birthMonth = 1).

Computers and Technology
1 answer:
Llana [10]4 years ago
8 0

Answer:

The program can be found in the explanation part while the output is attached as files.

Explanation:

The program to display the birth month and year, is given below:

//Include the necessary library files.

#include "stdafx.h"

#include <iostream>

using namespace std;

//Start the main() function.

int main()

{

//Declare the necessary variables.

int birthMonth;

int birthYear;

//Prompt the user to enter the birth month.

cout << "Enter the birth month: ";

//Store the input.

cin >> birthMonth;

//Prompt the user to enter the birth year.

cout << "Enter the birth year: ";

//Store the input.

cin >> birthYear;

//Display the output.

cout << "The birth date is: " << birthMonth << "/" << birthYear << endl;

system("pause");

return 0;

}

You might be interested in
Audrey would like to save her document. She should choose the Save command from the _____. folder menu window directory
Damm [24]

Answer:

File folder

Explanation:

6 0
3 years ago
What's your fav show?
mezya [45]

Answer:

<h3>ITS DEPENDS IF I'M INTERESTED</h3>

Explanation:

HBU?^_________^

6 0
3 years ago
Read 2 more answers
Suppose we are comparing the implementations of insertion sort and merge sort on the same machine(You don’t need to know the alg
Anuta_ua [19.1K]

Answer:

123456789o0

Explanation:

4 0
3 years ago
How does one decide which businesses to invest in.
GREYUIT [131]
As you consider your options, here are seven things you should know about a company before you decide to invest:
Earnings Growth. Check the net gain in income that a company has over time. ...
Stability. ...
Relative Strength in Industry. ...
Debt-to-Equity Ratio. ...
Price-to-Earnings Ratio. ...
Management. ...
Dividends.
3 0
3 years ago
You have just changed the system time within your computer's BIOS. You choose to save the settings upon exit. What happens next
vazorg [7]
The system reboots with the time changed
8 0
3 years ago
Read 2 more answers
Other questions:
  • By apply styles, _____________ formats are being applied each time.
    6·1 answer
  • Hard drive storage is considered to be solid state. true or false
    8·1 answer
  • Which kind of system software tells the computer how to communicate with peripherals, such as a prero
    6·2 answers
  • Boardman College maintains two files—one for Sociology majors and another for Anthropology majors. Each file contains students'
    5·1 answer
  • What is the key function of a sales team?
    13·1 answer
  • Which Call of Duty game is the best?
    6·1 answer
  • Need the answer ASAP!!!
    14·1 answer
  • Education leads to higher wages lower unemployment.* True or false
    5·1 answer
  • Cui documents must be reviewed to which procedures before destruction?
    13·1 answer
  • What is the difference between encoding and decoding?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!