EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
8th Edition
ISBN: 9781305480537
Author: FARRELL
Publisher: CENGAGE LEARNING - CONSIGNMENT
Expert Solution & Answer
Book Icon
Chapter 2, Problem 8RQ
Program Description Answer

The value 137.68 can be held by the variable types “float and double”.

Hence, the correct answer is option “D”.

Blurred answer
Students have asked these similar questions
The Body Mass Index – BMI is a parameter used to measure the health status of an individual. Various BMI values depicts how healthy or otherwise a person is. Mathematically BMI = WEIGHT/ HIEGHT * HEIGHT Write a java program using either JOptionPane or Scanner to collect the following values of an individual: 1.a. Namea  b. Weight c. Height 2. Compute the BMI of that individual 3. Make the following decisions if:  a. BMI < 18.5 is under weight b. BMI >=18.5 but <25 considerably healthy c. BMI >=25 but <30 overweight d. BMI >= 30 but <40 Obesity e. BMI >= 40 Morbid Obesity 4. Display the results of the individual 5. Explain your answer
The first option of your program will prompt the user to enter a positive binary number (base 2 -- I's and O's only) of no more than 6 digits. Read this value as an int type value and your program must make sure that it is indeed a binary number (only I's and Os). If it isn't, then the user is prompted again. If it is binary, then your program is to calculate the equivalent decimal value (base 10 -- the number system). MSB Binary Digit LSB 256 128 64 32 16 4 2 1 Representation of a binary number So for example, converting a Binary to Decimal number would be: Decimal Digit Value 256 128 64 32 16 8 4 2 Binary Digit Value O I1 o 0 1 0 By adding together ALL the decimal number values from right to left at the positions that are represented by a "1" gives us:(256) + (64) + (32) + (4) + (1) = 35710 or three hundred and fifty-seven as a decimal number. The second option of your program will prompt the user to enter 3 positive numbers in the rangel to 10, and will tell the user whether the…
4 -A mathematician and discovered a number which have unique properties. As he is not decided any name to that number, so for the time being we call that number ‘Cuboid’. A unique property of Cuboid is that, if we break that number into individual units like breaking 153 into 1, 5 and 3 and take their individual cube, then the sum would be the same as original number being given. Your task is to ask the user an integer and print weather the digit entered is Cuboid or not. (Python program)
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Microsoft Visual C#
    Computer Science
    ISBN:9781337102100
    Author:Joyce, Farrell.
    Publisher:Cengage Learning,
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,