Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

explain what is meant by experiential learning

Answered: 1 week ago

Question

identify the main ways in which you learn

Answered: 1 week ago