Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

nr:Su College of Engineerr ty library CSCE 1030 home > 2.5. Floating-point (doub

ID: 3881376 • Letter: N

Question

nr:Su College of Engineerr ty library CSCE 1030 home > 2.5. Floating-point (double) PASTTCATION 2.51: Declaring and assigning double variables All variables are of type double and already-declared unless otherwise noted. 1) Declare a double variable named personHeight. ACTIVITY Press again to show the ans Check Show answer 2) Declare a double variable named packageWeight and initialize the variable 7.1 Check Show answer 3) Assign ballRadius with ballHeight divided by 2.0. Do not use the fraction 1.0/2.0, instead, divide ballHeight directly by 2.0 Check Show answer 4) Assign ballRadius with ballHeight multiplied by one half, namely (0.0/ 2 0) Use the parentheses around the fraction ere to search 5 6 7 8 9 0

Explanation / Answer

1). double personHeight;

2). double packageWeight = 7.1;

3). ballRadius = ballHeight/2.0;

4). ballRadius = ballHeight*(1.0/2.0);