Create a program that will use the following predefined functions: pow(), sqrt() NOTE: The program will show a menu with two options namely Power and Square Root. The Power option will accept two...


Create a program that will use the following predefined functions: pow(), sqrt()




NOTE:



The program will show a menu with two options namely Power and Square Root.


The Power option will accept two input values: Base Value and Exponent. Then, the program will compute the power.


The Square Root will accept single input value. Then, the program will display the Square Root value.



NOTE:



Your source code must display any of the given sample output below.


It means your source code should be flexible enough to meet any of the given sample output.


Your source code output must be identical to any of the given sample output.


It means you have to strictly follow what are the displayed text, labels, casing of characters in the sample output.






























Sample OUTPUT 1
MENU
[1] Power
[2] SquareRoot
Option: 1
Base: 5
Exponent: 2
Power: 25






























Sample OUTPUT 2
MENU
[1] Power
[2] Square Root
Option: 1
Base: 2
Exponent: 5
Power: 32



























Sample OUTPUT 3
MENU
[1] Power
[2] Square Root
Option: 2
Value: 25
Square Root: 5.00



























Sample OUTPUT 4
MENU
[1] Power
[2] Square Root
Option: 2
Value: 27
Square Root: 5.20
























Sample OUTPUT 5
MENU
[1] Power
[2] Square Root
Option: 3
Remark: Invalid Option

Expected:<br>OUTPUT 1<br>MENU<br>[1] Power<br>[2] Square Root<br>Option:<br>Base:<br>Exponent:<br>Power: 25<br>Expected:<br>OUTPUT 2<br>MENU<br>[1] Рower<br>[2] Square Root<br>Option:<br>Base:<br>Exponent:<br>Power: 32<br>Expected:<br>OUTPUT 3<br>MENU<br>[1] Power<br>[2] Square Root<br>Option:<br>Value:<br>Square Root: 5.00<br>Expected:<br>OUTPUT 4<br>MENU<br>[1] Power<br>[2] Square Root<br>Option:<br>Value:<br>Square Root: 5.20<br>Expected:<br>OUTPUT 5<br>MENU<br>[1] Рower<br>[2] Square Root<br>Option:<br>Remark: Invalid Option<br>

Extracted text: Expected: OUTPUT 1 MENU [1] Power [2] Square Root Option: Base: Exponent: Power: 25 Expected: OUTPUT 2 MENU [1] Рower [2] Square Root Option: Base: Exponent: Power: 32 Expected: OUTPUT 3 MENU [1] Power [2] Square Root Option: Value: Square Root: 5.00 Expected: OUTPUT 4 MENU [1] Power [2] Square Root Option: Value: Square Root: 5.20 Expected: OUTPUT 5 MENU [1] Рower [2] Square Root Option: Remark: Invalid Option
#include <stdio.h><br>2<br>#include <math.h><br>3<br>void main(){<br>5<br>//Your codes here...Your<br>6<br>7<br>8<br>9.<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19<br>20<br>}<br>0% (1:18)<br>

Extracted text: #include 2 #include 3 void main(){ 5 //Your codes here...Your 6 7 8 9. 10 11 12 13 14 15 16 17 18 19 20 } 0% (1:18)
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here