Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help making a C++ program that evaluates polynomials from an input file. If you could implement a linked list that would be very
I need help making a C++ program that evaluates polynomials from an input file. If you could implement a linked list that would be very helpful as well. The number in the parentheses is the number that should be substituted for "x" while solving. Input file should be named "poly.txt" and output file should be named "answers.txt". Thank you so much in advance.
Sample Input File f (3.2)5.9x11 x*3 -3x10 f (2.75) 1.57x-47-2x^30 + x = Sample Output File f(5) = 7x^2-9 = 166 f (3.2)5.9x11 x*3 - 3x101787961.820 f (1.75) = 1.57x-47-2x^30 + x 415572768585.904 Sample Input File f (3.2)5.9x11 x*3 -3x10 f (2.75) 1.57x-47-2x^30 + x = Sample Output File f(5) = 7x^2-9 = 166 f (3.2)5.9x11 x*3 - 3x101787961.820 f (1.75) = 1.57x-47-2x^30 + x 415572768585.904Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started