Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can someone help me to do a makefile in binary? using putty with C language SSH Starting with programming assignment P02, each program must have

can someone help me to do a makefile in binary? using putty with C language SSH image text in transcribed
image text in transcribed
image text in transcribed
Starting with programming assignment P02, each program must have a makefile that contains directives to the make command. The makefile directives will have a target for each .c that will create the object file, a target to create the executable (binary) file using the object files created by the object targets and a target called clean to remove all object files. An example of a makefile is in your home directory in the demos subdirectory. Use it as a template. More help tutorials for makefile are available at makefile_Help.shtml and Wikipedia - makefile Program Name weightem Description The program will allow the user to convert metric weights to english or english weights to metric, Requirements In the po2 directory create the subdirectory exl . . Create the c program weightem.c in the p02/exl directory. Using the format and words displayed in the Example of Output, the program will do the following: Displays a message that indicates what the program will do. Give the user a menu of choices to select as follows: 1. Pounds to Kilos 2. Kilos to Pounds 3. Ounces to Grams. 4. Grams to Ounces 5. Exit - Do nothing (default) Receives a single character from the user for the selected answer which can be the digit or the first letter in the menu above. If the value entered does not match the valid values for the first 4 choices then the program will issue the thank you message and exit with a code of 1. Request a float value representing the value to converted. Convert the value received to the selected conversion value. For this program use the following conversion factors A pound is 0.4536 kilograms An ounce is 28.35 grams Display an appropriate message that indicates the received and converted values with appropriate names. See Example of Output. Ends with a thank you message, . . Make sure that your output as indicated on the aple output. Formats and wording are important CIS158 Programming Assignment - P02 Random Numbers & English/Metric Weight Conversion Example of Output Welcome to weightem. The program will convert weights from English to Metric or Metric to English, Indicate which conversion from the selection below. 1. Pounds to Kilos 2. Kilos to Pounds 3. Ounces to Grams. 4. Grams to Ounces 5. Exit - Do nothing (default) Your choice: 3 User entered value is 3 Enter the number of ounces to convert: 5.25 User entered value is 5.25 Answer: 5.25 ounces is 148.83 grams + Make sure to use the correct conversion and labels. Thank you for using weightem. 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

Step: 3

blur-text-image

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 Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

1. In taxonomy which are the factors to be studied ?

Answered: 1 week ago

Question

1.what is the significance of Taxonomy ?

Answered: 1 week ago

Question

What are the advantages and disadvantages of leasing ?

Answered: 1 week ago

Question

Name is needed for identifying organisms ?

Answered: 1 week ago