Task 2: Using Predefined Functions pow() and sqrt() Create a program that will use the following predefined functions: pow(), sqrt()

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

3. Task 2: Using Predefined Functions pow() and sqrt()

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
Codio
Project
File
Edit
Find
Tools
Education
Help
A Compile & Run
> Project Index (static)
O Debug Current File
View
GMENDOZA83
task2.c
3. Task 2: Usi. X
1
Your code goes here...
Press Esc to exit full screen
Collapse
3. Task 2: Using Predefined Functions pow() and
sqrt()
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
AR
100% (1:0)
121 SauareRoot
Transcribed Image Text:Codio Project File Edit Find Tools Education Help A Compile & Run > Project Index (static) O Debug Current File View GMENDOZA83 task2.c 3. Task 2: Usi. X 1 Your code goes here... Press Esc to exit full screen Collapse 3. Task 2: Using Predefined Functions pow() and sqrt() 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 AR 100% (1:0) 121 SauareRoot
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY