Question: You will implement two programs in this project that are closely related. The first program is called ALU. This program accepts three arguments from the
You will implement two programs in this project that are closely related. The first program is called ALU. This program accepts three arguments from the command line. Two arguments are numbers while one argument is one of the operations from ‘+’, ‘-‘, ‘/’,’x’. Your main function should read these arguments, if the number of arguments is not 3, then your program should return the value -9999 and exit. If number of arguments is 3, then your program should perform the operation between the two numbers and return the result of the operation.
Step by Step Solution
3.44 Rating (163 Votes )
There are 3 Steps involved in it
The question seems incomplete as it only describes th... View full answer
Get step-by-step solutions from verified subject matter experts
