: is the output of the following code if the user enters first as John and second as john? #include #include using namespace std; int

: is the output of the following code if the user enters first as John and second as john?
#include
#include
using namespace std;
int main()
3.
4
5 B {
6.
cout << " enter two names\n"; string first; string second; cin >> first >» second;
if (first
if (first < second) 7. 8. 9. 10 second) cout « "that's the same name twice\n"; %%3D 11 B 12 cout << first << is alphabetically before " <« second «'\n'; if (first > second)
13 B
14
cout <« first << is alphabetically after " « second «'\n'; 15 return 0; 16 } : Given the following code segment, what is the output after "result = "? int num1 3, num2 num2 = num1 + num3; 3, num3 = 3; %3D !! %3D num1 num1 + num2; %3D cout << "result = << (num1 < num2 ? num2 : num1) <« endl;

fivewriters
Calculate your essay price
(550 words)

Approximate price: $22

How it Works

1

It only takes a couple of minutes to fill in your details, select the type of paper you need (essay, term paper, etc.), give us all necessary information regarding your assignment.

2

Once we receive your request, one of our customer support representatives will contact you within 24 hours with more specific information about how much it'll cost for this particular project.

3

After receiving payment confirmation via PayPal or credit card – we begin working on your detailed outline, which is based on the requirements given by yourself upon ordering.

4

Once approved, your order is complete and will be emailed directly to the email address provided before payment was made!