4.5k views
4 votes
Create a variable pounds to store weight in pounds. Convert this to kilograms and assign the result to a variable kilos. The conversion factor is 1 kilogram = 2.2 pounds.

1 Answer

2 votes

Answer:

>>pounds=13.2

>>kilos=pounds/2.2

Step-by-step explanation:

Using Matlab to write the program, consider at any time when the weight in pounds is 13.2 lb, this variable of weight is created in MATLAB by typing >>pounds=13.2. To convert it from lb to Kg, we simply divide it by 2.2 hence the second command to created is kilos. For this, the output of the program will be 6 Kg.

User Babac
by
4.3k points