Write a C program to calculate the amount in OMR (Omani riyal) when the amount in INR (Indian rupee) is given during exchange. If the OMR amount is above 600, then display that the 'Amount is big'...


Write a C program to calculate the amount in OMR (Omani riyal) when the amount in INR (Indian<br>rupee) is given during exchange. If the OMR amount is above 600, then display that the 'Amount is<br>big' otherwise display 'Amount is small'.<br>Follow the steps given below to complete the task.<br>1. Ask the user to input the amount in INR.<br>2. Based on the user input, calculate the total amount in OMR using the formula<br>OMR = INR / 200 + 2<br>3. Display the amount in OMR.<br>4. If the value of OMR amount is more than 600, then display that the amount is big<br>otherwise it is small.<br>Sample output 1 (bold text is the user input):<br>Enter the amount in INR: 50000<br>Amount in OMR is 252.000000<br>The amount is small.<br>Sample output 2 (bold text is the user input):<br>Enter the amount in INR: 120000<br>Amount in OMR is 602.000000<br>The amount is big.<br>

Extracted text: Write a C program to calculate the amount in OMR (Omani riyal) when the amount in INR (Indian rupee) is given during exchange. If the OMR amount is above 600, then display that the 'Amount is big' otherwise display 'Amount is small'. Follow the steps given below to complete the task. 1. Ask the user to input the amount in INR. 2. Based on the user input, calculate the total amount in OMR using the formula OMR = INR / 200 + 2 3. Display the amount in OMR. 4. If the value of OMR amount is more than 600, then display that the amount is big otherwise it is small. Sample output 1 (bold text is the user input): Enter the amount in INR: 50000 Amount in OMR is 252.000000 The amount is small. Sample output 2 (bold text is the user input): Enter the amount in INR: 120000 Amount in OMR is 602.000000 The amount is big.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here