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

  Flow chart in modular approach

Design an algorithm in order to prepare a daily hotel charge report. Input comprises of the series of records that consists of the room number, the customer name, cost of room.

  How many prefetches need to be outstanding

How many prefetches need to be outstanding

  Security management model

Write down the sites which will discuss the ongoing responsibilities of security manager, can be adapted for use within the security management model?

  Formal mission statement about soft-wear, limited

Explain how do the information systems help the people working individually and in groups make the decisions more efficiently? Write down a formal mission statement about the Soft-Wear, Limited (SWL).

  How to produce a wired and wireless network plan

How to produce a wired and wireless network plan

  Describing rules for developing websites

All the Web pages in the Web site consist of the word “Museum”. Write down a formula describing these rules. It must be a series of logical conditions which is equivalent to the rules.

  Write a program that reads in a list of positive integers

Write a program that reads in a list of positive integers. Write down a program which asks user to respond to a question by entering either 1 for yes or 2 for no.

  Designing an inventory management system

Xhemrock is a brake pad manufacturing company. This company utilizes the raw materials, like carbon powder, ash, iron, and resin. It wishes to design an inventory management system which will have the following attributes: The system must store th..

  Write down a recurrence relation

Write down a recurrence relation

  New eap authentication

When a new EAP authentication is added, software do NOT have to be altered on the: No software has to be changed on ANY device, Authenticator, Central authentication server, Client.

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Explain interval and arithmetic coding

Evaluate the cumulative distribution function and the binary intervals

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