Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Computer Science I Onondaga Community Colleye Arith metic Exercises 1. Compute the value of each legal expression Indicate whether the value is an integer or

image text in transcribed

image text in transcribed

Computer Science I Onondaga Community Colleye Arith metic Exercises 1. Compute the value of each legal expression Indicate whether the value is an integer or a (loaing point value. Ir the expression is not legal. explain why. Flot c. 1035 2 5.9333f Lo+ d. 12.5 (2.5 (6.2 3.1)) 13,3 flo+ e. -4 * (-5 +6)-? int (10.0/3.0 2) /34445 FIDH 2. What value is stored into the int variable result in each of the following a. result 15 3 n b. result 73 2: Y33 Uin c. result2 7 5 37ir d. result 45 8 42 u int e" result 17 + (21 % 6) * 2; a3 in f result int (4.52.6 0.5) 5.g 5 1 3. Given he following variahle declarations int 1 4: int 17; float k 2.6 Determine the value of each expression hekow. If the result is a fkoating point value, include a decimal point in yw iswer a. 3 / float (1) b. 1.0 12 c. k 1 e. (12)1 h, 2*3-1%3 j. Determine the value of integer variable x alter each statement is performed. a. x 73 62 1; Int (k 0.5) + 4

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

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions