Determining output of program

Assignment Help Computer Engineering
Reference no: EM1318640

Consider that you have the following 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;

Provide answer to the following questions.

a) Explain the output if input is diamond?

b) State the output if input is diamond gold?

c) Sate the output if input is silver gold?

Reference no: EM1318640

Questions Cloud

Determining probability that spin is going to be red : If 16 out of 20 spins just came up black, determine the probability that next spin is going to be red?
Form of short-term medical care : Respite care is a form of short-term medical care for senior Americans that serve a very specific and important purpose. How would you describe the role of respite care?
Probability that electric brush chosen is defective : Find out the probability that: First electric brush chosen is defective?
Network-learning and high-involvement : Define these types of organizations: (1) network, (2) learning, and (3) high-involvement. What skills will you need to work effectively in these types of organizations?
Determining output of program : Explain the output if input is diamond? State the output if input is diamond gold?
Value of standard deviation for data : What value is standard deviation for this data? What type of probability is this?
Monroe motivates sequence : Imagine a product that might solve a common problem in your industry of interest. Write a sales letter using Monroe's Motivates Sequence, targeting a potential buyer of the product.
Reservations for offsite training : Cramtrack, the regional commuter train system, is trying to train users of its newly installed computer system. For the users to get the proper training, the systems analysts involved with the project sent a memo to the heads of the four departmen..
Estimating test statistic for null hypothesis : Estimate a test statistic for null hypothesis H0: μ = 30 against two-sided alternative hypothesis H1 : μ ≠ 30, and by plotting this on its reference distribution.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Studying the relational database

On the basis of this relational database; provide an expression in the relational algebra in order to express each of following queries: Determine the names of all students who have GPA greater than 3.

  How to produce a function mult-stream

How to produce a function mult-stream.

  Elements of physical security

Develop a physical security plan for manufacturing company. Your paper must include an explanation of the physical security and the different elements of the physical security.

  Reconfigur the network for your company

You could like to automate entry and updating of the routing information, however you are concerned regarding the excessive memory and the processor utilization in case you implement the dynamic routing protocols.

  Problems on word processing application

Problems on word processing application

  Predicate color and action paint using situation calculus

Predicate color and action paint using situation calculus

  How to utilize data mining tools and techniques

How to utilize data mining tools and techniques

  Operation for circular linked list

Write down an algorithm or code segment for searching the circular linked list for a given item. Write down an algorithm or the code segment for locating nth successor of an item within a circular linked list (nth item which follows the given item ..

  Write pseudo code - program and draw flow chart

Write pseudo code, program and draw flow chart for programs

  Determining different sales transactions

By using example of the retail clothing store in a mall, state the relevant data flows, data stores, processes, and the sources/sinks. Find out the different sales transactions.

  How a box of caramel delites girl scout cookies

How to a box of Caramel deLites Girl Scout cookies Every spring you looking forward to buying a box of Caramel deLites Girl Scout cookies

  Factors for building a server room

Explain the factors you must consider for each of the following given topics: Walls and doors, Access control

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