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

  Developing the fsm diagram

Develop the FSM diagram showing how to identify a DOS-like file name containing an optional leading drive letter and a colon, followed by an optional backslash, zero or more directory name isolated by the backslashes.

  What are all of ip addresses

What are all of IP addresses

  What are three goals of safety in computing?

What are three goals of safety in computing?

  Creating a program with a building as subclass

Assume the existence of the Building class. Describe a subclass, ApartmentBuilding that consists of following instance variables: an integer, a boolean, numFloors, an integer, hasElevator, unitsPerFloor, a boolean, hasCentralAir, and a string, man..

  Design a data structure which supports two operations

Design a data structure which supports two operations 1. Insert(S, x) inserts x into S. 2. Remove-Duplicates(S) removes from S all duplicated values.

  Consider the business impact of any situation

Consider the business impact of any situation

  Public vs. private or regulated vs. non regulated indust

Explain the differences in the information policy for a small organization vs. a large one? Whether you think an information policy may be different in a public vs. private or the regulated vs. non regulated industry?

  Describe what java environment contain to pass an arraylist

Describe what Java environment contain to pass an ArrayList

  What is mno

What is MNO.

  Produce a decision table

Produce a decision table

  Attributes and specifications of software package

Build a weighted ranking in accordance to your own evaluation of attributes and specifications of each software package.

  How to generate a class diagram for the entity classes

How to generate a class diagram for the entity classes

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