Course Solutions Uncategorized (Solved) : Exp1 Exp2 Cout Q29612641 . . . .

(Solved) : Exp1 Exp2 Cout Q29612641 . . . .

 

if((exp1) && (exp2)) cout<<“HELLO”, Bothexpressions need to be true to display Hello.

True or False?

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

True or False?

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

True or False?

if (gp <= 0) cout<<“ERROR”<<endl, else {cout<<gp<<endl,} will only display the positive grosspay.

True or False?

Declaring the variable status as char allows you to comparestatus with values such as ‘m’, ‘M’, or ‘2’.

True or False?

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

True or False?

One way to make a decision in a program

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post