[Solved] C Programming Language Problem Usual Wario Concerned Nothing Acquiring Money Order Maximiz Q37175468
In C++ programming language:
Problem: As usual, Wario is concerned about nothing other thanacquiring more money. In order to maximize profits, Wario needs touse calculus to create derivatives for analysis. Unfortunately,Wario never took calculus; there wasn’t much need of it in theMushroom Kingdom. So, Wario is calling on you to help him bycreating a program to create derivatives.
Details
• This project must use two classes o Linked List class
o Node class • Linked List class
o Head pointer
o Overloaded Constructor
▪ Make copy of list passed in o Destructor
▪ Delete the list o Accessors and mutators
o Basic linked list functionality methods • Node class
o Coefficient
▪ (optional) numerator and denominator variables if doing extracredit portion o Exponent
o Trig identifier
o Node pointer
o Overloaded constructor o Accessors and mutators
• The class header definition and function definitions must bein separate files (.h and .cpp)
o Remember that a function should not be defined inline if morethan 2 or 3 simple statements
• Remember that a class is built with the purpose of othersusing it
o Use proper programming practices to protect your data and classfrom being used incorrectly
• All nodes will be dynamically created
o There should only be enough nodes to hold data for the currentexpression
o You will have to consider a way to reuse the linked list for thenext expression
All input will be read from a file
Each term in the expression should be entered into a node andadded into a linked list
Each line in the file will be a mathematical function that canbe derived
The number of lines in the file is unknown
Each calculated derivative will be written to a file
Any function that moves through the list for any reason (adding,deleting, etc.) must be recursive
User Interface: There will be no user interface for thisprogram
Input: All input will be read from a file named functions.txt. Eachline in the file will be a mathematical
function with the following parameters:
Consist of polynomial terms – the highest degree will be 10
May also contain trig functions
Exponents will be represented by the ^ character.
Exponents may be positive or negative
Do not assume that the expression will be in order from highestto lowest exponent.
All coefficients will be integers.
The absence of a coefficient should be interpreted as acoefficient of 1
Trigonometric functions may have coefficients
The variable will always be ‘x’.
There may be spaces around the operators, but it is notrequired
If a trig function is used, there will be a space between thetrig function and the coefficient of x
Example Input:
o 3x^2+2x+1 o x^-2 +3x+4
o 4x–x^3
o 3sinx+cosx o 1–cos4x
o 3x^4 – 6x^2 + tan 10x
Output: All output will be written to a file.
The file will be named derive.txt.
Each derivative will be written on a separate line.
Use the ‘^’ character to represent exponents.
The terms of the derivative must be ordered from highest tolowest exponent
o Trig functions should be listed at the end in the order theywere encountered in the original expression
Expert Answer
Answer to In C++ programming language: Problem: As usual, Wario is concerned about nothing other than acquiring more money. In ord… . . .
OR

