Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 5 1 pts Use the code below to answer this question. int id - 0 ; cout < < ID: ; cin

Question 51 pts
Use the code below to answer this question.
int id -0;
cout <<"ID: ";
cin >> id;
if (id ==1)
cout << "Janet";
else if (id ==2|| id ==3)
cout << "Mark";
else if (id ==4)
cout << "Jerry";
else
cout << "Sue";
//end if
What will the above code display when the id varible contains the number 4?
Group of answer choices
Janet
Jerry
Mark
Sue

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

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

What is focal length? Explain with a diagram and give an example.

Answered: 1 week ago

Question

What is physics and how does it apply in daily life?

Answered: 1 week ago