A)Write C++ program that create class called (equation) have two variable private (stack S[7] and top). The object is S and Do the following operation : fill locations (0, 1 and 2) by values (20,40,60) fill locations between 3 to 6 by using the following equation: Y=x^5/2+X^7/3+...+x^N/N where values of X is (22,33,44,55) print the elements of stack Compute the factorial value for last value in the stack and delete the factorial value if greater than 700

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 11SA
icon
Related questions
Question
A)Write C++ program that create class called (equation) have two variable
private (stack S[7] and top). The object is S and Do the following operation :
fill locations (0, 1 and 2) by values (20,40,60)
Y=x^5/2+X^7/3+...+x^N/N
fill locations between 3 to 6 by using the following equation:
where values of X is (22,33,44,55)
print the elements of stack
Compute the factorial value for last value in the stack and delete the factorial
value if greater than 700
Transcribed Image Text:A)Write C++ program that create class called (equation) have two variable private (stack S[7] and top). The object is S and Do the following operation : fill locations (0, 1 and 2) by values (20,40,60) Y=x^5/2+X^7/3+...+x^N/N fill locations between 3 to 6 by using the following equation: where values of X is (22,33,44,55) print the elements of stack Compute the factorial value for last value in the stack and delete the factorial value if greater than 700
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning