I understand that I can use only this computer/laptop and ph…

I understand that I can use only this computer/laptop and physical calculator for the test; I am NOT allowed to use any online calculating tool, Artificial Intelligence or personal help, or other electronics during the test.  I have turned off (muted) and put away my cell phone, smart watch, tablet, headphone, etc. If not yet, I am putting them away now. I can have one blank scratch paper with me. Any books and notes are put away.  There are no other people in my room; if I am taking the test in public space, I will not talk to other people during the test. I understand that my test session will be recorded and reviewed, and I may receive a zero for the test if I violate anything listed above. 

Write the expected output for the following code.   String m…

Write the expected output for the following code.   String msg = “COP2250 Java Programming”; String msg1 = msg.toUpperCase(); boolean val = msg.equals(Cop2250 Java Programming); char ltr = msg.charAt(4); int strSize = msg.length(); System.out.println(msg); System.out.println(msg1); System.out.println(msg2); System.out.println(“Character at index 4 = ” + ltr); System.out.println(“msg has ” + strSize + “characters.”);

Write a Java program that takes an integer as input and chec…

Write a Java program that takes an integer as input and checks if it’s a positive number, a negative number, or 0.   public static void main(String[] args){Scanner keyboard = new Scanner(System.in);int input = keyboard.nextInt();if(input                                             ){System.out.println( );

What will be the expected output after the following stateme…

What will be the expected output after the following statements are executed?   char custType = ‘c’; switch (custType) {      case ‘A’:           System.out.println(“The customer type is A”);           break;      case ‘B’:      case ‘b’:           System.out.println(“The customer type is B”);      case ‘C’:           System.out.println(“The customer type is C”);      default:           System.out.println(“The customer type is D”); }