kindly Who can solve these programs in Java?? :crying::crying:
1-Write a java program that reads and calculates the sum of integer numbers(using while loop)(JOptionPane(input).
Note :the input (-1) signifies the end of the input.
2-Write a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computer the total and average of the input values, not counting zeros. Your program ends with the input 0. Display the average as a floating-point number.(For example, if you entered 1,2 and 0 , the average should be 1.5) (JOptionPane or Scanner(input))
3-(Conversion from miles to kilometers) write a program that displays the following table (note that 1 mile is 1.609 kilometers)(JOptionPane or Scanner(input):
Miles......Kilometers
1...........1.609
2........... 3.218
.
.
.
9............14.481
10..........16.09
Please Please help meeeee:crying:
Edited by Ebda3, 13 April 2011 - 09:57 PM.


Sign In
Create Account


Back to top









