Problem: Read your name and one numeric value [Omani Rial], print the following in below output, read user choice. Find and print equivalent currency value. Formulas: 1 Omani Rial = 2.60 US Dollars 1 Omani Rial = 2.18 Euros 1 Omani Rial = 1.86 British pounds 1 Omani Rial Two Sample Outputs: [For reference only] %3D %3D 9.55 UAE Dirhams Ente: your name OnAr Khalid Ernter your lame Akr am Said Enter amount in Cmani Rials 15.7 Enter amount in Omani Rials 25 Currency Converter Currency Converter 1. Change to US Dollars 2. Change to Euros 3. Change to British Pound 4. Change to UAE Dirhams 1. Change to US Dollars 2. Change to Euros 3. Change to British Pound 4. Change to UAE Dirhams ** Other EXIT *** ** Other EXIT *** Select one choice 2 Select one choice 7 Dear Omar Khalid Dear Akram Said 15 700 000 OMD- 3A 225900 Furog Wrong choice
Operations
In mathematics and computer science, an operation is an event that is carried out to satisfy a given task. Basic operations of a computer system are input, processing, output, storage, and control.
Basic Operators
An operator is a symbol that indicates an operation to be performed. We are familiar with operators in mathematics; operators used in computer programming are—in many ways—similar to mathematical operators.
Division Operator
We all learnt about division—and the division operator—in school. You probably know of both these symbols as representing division:
Modulus Operator
Modulus can be represented either as (mod or modulo) in computing operation. Modulus comes under arithmetic operations. Any number or variable which produces absolute value is modulus functionality. Magnitude of any function is totally changed by modulo operator as it changes even negative value to positive.
Operators
In the realm of programming, operators refer to the symbols that perform some function. They are tasked with instructing the compiler on the type of action that needs to be performed on the values passed as operands. Operators can be used in mathematical formulas and equations. In programming languages like Python, C, and Java, a variety of operators are defined.
Step by step
Solved in 2 steps with 2 images