Question: This homework has two parts. The first is about using math operations. The second is about working with functions. Part 1 : Making Historic Change

This homework has two parts. The first is about using math operations. The
second is about working with functions.
Part 1: Making Historic Change
During the Roman Imperial Period from 27 BC until 476 AD, the following coins
were used. The base unit of currency was the As. All other coins are mesaured
relative to each other.
Name Relative Value
Quadrans 1/2 a Semis
Semis 1/2 an As
As Base Unit
Dupondius 2 Asses
Sestertius 2 Dupondii
Quinarius 2 Sesterii
Denarius 2 Quinarii
Antoninianus 2 Denarii
Gold Quinarius 25 Quinarii
Aureus 25 Denarii
Write a program that takes as input the number of Quadrans a person has in
their account. This number is always an integer because there is no smaller
currency than the Quadrans. Then print out the minimal number of coins that
can be used to represent this amount. Start with the largest value currency and
work down to the smallest.
For example, if the user has 12 Quadrans, this is 1 Dupondius and 1 As.
Part 1: Example 1
Enter Number of Quadrans: 12
Aureus: 0
Gold Quinarius: 0
Antoninianus: 0
Denarius: 0
Quinarius: 0
Sestertius: 0
Dupondius: 1
As: 1
Semis: 0
Quadrans: 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!