Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 15:00, MrTeriffic
1. what are the biggest risks when using the public internet as a wide area network (wan) or transport for remote access to your organization’s it infrastructure?
Answers: 2
image
Computers and Technology, 22.06.2019 04:00, tiatia032502
Which of the following kinds of programs displays an online advertisement in a banner or pop-up window on webpages, email, or other internet service? e
Answers: 2
image
Computers and Technology, 22.06.2019 18:30, yeeet26
If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement. (there are no answer choices)
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, hannahliebl2000
Need asap write a short paper describing the history and differences between six sigma, waterfall, agile, and scrum models. understanding these models can give you a good idea of how diverse and interesting it development projects can be. describe what the rationale for them is and describe their key features. describe the history behind their development. at least 400 words
Answers: 1
Do you know the correct answer?
You might at first think that you could just cast the gallonspaintneeded variable from a double to a...

Questions in other subjects: