Write a program that will makes simple calculations. Use function for each operation.

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

Write a program that will makes simple calculations. Use function for each operation.
Example Program outputs: 

Welcome to calculator.
Please enter the operation: +
Welcome to calculator.
Please enter the operation: +
- / *
Please enter a number
0.6
Another number to be added
12.7
result is : 13.3
Please enter a number
17
Another number to be subtracted
6.3
result is : 10.7
Process exited after 10.31 seconds with re
Devam etmek için bir tuşa basın
Process exited after 13.44 seconds with
Devam etmek için bir tuşa basın .
We lcome to calculator.
Please enter the operation: +
We lcome to calculator.
Please enter the operation: +
- /
Please enter a number
Please enter a number
12
Another one to be divided
Another one to be multiplied
0.3
result is : 1.8
result is : 4
Process exited after 7.956 seconds with
Devam etmek için bir tuşa basin .
Process exited after 7.553 seconds with r
Devam etmek için bir tuşa basın
Welcome to calculator.
Please enter the operation: + - / *
We lcome to calculator.
Please enter the operation: + - / :
this is not an option
this is not an option
Process exited after 16.36 seconds with
Devam etmek için bir tuşa basın .
Process exited after 4.688 seconds with
Devam etmek için bir tuşa basin.
Example program output (Q-3)
Transcribed Image Text:Welcome to calculator. Please enter the operation: + Welcome to calculator. Please enter the operation: + - / * Please enter a number 0.6 Another number to be added 12.7 result is : 13.3 Please enter a number 17 Another number to be subtracted 6.3 result is : 10.7 Process exited after 10.31 seconds with re Devam etmek için bir tuşa basın Process exited after 13.44 seconds with Devam etmek için bir tuşa basın . We lcome to calculator. Please enter the operation: + We lcome to calculator. Please enter the operation: + - / Please enter a number Please enter a number 12 Another one to be divided Another one to be multiplied 0.3 result is : 1.8 result is : 4 Process exited after 7.956 seconds with Devam etmek için bir tuşa basin . Process exited after 7.553 seconds with r Devam etmek için bir tuşa basın Welcome to calculator. Please enter the operation: + - / * We lcome to calculator. Please enter the operation: + - / : this is not an option this is not an option Process exited after 16.36 seconds with Devam etmek için bir tuşa basın . Process exited after 4.688 seconds with Devam etmek için bir tuşa basin. Example program output (Q-3)
Expert Solution
steps

Step by step

Solved in 5 steps with 8 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