Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Write a complete bash script to convert input centigrade temperature value to Fahrenheit temperature. The conversion formula is C x 9/5 + 32 =

2. Write a complete bash script to convert input centigrade temperature value to Fahrenheit temperature.

The conversion formula is C x 9/5 + 32 = F

You must loop thru the script until the user enters 1 or 0 (1 = continue, 0 = exit)

Here is a screen dump of an actual run.

$ ./celsius_to_fahrenheit.sh

Celsius to Fahrenheit Converter

===============================

What is the temperature in Celsius?34

Celsius 34 is Fahrenheit 93

Do you want to continue?(1 = yes, 0 = no) 1

Celsius to Fahrenheit Converter

===============================

What is the temperature in Celsius?67

Celsius 67 is Fahrenheit 152

Do you want to continue? (1 = yes, 0 = no) 1

Celsius to Fahrenheit Converter

===============================

What is the temperature in Celsius? 40

Celsius 40 is Fahrenheit 104

Do you want to continue? (1 = yes, 0 = no)

0

Thank You. BYE!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

An employee may not act in the capacity of agent.

Answered: 1 week ago

Question

Demonstrate how to use the Gaps Model for diagnosing and

Answered: 1 week ago