TonyLa.com

Java Programs - Simple Computations using arithmetic operators

Back To Index
 
ProblemCode
Write a program that displays the sum and difference of two integers input by the user. Use pop-up windows to get the values.
Write a program that displays the product and ration of two integers input by the user. Use pop-up windows to get the values.
Write a program that coverts a temperature in Fahrenheit to Celsius. Input will be from a dialog box. Here is the formula for the conversion
	         C = 5.0/9.0 * (F - 32)
	
Write a program that finds the average of three integers. The Scanner class will be used to get the input from the user. The average will be rounded to two decimal places.
Basically the same as AverageOfThreeIntegers except a pop-up window is used to get the values and the short cut operator += is used.
 
Back To Index

Site Designed by: Tony Larrain tony@tonyLa.com
Copyright © Anthony (tony) Larrain 2004 - 2005