Answered step by step
Verified Expert Solution
Link Copied!

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

  1. 42 / 5

  2. 42.0 / 5

  3. 42 % 5

  4. 40 % 5

  5. 1 % 2

  6. 2 % 1

  7. 45 + 4*4 - 2

  8. 45 + 43 % 5 * (23 * 3 % 2)

  9. Math.sqrt(10)

  10. Math.pow(5,2)

  11. Math.pow(20.0,100)

  12. Math.pow(20.0,1000)

  13. Math.pow(0.1,300)

  14. Math.pow(0.1,400)

  15. 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.

  1. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Upgrade Migration And Transformation Tips And Techniques

Authors: Edward Whalen ,Jim Czuprynski

1st Edition

0071846050, 978-0071846059

More Books

Students also viewed these Databases questions