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

  Different visual basic command

Write down the visual basic command in order to Load a LVM file ( file name: Data.lvm), Delete the first 22 row , Insert a new column from 0 to last row of file with increment of 0.1 ( For example, if there are 25 rows in Data.lvm; then 25-22=3, it w..

  Impact of computer on people and organizations

Impact of computer on people and organizations

  Computer instruction format

In the computer instruction format, the instruction length is 11 bits and size of an address field is 4 bits? Is it possible to have the 5 2-address instructions 45 1-address instructions 32 0-address instructions utilizing the format.

  Questions on risc machine

Questions on RISC machine

  What changes have to be made to accept $ and cents

What changes have to be made to accept $ and cents

  Program that has a function named presentvalue

Program that has a function named presentValue

  Transcripting the case

The CTO of organization that has requested your services would like for your forensics team prepare a transcript of what you could state to CTO.

  Economic life of technology product

Explain what do you understand by the economic life of a technology product. Discuss how does economic life of the technology product is compared with the technology life and product life?

  Explain the averaging algorithm

Explain the averaging algorithm

  Designing an erd

xplain why all this normalization stuff is so significant?" he asks. "The old system worked “OK” most of time, and now you're telling me we require all these special rules. Why is this essential?" Develop the ERD in MS Visio.

  Programming field as career

Unfortunately, there are fewer women within the programming fields that there are men, encourage women to go into these fields

  Computing the effective address

An instruction is stored at the location 300 along with its address field at the location 301. The address field has value 400. A processor register R1 consists of the number 200.

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