Question: The Simple Calculator (This should be done using ROOT to run C++ code in a manner similar to the Hello World example in the video.

The Simple Calculator (This should be done using ROOT to run C++ code in a manner similar to the "Hello World" example in the video. video). 1. Write a macro that takes 2 numbers, and gives as output their a)sum c=x+y b)multiplication c=xy c) logc=ln(x) d) exponential c=ex^ 1. The macro has to run in a loop (while) until you give it a quit instruction 2. The macro is user-friendly: enter x : enter y : enter operation (q quit, + sum, mult, I log, e exp) output: x+y=xy=log(x)=ex^x=
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
