c………….

  • Job DurationLess than a week
  • Project LevelBasic Level
  • Project deadlineExpired

Project detail

In this program, you’ll be required to make a calculator. This calculator ought to have the following command line options:

-d: No checks: Turns off all error messages (but still does not do illegal operations)

-h: Help: a command which displays a help message on how to run the program

Your calculator ought to prompt the user as to whether they would like to add, multiply, divide, subtract, and get the remainder (modulus) any two numbers provided by the user. The menu provided to the user ought to ensure that the user has given a meaningful input (that is, that they’re not entering wrong numbers) as well. Additionally, each action must be its own function AND have tests testing each function. Your tests and helper functions need to be in a separate file!

Details:

The menu should prompt for a string (add, multiply, divide, subtract, remainder, quit) for its menu selection and then prompt for the numbers. If an invalid string is entered, then you should output the appropriate error message.

Your program will also be required to have a makefile for compiling, and you must also use version control!

Skills Required

PHP

Industry Categories

Languages required

Freelancer type required for this project