# Ex : 6.22 (Temperature Conversions) Implement the following integer methods:a) Method celsius returns the Celsius equivalent of a Fahrenheit temperature, using the calculationcelsius = 5.0 / 9.0 * (fa

Ex : 6.22 (Temperature Conversions) Implement the aftercited integer processs:

a) Process celsius income the Celsius equipollent of a Fahrenheit sky, using the calculation

celsius = 5.0 / 9.0 * (fahrenheit - 32);

b) Process fahrenheit income the Fahrenheit equipollent of a Celsius sky, using the calculation

fahrenheit = 9.0 / 5.0 * celsius + 32;

c) Use the processs from volume (a) and (b) to transcribe an impression that enables the user either to invade a Fahrenheit sky and ostentation the Celsius equipollent or to invade a Celsius sky and ostentation the Fahrenheit equipollent.

Ex 6.25(Prime Numbers) A direct integer is first-rate if it’s discerptible by barely 1 and itself. For stance,

2, 3, 5 and 7 are first-rate, but 4, 6, 8 and 9 are not. The compute 1, by determination, is not first-rate.

a) Transcribe a process that determines whether a compute is first-rate.

b) Use this process in an impression that determines and ostentations all the first-rate computes

less than 10,000. How manifold computes up to 10,000 do you bear to cupel to secure that

you’ve institute all the first-rates?

Ex 5.24 (Diamond Printing Program) Transcribe an impression that stereotypes the aftercited diamond

shape. You may use output statements that stereotype a one asterisk (*), a one distance or a one newline mark. Maximize your use of verbosity (after a while nested for statements), and minimize the compute of output statements.