Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2 WorkBook Programming 1.pdf - Adobe Reader File Edit View Window Help Open 4 Filename: Lab exer10 9 / 33 145% Tools Fill & Sig
2 WorkBook Programming 1.pdf - Adobe Reader File Edit View Window Help Open 4 Filename: Lab exer10 9 / 33 145% Tools Fill & Sig You are tasked to create a riyal denomination program. Omani riyal bank notes are 50, 20, 10, 5 and 1. The program should read an integer or decimal value. Be able to determine how many of each denominations can be obtained from the input. If the user enter 1267, the denominations would be: 50 OMR = 25 pcs (50 * 25 = 1250) from 1267, only 17 will be left when you take 1250 20 OMR = 0 (20 * 0 = 0) 10 OMR = 1 (10 * 1 = 10) 5 OMR = 1 (5* 1 = 5) 1 OMR = 2 (1* 2 = 2), thus 1250+ 0 + 10 + 5+ 2 = 1267
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started