Andrew K.

asked • 02/09/21

Conditionals_Lab_1

Write a program that randomly generates an integer between 1 and 499. 



  1. If the random number square root has no decimal values (eg. 64 is 8, 9 is 3). Output the random number, its square root, and a statement indicating it has no decimal values.
  2. If the random number square root has decimal values (eg. 65 is 8.06225). Output the random number, its square root rounded to two decimal places and a statement indicating it has decimal values.


1 Expert Answer

By:

Patrick B. answered • 02/09/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Ethan H.

is there a simpler way to do it
Report

02/09/21

Ethan H.

Is there an easier way so my teacher doesnt think im getting help from others
Report

02/09/21

Patrick B.

smh
Report

02/09/21

Patrick B.

ok take a look at the NEW ONE above
Report

02/09/21

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.