Question: Using Java and this website https://www.tutorialspoint.com/compile_java_online.php Program will be called Project2a a = 20, b = 8 Both a and b are integers Program to

Using Java and this website https://www.tutorialspoint.com/compile_java_online.php

Program will be called Project2a

a = 20, b = 8

Both a and b are integers

Program to compute:

1. Sum of a and b

2. Difference of a and b

3. Product of a and b

4. Quotient of a and b

5. Remainder of a and b (you use %)

6. You need: 5 variables: sum, difference, product,,quotient, and remainder

13. ==========================================================

14. // CSC 110 1300 Spring 2020 your name

15. // This calculates the sum, difference, product, // quotient, and remainder

16. public class project2a

18. {

19. public static void main (String[ ] args)

20. {

21. String name = CSC110, Jose Prez;

23. int a;

24. int b;

25. int sum;

26. int difference;

27. int product;

28. int quotient;

29. int remainder;

30. a = 20;

31. b = 8;

32. sum = a + b;

33. difference = a - b;

34. product =

35. quotient =

36. remainder=

37. // you should print all the 5 items you calculated40.

System.out.println (name);

41. System.out.println (..);

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!