Question: Northeastern Illinois University CS-200: Programming I Basic Programming Problems Problem 1. SumSpaced 1. Write a program that has the class name SumProduct and that has

Northeastern Illinois University CS-200: Programming I Basic Programming Problems Problem 1. SumSpaced 1. Write a program that has the class name SumProduct and that has the main method. 2. The program should prompt the user to enter two (2) non-negative integers. The program should print out the 2 numbers that the user entered Then, it should first print the product of the numbers. Finally, it should print the sum of the numbers. 3. Several sample runs are provided for you below. Format your output to match the sample output. Note that your code should work for any value and these are just samples (you hard-code your values in your code). Enter two integers: 7 9 Enter two integers: 12 11 You entered 7 and 9 You entered 12 and 11 The product is 63 The sum is 16 The product is 132 The sum is 23 Problem 2. Given the following variable declarations, what is the value of each of the following independent expressions? int u = 2, v = 3, w = 5, x = 7, y = 113; String s = "Spring": 17Sprin aSpring Spring 3 5prin ring u+v+ w + x +s 2+ Spring +B + 7 3. Spring +5 u+s+w + x S+w +V 3+ Spring v +S
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
