hey i need help plz part 2
Author |
Message |
blazin
|
Posted: Wed Dec 01, 2004 11:04 pm Post subject: hey i need help plz part 2 |
|
|
1)write a program which will display a conversion table from miles to kilometres (1 mile = i.6 km ). design the program so that the values for miles increase by 5. the table will start with 5 and end with 100 miles
YOUR OUTPUT WILL LOOK LIKE THIS.
miles kilometres
5 " " 8.0
10 " " 16.0
15 " " 24.0
. " " .
. " " .
100 " " 160.0
2) modify the program in question #3 so that it will allow a user to specify the starting and ending values of the table. the user will also be able to specify the increments. A sample run of the new program might look like this.
SAMPLE OUTPUT
enter staring value of conversion table. 4
enter ending value of conversion table. 40
enter table increment. 2
MILES KILOMETRES
4 " " 6.4
6 " " 9.6
8 " " 12.8
. " " .
. " " .
38 " " 60.0
40 " " 64.0
thank u for ur time and ur help |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Delos
|
Posted: Thu Dec 02, 2004 12:29 am Post subject: (No subject) |
|
|
See my reply here. |
|
|
|
|
|
|
|