Question

In this question you will convert kilograms into pounds. Using an input weight stored in a variable kilos, convert kilograms to pounds and store the result in a variable called pounds . For example: i...

In this question you will convert kilograms into pounds. Using an input weight stored in a variable kilos, convert kilograms to pounds and store the result in a variable called pounds .

For example: if kilos = 2, then pounds = 4.4.

Matlab codes please!

0 0
Add a comment Improve this question Transcribed image text
Answer #1
%The user wiill input the weights in kilograms
kilos = input('Weight in Kilograms: ');
%converting kilograms to pounds
pounds = 2.20462*kilos;
fprintf('Weight in %f pounds\n',pounds)
Add a comment
Know the answer?
Add Answer to:
In this question you will convert kilograms into pounds. Using an input weight stored in a variable kilos, convert kilograms to pounds and store the result in a variable called pounds . For example: i...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Matlab fprintf help This is the question: I have already done part a, I need help...

    Matlab fprintf help This is the question: I have already done part a, I need help with part b. This is my current code: % array of Pounds to convert to Kilograms weight_pound = [50.543 65.676 75.343 80.937] % for Loop that calls from the array weight_pounds for index=1:4 %Convert weight from Pounds to Kilograms     weight_kg = weight_pound*0.453592 %Print out the conversion % ‘%5.2f’ for 2 decimals for Kilograms % ’%5.0f’ for no decimals in pounds     fprintf(‘%5.2f kg...

  • You want to write a converter program which will let user convert distance and weight from SI to ...

    Use functions to complete this C + + program You want to write a converter program which will let user convert distance and weight from SI to the USCS system and vice versa The formulae are as follows: 1. Distance in miles- distance in kilometers x 1.60 2. Weight in kilograms weight in pounds x 2.20 The program would let user input the number that they want to convert and then choose the units to and from which they want...

  • First, ask the user to input a DNA sequence and store it in a variable called...

    First, ask the user to input a DNA sequence and store it in a variable called DNA_seq. Though in actual practice you should check if an input contains only DNA nucleotides, you do not have to do this for this lab. Then complete the following: c)      Loop through the stored user input using “for j in range(len(DNA_seq))”. Within this loop, print out 3 statements: i) the current index number of the loop, ii) the character of DNA_seq at the current...

  • Hi can you convert this quiry into stored function called ( totalIncome ) using mySQL: select...

    Hi can you convert this quiry into stored function called ( totalIncome ) using mySQL: select hotelNo, sum(price) as 'Total Income' from room where roomNo in(select roomNo                from booking as b , hotel as h where deteFrom <=CURRENT_DATE() and dateTo >= CURRENT_DATE() and b.hotelNo=h.HotelNo and hotelName='Marriot') group by hotelNo;

  • c++ pls 10D yUur Tugt Sna you will have to re-take it at another time PROBLEM...

    c++ pls 10D yUur Tugt Sna you will have to re-take it at another time PROBLEM 1 Body Mass Index (BMI) is a measure of body fat that is useful in screening for health issues. To calculate a BMi, you need the height in inches and the weight in pounds. You square the height, then divide the weight in pounds by the squared-height. BMI is defined in terms of meters and kilograms, so to convert from pounds and inches to...

  • help me with the problem below my percent body fat is 95% I weight 160 pounds...

    help me with the problem below my percent body fat is 95% I weight 160 pounds my height is 5"2 There are several different ways to compute an ideal body weight. Method A of this laboratory enables you to compute and record your ideal body weight using skinfold measurements. (In Chapter 6 we discussed body fat percentage estimated from skinfold measurements.) Method B enables you to calculate and record your ideal body weight using the body mass index (BMI) procedure...

  • Y F G Prompt and Store. 5. Prompt the user with "Enter your weight in pounds:...

    Y F G Prompt and Store. 5. Prompt the user with "Enter your weight in pounds: "message and store in the weight variable. 6. Initialize an int variable named heightIn Inches to feet OſHeight times 12 plus Inches OfHeight. 7. Initialize a double variable named BMI to weight * 703.0 heightIrinches El VB 8. Initialize a double variable named ratio to height In Inches? 703.0 9. Initialize a double variable named lower Normal to 18.5 times ratio. 10. Initialize a...

  • Please write the code using matlab 1) i. Create an anonymous function named optimist, that accepts...

    Please write the code using matlab 1) i. Create an anonymous function named optimist, that accepts a single variable as input i Create a row vector Tthat represents the number of seconds in two minutes, starting ii. Call the function optimist on the vector T, store the result in variable R1 and returns the double of that variable from one and ending at a hundred and twenty v. Create an anonymous function named pessimist, that accepts a single variable as...

  • (2) Suppose, the game is updated so that every item, i, now has weight, wi], in kilograms (you ca...

    Please help with question 2 (c). (2) Suppose, the game is updated so that every item, i, now has weight, wi], in kilograms (you can assume you are passed the item weights in an array, w, of size m). You can only carry n kilograms of weight. (a) (1 point) Example: Let n Ξ 15, m 5. If the item values are v (5.30, 17, 32, 40) and the item weights are w - 2,4, 3,6,15} which should you choose...

  • QUESTION 6 15 marks In this question you have to write a C++ program to convert...

    QUESTION 6 15 marks In this question you have to write a C++ program to convert a date from one format to another. You have to write a complete program consisting of amain () function and a function called convertDate(). The function receives a string of characters representing a date in American format, for example December 29, 1953. The function has to convert this date to the international format. For example: If the string December 29, 1953 is received, the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT