Question: question 1 question 2 question 3 Answer both parts Part A. Assume the following lines are a part of the main method. Test this by

question 1  question 1 question 2 question 3 Answer both parts Part A.
question 2
Assume the following lines are a part of the main method. Test
question 3
this by executing it. Use one input value that will result in

Answer both parts Part A. Assume the following lines are a part of the main method. Test this by executing it. Use one input value that will result in a successful execution and one that results in a failure. Your answer must include everything that a user would see on the console for each of the two executions Part B. Now uncomment the line where val is reset to 6 . What would the effect be? What will be the values of ans, num 1 , and num 2 after the following statements are executed? int ans =0; int num 1=50; int num 2=50; if (num 1> num 2 ) \{ ans = num 1+10; num 1= num 2; f else \{ ans = num 2+10; num 2+ num 1; ans =45, num 1=50, and num 2=50 ans =60, num 1=0, and num 2=50 ans =60, num 1=50, and num 2=100 ans =45, num 1=50, and num 2=0 What is the result of the following expressions: (15>=22+32)&&(false12%5==2) (true && false) II (not false &&13/2==0 ) You must show your work

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!