4. Task 3: Using a void User-defined Functions Create a program that will use user-defined functions that does not return a value. NOTE: Create a program that will add, subtract, multiply and divide two numbers. User-defined function must be use for each operator. Any number divided by zero will result to undefined. The program will be case insensitive for accepting input for all the operations i.e A and a is valid for addition operation. 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 [A] Addition [S] Subtraction [M] Multiplication [D] Division Option: A or a First Value: 10 Second Value: 2 Result: 12 Sample OUTPUT 2 MENU [A] Addition [S] Subtraction [M] Multiplication [D] Division Option: S or s First Value: 10 Second Value: 2 Result: 8 Sample OUTPUT 3 MENU [A] Addition [S] Subtraction [M] Multiplication [D] Division Option: M or m First Value: 10 Second Value: 2 Result: 20 Sample OUTPUT 4 MENU [A] Addition [S] Subtraction [M] Multiplication [D] Division Option: D or d First Value: 10 Second Value: 2 Result: 5

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

4. Task 3: Using a void User-defined Functions

Create a program that will use user-defined functions that does not return a value.

NOTE:
Create a program that will add, subtract, multiply and divide two numbers.
User-defined function must be use for each operator.
Any number divided by zero will result to undefined.
The program will be case insensitive for accepting input for all the operations i.e A and a is valid for addition operation.
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
[A] Addition
[S] Subtraction
[M] Multiplication
[D] Division
Option: A or a
First Value: 10
Second Value: 2
Result: 12
Sample OUTPUT 2
MENU
[A] Addition
[S] Subtraction
[M] Multiplication
[D] Division
Option: S or s
First Value: 10
Second Value: 2
Result: 8
Sample OUTPUT 3
MENU
[A] Addition
[S] Subtraction
[M] Multiplication
[D] Division
Option: M or m
First Value: 10
Second Value: 2
Result: 20
Sample OUTPUT 4
MENU
[A] Addition
[S] Subtraction
[M] Multiplication
[D] Division
Option: D or d
First Value: 10
Second Value: 2
Result: 5
Codio
Project
File
Edit
Find
Tools
Education
Help
A Compile & Run
> Project Index (static)
O Debug Current File
View
GMENDOZA83
task3.c
4. Task 3: Usi.. X
1
Your code goes here...
Collapse
4. Task 3: Using a void User-defined Functions
Create a program that will use user-defined
functions that does not return a value.
NOTE:
Create a program that will add, subtract, multiply and divide two numbers.
User-defined function must be use for each operator.
Any number divided by zero will result to undefined.
The program will be case insensitive for accepting input for all the operations i.e A and a is
valid for addition operation.
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
[A] Addition
AR
[S] Subtraction
100% (1:0)
Transcribed Image Text:Codio Project File Edit Find Tools Education Help A Compile & Run > Project Index (static) O Debug Current File View GMENDOZA83 task3.c 4. Task 3: Usi.. X 1 Your code goes here... Collapse 4. Task 3: Using a void User-defined Functions Create a program that will use user-defined functions that does not return a value. NOTE: Create a program that will add, subtract, multiply and divide two numbers. User-defined function must be use for each operator. Any number divided by zero will result to undefined. The program will be case insensitive for accepting input for all the operations i.e A and a is valid for addition operation. 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 [A] Addition AR [S] Subtraction 100% (1:0)
Expert Solution
steps

Step by step

Solved in 2 steps with 3 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