HACC Data Structures questions
Description
You are going to enhance the prior assignment by doing the following
1) Use list to create a menu
2) Add a function to the library that will return the results of the four operations in a dictionary allInOne(n1, n2)
Sample output
1) Add two numbers
2) Mult two numbers
3) Divide
4) Scalc
5) all in one ..
6) /p>
res=allInOne(5,2)
The results will be returned in this format.
res is dictionary {“add”:7, “sub”:3, “mult”:10, “div”:2.5)
* You must use the function in the library.
from res, you are going to print
5 + 2 = 7
5 – 2 = 3
5 * 2 = 10
5 / 2 = 2.5
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."