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

  Create an os-driven multitasking device

The main menu command driven task control menu should be implemented using a AVRX tasks and should control other AVRX tasks

  Difference between system software and application software

What is difference between system software and application software? How do you find out the operating system version that is installed on your computer.

  Develop a plan that by using the methods

Develop a plan that, by using the methods, tools and ideals covered in this course, integrates effective security and protection against the potential threats

  Paper on windows server infrastructure upgrade and redesign

Write a Proposal paper about Windows Server Infrastructure Upgrade and Redesign at EchoSoft. Design and maintain a Dynamic Host Configuration Protocol (DHCP) solution.

  Research a professional white paper

IFT300 Please research a professional white paper (academic) PDF format and with in the last two years that is relevant to this class and outline a 750 word.

  Design a system for managing software packages on a computer

You are designing a system for managing software packages on a computer. To that end, you will have information about the available software packages.

  Write down a public static method named chunk25

Write down a public static method named chunk25 that takes a double and returns an integer that represents the number of chunks of 25 in that number. A chunk of 25 is 25, or any part thereof

  Determine the ideal number of clusters

Determine the ideal number of clusters. Choose random center points for each cluster. (Note: Each student will select a different random set of centroids.) Using a standard distance formula measure the distance from each data point to each center ..

  Define how cultures affect team management

Review at least 6 academically reviewed articles on how cultures affect team management. Present a learning outcomes from the article reviewed above.

  How you use your internet

Should Internet access providers or telephone companies be allowed to monitor how you use your Internet or telephone connection? Why or why not?

  Write a function that load the contents of a given text file

Write a function that loads the contents of a given text file into memory. Once loaded into memory you should output the text to the Console Window.

  Make any dfa in jflap software and run for several inputs

Make any DFA in JFLAP software and run for several inputs. Take a screen shot and include in your assignment. Keep in mind that this assignment is meant to make you all get familiar with this software.

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