Q8 Draw the flowchart and write a C program using switch. The program inputs the currency and total amount of money. Depending on the currency the program will display the currency country then it performs some operations on the amount value to display the equivalent value in Omani Rials. (3+4] Equivalent Omani Rials 1 United States Dollar equals Currency |Country Sor D or d U.S 0.38 Omani Rial or P or p £ U.K I Pound sterling equals 0.48 Omani Rial € or E or e Europe I Euro equals 0.43 Omani Rial Any other value Wrong Currency Sample output 1: Input the currency : D Sample output 3: Input the currency : e Input the total amount: 200 Input the total amount: 100 Dollar is used in U.S Euro is used in Europe | 200 United States Dollar equals 76 Omani 100 Euro equals 43 Omani Rial Sample output 4: Input a character selector : K Rial Sample output 2: Input the currency : £ Input the total amount: 100 Input the total amount: 150 Wrong currency Pound is used in U.K 150 Pound sterling equals 72 Omani Rial

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question
100%
Q8 Draw the flowchart and write a C program using switch. The program inputs the currency
and total amount of money. Depending on the currency the program will display the currency
country then it performs some operations on the amount value to display the equivalent value
in Omani Rials.
(3+4]
Equivalent Omani Rials
1 United States Dollar equals
Currency
|Country
Sor D or d
U.S
0.38 Omani Rial
or P or p £
U.K
I Pound sterling equals
0.48 Omani Rial
€ or E or e
Europe
I Euro equals 0.43 Omani Rial
Any other value
Wrong Currency
Sample output 1:
Input the currency : D
Sample output 3:
Input the currency : e
Input the total amount: 200
Input the total amount: 100
Dollar is used in U.S
Euro is used in Europe
| 200 United States Dollar equals 76 Omani 100 Euro equals 43 Omani Rial
Sample output 4:
Input a character selector : K
Rial
Sample output 2:
Input the currency : £
Input the total amount: 100
Input the total amount: 150
Wrong currency
Pound is used in U.K
150 Pound sterling equals 72 Omani Rial
Transcribed Image Text:Q8 Draw the flowchart and write a C program using switch. The program inputs the currency and total amount of money. Depending on the currency the program will display the currency country then it performs some operations on the amount value to display the equivalent value in Omani Rials. (3+4] Equivalent Omani Rials 1 United States Dollar equals Currency |Country Sor D or d U.S 0.38 Omani Rial or P or p £ U.K I Pound sterling equals 0.48 Omani Rial € or E or e Europe I Euro equals 0.43 Omani Rial Any other value Wrong Currency Sample output 1: Input the currency : D Sample output 3: Input the currency : e Input the total amount: 200 Input the total amount: 100 Dollar is used in U.S Euro is used in Europe | 200 United States Dollar equals 76 Omani 100 Euro equals 43 Omani Rial Sample output 4: Input a character selector : K Rial Sample output 2: Input the currency : £ Input the total amount: 100 Input the total amount: 150 Wrong currency Pound is used in U.K 150 Pound sterling equals 72 Omani Rial
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education