Question: EXERCISE 2 ( a ) Get three kilograms values from the user and keep it in an array called Kilo. ( b ) Access each

EXERCISE 2
(a) Get three kilograms values from the user and keep it in an array called Kilo.
(b) Access each of the kilogram values from array Kilo using a while loop, convert the kilogram into gram and store it in an array called Gram.
(c) Display all the values from array Kilo and array Gram.
Enter Kilograms : 3.4
Enter Kilograms : 2.0
Enter Kilograms : 1.55
3.40 kilograms equals to 3400.00 grams
2.00 kilograms equals to 2000.00 grams
1.55 kilograms equals to 1550.00 grams
Press any key to continue
 EXERCISE 2 (a) Get three kilograms values from the user and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!