a program that will act as asimple interactive calculator. Your calculator should include +, -, and *. Your calculator should also have “undo”and “redo”functionality.
Implement the “undo”and “redo”functionality using two Stacks implemented with linked lists. Each node in both stackswill include an operator and integer [login to view URL] and pop operations should notbe duplicated for the two stacks
Sample Output:
C Calculator+----------------+
Enter starting value: 7
Enter next operation (u-Undo, r-Redo, q-Quit): + 13
Result= 20
Enter next operation (u-Undo, r-Redo, q-Quit): * 5
Result = 100
Enter next operation (u-Undo, r-Redo, q-Quit): u
Result = 20
Enter next operation (u-Undo, r-Redo, q-Quit): r
Result = 100
Enter next operation (u-Undo, r-Redo, q-Quit): / 20
***Not a valid [login to view URL] next operation
(u-Undo, r-Redo, q-Quit): y***Not a valid operation
Enter next operation (u-Undo, r-Redo, q-Quit): r
***Not a valid operation
Enter next operation (u-Undo, r-Redo, q-Quit): u
Result = 20
Enter next operation (u-Undo, r-Redo, q-Quit): u
Result = 7
Enter next operation (u-Undo, r-Redo, q-Quit): u
***Not a valid operation
Enter next operation (u-Undo, r-Redo, q-Quit): r
Result = 20
Enter next operation (u-Undo, r-Redo, q-Quit): q
The main() function should be an outline of what the program does. All “details”of the tasks should be placed in functions.
•first make a list of tasks the program will need to perform
•decide which tasks to make into functions
I am a qualified C/C++ developer with strong math background.
My primary interests are data structures and algorithms.
I have hands-on experience, worked in many Projects Before.
I will finish your task in time
$10 USD in 1 day
5.0 (8 reviews)
3.6
3.6
9 freelancers are bidding on average $35 USD for this job
Hi there
I have read your project descriptions and consider myself the best fit for this job. I have excellent programming skills related to your project. I can provide a quality solution for your project. Contact me to discuss your project details further.
Thanks
Farah Khan
I am expert in C programming and have more than 5 years of experience in coding. Please let me know if you are interested and I can help you complete the project.
Hello Sir,
I am familiar to your project.
I am a professional developer for this part
I have ready your job description and completely fit with my skills.
I want to discuss your project in detail.
contact me!
Hello,
I hope that you find my profile as the right one for you.
I have been coding java since 2013. Data structures and algorithms are daily job for me. Also, I am a programming instructor, teaching C, C++, Java and data structures & algorithms courses. We can discuss about price if you inform me exactly about what you need, so maybe I can propose another price.
Hi..
I Exactly Understand your requirements.
I am an Experienced Desktop and Web Applications Developer having 3 plus years of valuable experience in C#, Asp.net Web Forms,Asp.net MVC, SQL Server, MY SQL, SSRS (SQL Server Reporting Services).
Also have experience of converting PSD to Html 100% responsive using Bootstrap and Media queries.
I am interested to work with you.
Kindly Hire me.
Thanks.
Usama Anjam