Create a simple makefile to compile your program

Assignment Help Computer Engineering
Reference no: EM132196787

Question :

Write a C program that runs on ocelot for a mini calculator using only the command line options. You must use getopt to parse the command line.

Usage: minicalc [-a num] [-d num] [-m num] [-s num] [-e] value

• The variable value is the starting value.

• Value should be validated to be an integer between 1 and 99. Error message and usage shown if not.

• -a adds num to value.

• -d divides value by num.

• -m multiplies value by num.

• -s subtracts num from value.

• -e squares value. (Note: no num is needed.)

• Output should have exactly 2 decimal places no matter what the starting values are.

• If -e is included, it is executed first.

• Use standard order of operations for all operations.

Code should be nicely indented and commented. Create a simple Makefile to compile your program into an executable called minicalc.

The Makefile should be called Makefile with no extension. I should be able to type make at the command line to compile your program.

Reference no: EM132196787

Questions Cloud

What is the proobability of acceptance on the first sample : What is the probability of final acceptance? calculate the probability of rejection on the first sample - what is the proobability of acceptance on the first
Bad news announcement-fringe benefits : Written Assignment: Bad News Announcement—Fringe Benefits When your organization moved to its building in Dallas three years ago,
What is the equivalent annual benefit : A company's current revenue is $91,890 per year. Because new competitors have entered the market, It expects this to decrease by $3,477 per year over the next.
Organization for some walmart employees for several years : OUR Walmart has been acting as an SEIU “shadow union” organization for some Walmart employees for several years.
Create a simple makefile to compile your program : Code should be nicely indented and commented. Create a simple Makefile to compile your program into an executable called minicalc.
Find the financial statements for publicly traded company : Find the financial statements for a publicly traded company, and calculate the company's z-score.
What is the value of the long-run break-even price : Suppose marginal cost and average cost are given by the following expressions: MC(x) = 3x^(1/2), AC(x) = 2x^(1/2). What is the value pf the long-run break-even.
Write a program to store 10 student names : Write a C++ program to store 10 student names and grade point averages (GPAs) from the user.
Write a c program that will update a bank balance : Write a C program that will update a bank balance. A user cannot withdraw an amount of money that is more than the current balance.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Design the logic for a program that merges the files

Design the logic for a program that merges the files for summer and winter programs to create a list of the first and last names of all participants.

  How do you think the hacker got into the computer to set

a hacker had installed a program on the computer that made it automatically send out tons of spam email without the computer owner's knowledge

  How many lines are there in the cache

A 16 MB main memory has a 32 KB direct-mapped cache with 8 bytes per line. How many lines are there in the cache? Show how the main memory address is partition.

  Develop a control-break awk program that reads empn list

Develop a control-break awk program that reads empn.lst and prints a report that groups employees of the same department.

  Write a static web page that includes the basic structure

Write a static Web page that includes the basic structure of a valid HTML (not XHTML) document. Make sure to include the language attribute of the html element.

  Program to generate professor rating class

Write down the program which generates a Professor Rating class containing of the professor ID and three ratings. The three ratings are utilized to evaluate the easiness, helpfulness, and clarity.

  Write each english language statement as a predicate wff

Using the predicate symbols shown and appropriate quantifiers, write each English language statement as a predicate wff.

  For your assiggnment consider the following writing two

for your assiggnment consider the following writing two pagesdefine a decision support system dss.what is the

  Describe or list any false positive information

Describe or list any false positive information. Discuss potential safeguards and remediation actions that could be implemented for each finding to reduce the risk.

  The application must calculate the average

make a Java Application that will ask the user for his or her name and to enter in three numbers. The application should calculate the average and then output the value to the user.

  Scope of work for penetration test

Scope of Work for Penetration Test

  Questionmicrosoft windows server 2008 network

questionmicrosoft windows server 2008 network infrastructure configuration case studyyou work for a company that has

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd