Question:
a) Write a small program using floating-point operations in Reverse Polish Notation to evaluate the following:
Volume of Sphere = (4/3)πr3
Consider that the user will enter a positive real number for the radius.
Example Run: Enter radius: 2.3
Volume: 16.2226666667
b) Translate the following pseudo-code into optimized assembly code:
IF ((X > 5) AND (Y < 0)) OR (Z <= 13) THEN A = 10 ELSE A = 2
c) Write a program to that will prompt the user to enter a positive decimal number. You must then display the binary equivalent on screen.
An example run would be:
Enter decimal number: 34
Answer: 000000000010001