Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

s include 6 using nanespace std; s int main 10 int num num2 5 I/ numl is not instialized // num2 has been initialized to

image text in transcribed
s "include 6 using nanespace std; s int main 10 int num num2 5 I/ numl is not instialized // num2 has been initialized to s 3cout cc "Please enter an integer 3s endl: 14 cin >> num 15 19 if (numi num2) cout cc Hey, that's a coincidence end; 21 If (numi !-num2 ) cout se The values are hot the sane3 end return e 26 ) (l points) Exercise 2 & 3: Modify initialize app so that the user inputs both values to be tested (must have a prompt for each input). If the numbers are the same, print the lines shown in Exercise 3 of the lab manual. Test your modified program with pairs of same and different numerical values. Take a screen shot or attach the printout of the modifisd initialize.app below xercise 4: Replace the two if statements with a single if/else statement. Make sure you are (1 points) getting the same results as in exercise 2 and 3. Take a screen shot or attach the printout of the modified initialize. app

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

=+1 Why are local employment laws important to IHRM?

Answered: 1 week ago

Question

=+ Are some laws more important than others? If so, which ones?

Answered: 1 week ago