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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!