Question: if((exp1) && (exp2)) cout < max) max=number, else min=number True or False? When there are multiple choices as in a menu, the switch statement is

if((exp1) && (exp2)) cout<<"HELLO", Both expressions need to be true to display Hello.

True or False?

There is a logical error in: if (number>max) max=number, else min=number

True or False?

When there are multiple choices as in a menu, the switch statement is a better alternative to if.

True or False?

if (gp <= 0) cout<<"ERROR"<

True or False?

Declaring the variable status as char allows you to compare status with values such as 'm', 'M', or '2'.

True or False?

if (gp > 500 ) taxrate=0.20, else taxrate=0.05, will set a different taxrate depending on gp.

True or False?

One way to make a decision in a program is to use the if statement.

True or False?

The while loop is more compact than for loop, since it keeps the loop control statements together.

True or False?

When the condition of a loop becomes false, the execution continues at the statement after the loop.

True or False?

A dummy value that is used to stop a loop is known as a sentinel.

True or False?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!