Question: Write a makefile to compile all programs and create an executable called Lab7. The source programs are called Term.h, Term.cpp, and Lab7.cpp. Documentation is required.

 Write a makefile to compile all programs and create an executable
called Lab7. The source programs are called Term.h, Term.cpp, and Lab7.cpp. Documentation

Write a makefile to compile all programs and create an executable called Lab7. The source programs are called Term.h, Term.cpp, and Lab7.cpp. Documentation is required. This includes header comments as well as inline comments in all methods. Every right curly brace must have a comment. Programs that do not compile on the CS Linux machines with g++ will receive a grade of zero. I do not discourage students from working at home on other platforms. However, you must upload your programs to a Linux machine and compile them before you submit. The Tem class represents a term in a polynomial such as 2x4 or 9x2. For the purpose of this assignment: Adding Terms can only be done if the exponents are the same. ax bx(a+b)x Subtracting Terms can only be done if the exponents are the same. ax" bx" (a-b) x the exponents aren't the same, the addition and subtraction operators should return a Term with 0 as the coefficient and 0 as the exponent. Multiplication ax" * bx" = (a*b) x (mm) Output a term in the customary format, using A to indicate the exponent (instead of a superscript). 2x 4or9x2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!