Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What are the outputs for the codes below? Also, how do I know for #1 and #3 if they are double or int? 1. System.out.print(15.7

What are the outputs for the codes below? Also, how do I know for #1 and #3 if they are double or int?

1. System.out.print(15.7 % 5);

a. .7

b. .3

c. 3

d. 0

e. 12

2. double x = 5 / 3;

System.out.print(x);

a. 0

b. 1

c. 1.66

d. 1.0

e. 2

3. System.out.print(9/11);

a. .8

b. 1

c. 2

d. 0

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

The Power Of Numbers In Health Care A Students Journey In Data Analysis

Authors: Kaiden

1st Edition

8119747887, 978-8119747887

More Books

Students also viewed these Databases questions

Question

1. Describe the factors that lead to productive conflict

Answered: 1 week ago