Question: 2. Complete the following programs so that they can print out the expected results. 1) For any positive number of variable g, print out positive.

 2. Complete the following programs so that they can print out

2. Complete the following programs so that they can print out the expected results. 1) For any positive number of variable g, print out "positive". if (g ): print ("positive") 2) Identify the value for a given int type variable g. Print out positive" if it is positive otherwise, print out not positive. if (g print ("positive") print("not positive") 3) Identify the value for a given int type variable in g. If it is in the range of [0..100), print out the corresponding answer "Yes" otherwise, No. ): if print ("Yes") print("No") 4) Identify the value for a given int type variable "g". If it is in the range of 0..100), print out the corresponding answer "Yes" otherwise, "No". ): if ( print("Yes") print ("No") 5) Identify the value for a given "int" type variable in g. If it is in the range of. [0..100] [300..400], print out the corresponding answer Yes otherwise, No. ): if ( print ("Yes") print ("No") 6) Identify the value for a given int type variable in g. If it is in the range of [0..400] but not in [100..300], print out the corresponding answer Yes otherwise, No. ): if print("Yes")

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!