Determining the output

Assignment Help Computer Engineering
Reference no: EM1319578

Consider the following given statements:

string str1, str2;
cin >> str1 >> str2;
if (str1 == str2)
cout << str1 + '!' << endl;
else if (str1 > str2)
cout << str1 + " > " + str2 << endl;
else
cout << str1 + " < " + str2 << endl;

Explain the following:

a) Specify the output if input is diamond diamond?

b) State the output if the input is diamond gold?

c) State the output if the input is silver gold?

Reference no: EM1319578

Questions Cloud

Confidence interval of the mean head circumference : Determine a 90% confidence interval estimate of the mean head circumference of all two-month-old babies.
Computation of retained earnings : During 2006, Edgemont Corporation had revenues of $230,000 and expenses-Compute the retained earnings on December 31, 2005, and 2006.
Number of firms in market affect each firms demand curve : Elucidate how does N the number of firms in the market, affect each firms Demand curve. Explain why.
Computing net income-expenses incurred : Assume that retained earnings increased by $240,000 from December 31, 2005, to December 31, 2006, for Miller Corporation. During the year, a cash dividend of $140,000 was paid.
Determining the output : Specify the output if input is diamond diamond? State the output if the input is diamond gold?
Probability related to normal distribution : The airline must sell 150 seats to break even on this particular flight. On what percent of the flights does the airline make money?
Structural engineering design section within the engineering : The structural engineering design section within the engineering department of a regional electrical utility corporation has developed numerous standard designs
Preparation of cash flow statement and net cash flow : Preparation of Cash flow statement and computing net cash flow, From the following selected data, compute:
Age differences in problem solving ability : Mean = 14.2, s² = 5.92 and sum of X squared EX² = 2941.60. What can be concluded about age differences in problem solving ability?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Addressing and naming model

Sketch a plan for development of the addressing and the naming model in an environment of following given scenario: Ten (10) departments in the 1,000-employee organization. Equal separation by geography

  Execute the boolean functions

Execute the Boolean functions

  Program for dissimilar values for real numbers

Program for dissimilar values for real numbers

  Ssl protection

Explain whether pages are served over the SSL protected from problem you explained. If so, explain why; if not, explain why not.

  How to produce an average class with a public data

How to produce an Average class with a public data Produce an Average class with a public data member to collect the sum of integer entries and a public data member to hold the double average of the sum of the 10 integers.

  Write c program ''myls'' that functions like unix command ''ls''

Write C program 'myls' that functions like unix command 'ls'.

  Describe the mechanics of Buffer overflows

Prepare a complete tutorial, including an analogy to describe the mechanics and a graphic to support your analogy, on one of the subsequent areas

  What is meant by user cantered design

What is meant by ‘user cantered design'

  Why array names are not assignable variables in c

Why  array names are not assignable variables in c

  Describe mutual strategy to maintain enterprise-level system

Describe mutual strategy to maintain enterprise-level system

  Design a chart that showing input, output, and processing

Design a  chart that showing input, output, and processing

  What profit do you see with partitioned view

Explain your idea for a database along with your thoughts for a partitioned view. 1. How will you use this partitioned view?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd