Question: Command Line Arguments In this lab you will write a small utility program that will convert temperatures from Fahrenheit to Celsius or Celsius to Fahrenheit.

 Command Line Arguments In this lab you will write a small
utility program that will convert temperatures from Fahrenheit to Celsius or Celsius
to Fahrenheit. The name of the program should be tempcony (temperature conversion).

Command Line Arguments In this lab you will write a small utility program that will convert temperatures from Fahrenheit to Celsius or Celsius to Fahrenheit. The name of the program should be tempcony (temperature conversion). The program should be run as follows. tempconv -t -c2f-f2c - ? Example To convert a termperature from 0 degrees Celsius to Fahrenheit execute tempcony -t 0-c2f Output should be A temperature of 0 degrees Celsius is equal to 32 degrees Fahrenheit. To convert a temperature from 70 degrees Fahrenheit to Celsius execute tempcony -t 70-f2c Output should be A temperature of 70 degrees Fahrenheit is equal to 21.11 Celsius. Note it should not matter what order you put the tand -c2f. By that I mean tempcony - 0-c2f should give the same result as tempconv-c2f-to tempcony - ? Should produce some kind of output that explains how to use the tool. You may format that output anyway you want. Formula's To convert temperature from Fahrenheit to Celsius use the following formula C = -(F - 32) To convert a temperature in Celsius to a temperature in Fahrenheit use the following formula F = =C + 32 #include using namespace std

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!