5/17/2017

BCS2233 OOP. Lab 17, 18 Mei 2017

1. Write a java program for the following problems:-

i) Print 1,2,3..20 using while loop
ii) Print 1,2,3..20 using do..while loop
iii) Print 1,2,3..20 using for loop

2. (Conversion from kilograms to pounds) Write a program that displays the following table (note that 1 kilogram is 2.2 pounds). The flowchart has been prepared for you.


Kilograms           Pounds
1                          2.2
3                          6.6
...
197                    433.4
199                    437.8






3. (Conversion from miles to kilometers) Write a program that displays the following table (note that 1 mile is 1.609 kilometers):  Prepare the flowchart first prior to java program.

Miles Kilometers
1 1.609
2 3.218
...
9 14.481
10 16.090

No comments:

Cara download Installer windows 10 dalam format ISO

1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan.  ...