Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Who do you text with input 5 1950? I have the correct answer for testing with input 1 2000. swl with lM (8e) . Go

Who do you text with input 5 1950? I have the correct answer for testing with input 1 2000. image text in transcribed
image text in transcribed
swl with lM (8e) . Go with me Go New Tab zy zy My library My library > CS 145-002: Introduction to Computing for Engineers home > E zyBooks catalog 1.2: Programming basics 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) #include birthMonth; 9 cinbirthyear 10 11 cout "1-2000 12 cout CS 145-002: Introduction to Computing for Engineers home > 1.2: Programming basics E zyBooks catalog Run Testing with input 1 2000 Your output 1-2000 Testing with input 5 1950 Output differs. See highlights below Your output 1-2000 Expected output 5-1950 View your last submission v Newline character

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions