Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use a simple java program to find out the results of the following expressions. Submit your answers, not the program. (10 points) eg) 10/3 =
Use a simple java program to find out the results of the following expressions. Submit your answers, not the program. (10 points)
eg) 10/3 = 3.33333333333333335
-
42 / 5
-
42.0 / 5
-
42 % 5
-
40 % 5
-
1 % 2
-
2 % 1
-
45 + 4*4 - 2
-
45 + 43 % 5 * (23 * 3 % 2)
-
Math.sqrt(10)
-
Math.pow(5,2)
-
Math.pow(20.0,100)
-
Math.pow(20.0,1000)
-
Math.pow(0.1,300)
-
Math.pow(0.1,400)
-
3+4x5-10(y-5)(a+b+c)x+9(4x+9+xy) while x=10, y=20, a=30, b=40, c=50
* Your code is correct if it gives 442.4 when x=1, y=2, a=3, b=4, c=5.
-
3+4x5-10(y-5)(a+b+c)x+9(4x+9+xy) while x=y=a=b=c=100.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started