Question: **JAVA ONLY PLEASE ** Build a single program using Eclipse, that will perform the following tasks. Remember to include your IPO charts and Algorithms. I

**JAVA ONLY PLEASE**

Build a single program using Eclipse, that will perform the following tasks. Remember to include your IPO charts and Algorithms.

I -- Read from the keyboard an input of Fahrenheit degrees, as an integer, and then display degrees Celsius as a floating point to the terminal screen.

Use the formula DegreesC = (5*(DegreesF 32)/9) ****Note: You need to be careful of how you use literals and variable types. Refer to your notes and the book(pages 67 - 68) on type casting****

Format your output to two decimal places.( ie 2.45, 3.00 ect.)(Hint: Use printf as explained on page 103 of the textbook)

II -- Read a four digit binary number, as an integer, and then display it's decimal value. Hint: use division and modulus operators(Pages 70 - 75). Note that a four digit binary number "abcd", has the decimal value of a*2^3 + b*2^2 + c*2^1 + d*2^0. Where "^" denotes a power operator. However, Java has no power operator. You may use the Math class method pow(number, exponent) to raise a number to a power(pages 410 - 413).

III -- Read a four digit integer from the keyboard and then display it vertically on the terminal screen. (Hint: use division and modulus operators to separate the individual digits.)

IV -- Have the user enter the price of an item, in cents. Then have the user enter the amount tendered, in cents. The program should then return the change amounts in Quarters, Dimes, Nickels, and Pennies.

A sample run of the program should look something like:

Please enter a Fahrenheit temperature as an integer.

33

33 degrees Fahrenheit is equal to 0.56 Celsius.

Please enter a four digit binary number:

1001

The binary number 1001 has the decimal value 9.

Please enter a four digit integer.1234

1

2

3

4

That looks better that 1234.

Please enter the price of the item you wish to buy(in cents):

43

Enter the amount given:

100

Your change is:

57 cents as:

2 Quarters

0 Dimes

1 Nickels

2 Pennies

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!