subject

You might at first think that you could just cast the gallonspaintneeded variable from a double to an integer type. however, that would merely cut off the decimal portion of the value, resulting in an underestimate of the number of cans needed. you might also consider rounding the number, but that would not work for the sample output provided above since normal rounding rules would suggest 2.0 cans, an underestimate. so, the computational problem you are faced with is to calculate the number of cans and round up to the nearest whole number. in order to determine if that method for rounding up exists as part of one of java’s core classes, we need to consult the documentation. there might be a single method that we can use or we might have to use more than one method.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
Which option marks all modification made within a document? review comment track changes balloons
Answers: 1
question
Computers and Technology, 22.06.2019 11:40
Pthreads programming: create and terminate a thread write a c++ program that creates a thread. the main will display a message “hello world from the main”. the main will create a thread that will display a message “hello world from the thread” and then terminates with a call to pthread_exit()
Answers: 3
question
Computers and Technology, 23.06.2019 01:50
Free points just awnser this. what should i watch on netflix
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
You know the right answer?
You might at first think that you could just cast the gallonspaintneeded variable from a double to a...
Questions
question
Mathematics, 15.05.2021 18:20
question
Mathematics, 15.05.2021 18:20
question
English, 15.05.2021 18:20
question
Mathematics, 15.05.2021 18:20
question
Arts, 15.05.2021 18:20
question
Arts, 15.05.2021 18:20