Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a shell script that will convert weight from lbs to kilos. The program sho

ID: 3537169 • Letter: W

Question

          Write a shell script that will convert weight from lbs to kilos. The program should prompt the user for a weight in pounds and then print out the weight in pounds and it%u2019s equivalent in kilograms. The program should then repeat, asking for another weight, until the user enters q or Q, at which point it should stop.   Here are some hints to help you with the program

Weight in pounds: 2.2        Weight in Kilos: 1.0


The software that I use is Putty. Suppose that I want to put this program in VI editor and my shell default is tcsh. Please try to be as as simple as possible. I'm really suck at programming. What command should I type after put it in VI to execute the program.

Explanation / Answer

lbs=0 kilo=0 echo "lbs to kilo" echo -n "Enter number in lbs : " read n kilo=lbs/2.2 echo "$lbs is equivalent kilo

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote