During the Roman Imperial Period from 27 BC until 476 AD, the following coins were used....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 Quadrans Semis Denarius: 0 Quinarius: 0 Sestertius: 0 Dupondius Sestertius Dupondius: 1 As: 1 Semis: 0 Quadrans: 0 Quinarius Denarius Antoninianus Gold Quinarius Aureus Part 1: Example 1 Enter Number of Quadrans: 12 Aureus: 0 Gold Quinarius: 0 Antoninianus: 0. 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. Relative Value 1/2 a Semis 1/2 an As Base Unit 2 Asses 2 Dupondii 2 Sesterii 2 Quinarii 2 Denarii 25 Quinarii 25 Denarii Part 1: Example 2 Enter Number of Quadrans: 21432 Aureus: 13 Gold Quinarius: 0. Antoninianus: 4 Denarius: 1 Quinarius: 1 Sestertius: 1 Dupondius: 1 As: 0 Semis: 0 Quadrans: 0 Part 1: Example 3 Enter Number of Quadrans: 2655 Aureus: 1 Gold Quinarius: 1 Antoninianus: 1 Denarius: 1 Quinarius: 1 Sestertius: 1 Dupondius: 1 As: 1 Semis: 1 Quadrans: 1 Part 2: Working With Function Functions are a key tool for designing functions. In this part of the assignment, you will create three functions and use them to create a number of output. All values you work with in this part will be integers. The three functions you need to create are: f(x) = 2x - 7 g(x, y) = x - - Y Part 2: Working With Function Functions are a key tool for designing functions. In this part of the assignment, you will create three functions and use them to create a number of output. All values you work with in this part will be integers. The three functions you need to create are: f(x) = 2x - 7 g(x, y) = x y h(x) = 2x + 3x +9 You must implement these are three Python functions. 2 Ask for two values from the user. Both values will be integers. Compute the following values using your three functions and the two values give. Call the first value a and the second value b. f(a) f(b) g(a, b) g(b, a) h(a) h (b) f(h(a)) h(f(b)) g(f(a), h(b)) g(h(a), f(b)) Print out all the values you compute. Part 2: Example 1 Enter Value 1: 10 Enter Value 2: 12 f(10)=193 f(12)=281 g(10,12)=988 g(12,10)=1718 h(10)=239 h(12)=333 f(h (10))=114235 h(f (12))=158774 g(f (10),h(12))=7188724 g(h(10), f(12))=13651638 Part 2: Example 2 Enter Value 1: 1 Enter Value 2: 9 f(1) =-5 f (9)=155 g(1,9)=-8 g(9,1)=728 h(1)=14 h (9) 198 f(h(1))-285 if "___main__": # Introduction print('Compute the change due after paying for an item') print('') name == # Get Input From the User amountPaid = float(input("Enter Amount Paid (10.00): ")) amountDue = float(input("Enter Amount Due (9.99): ")) # Constants need for conversion CENTS_PER_DOLLAR = 100 CENTS_PER_QUARTER = 25 CENTS_PER_DIME = 10 CENTS_PER_NICKEL = 5 # First convert the amount paid and the amount due to cents amount Paid = int(amountPaid * 100) amountDue = int(amountDue* 100) # Computer the difference in cents. That is the chane due. change = amount Paid amount Due # Calculate how many dollars dollars change = change // CENTS_PER_DOLLAR change % CENTS_PER_DOLLAR 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 Quadrans Semis Denarius: 0 Quinarius: 0 Sestertius: 0 Dupondius Sestertius Dupondius: 1 As: 1 Semis: 0 Quadrans: 0 Quinarius Denarius Antoninianus Gold Quinarius Aureus Part 1: Example 1 Enter Number of Quadrans: 12 Aureus: 0 Gold Quinarius: 0 Antoninianus: 0. 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. Relative Value 1/2 a Semis 1/2 an As Base Unit 2 Asses 2 Dupondii 2 Sesterii 2 Quinarii 2 Denarii 25 Quinarii 25 Denarii Part 1: Example 2 Enter Number of Quadrans: 21432 Aureus: 13 Gold Quinarius: 0. Antoninianus: 4 Denarius: 1 Quinarius: 1 Sestertius: 1 Dupondius: 1 As: 0 Semis: 0 Quadrans: 0 Part 1: Example 3 Enter Number of Quadrans: 2655 Aureus: 1 Gold Quinarius: 1 Antoninianus: 1 Denarius: 1 Quinarius: 1 Sestertius: 1 Dupondius: 1 As: 1 Semis: 1 Quadrans: 1 Part 2: Working With Function Functions are a key tool for designing functions. In this part of the assignment, you will create three functions and use them to create a number of output. All values you work with in this part will be integers. The three functions you need to create are: f(x) = 2x - 7 g(x, y) = x - - Y Part 2: Working With Function Functions are a key tool for designing functions. In this part of the assignment, you will create three functions and use them to create a number of output. All values you work with in this part will be integers. The three functions you need to create are: f(x) = 2x - 7 g(x, y) = x y h(x) = 2x + 3x +9 You must implement these are three Python functions. 2 Ask for two values from the user. Both values will be integers. Compute the following values using your three functions and the two values give. Call the first value a and the second value b. f(a) f(b) g(a, b) g(b, a) h(a) h (b) f(h(a)) h(f(b)) g(f(a), h(b)) g(h(a), f(b)) Print out all the values you compute. Part 2: Example 1 Enter Value 1: 10 Enter Value 2: 12 f(10)=193 f(12)=281 g(10,12)=988 g(12,10)=1718 h(10)=239 h(12)=333 f(h (10))=114235 h(f (12))=158774 g(f (10),h(12))=7188724 g(h(10), f(12))=13651638 Part 2: Example 2 Enter Value 1: 1 Enter Value 2: 9 f(1) =-5 f (9)=155 g(1,9)=-8 g(9,1)=728 h(1)=14 h (9) 198 f(h(1))-285 if "___main__": # Introduction print('Compute the change due after paying for an item') print('') name == # Get Input From the User amountPaid = float(input("Enter Amount Paid (10.00): ")) amountDue = float(input("Enter Amount Due (9.99): ")) # Constants need for conversion CENTS_PER_DOLLAR = 100 CENTS_PER_QUARTER = 25 CENTS_PER_DIME = 10 CENTS_PER_NICKEL = 5 # First convert the amount paid and the amount due to cents amount Paid = int(amountPaid * 100) amountDue = int(amountDue* 100) # Computer the difference in cents. That is the chane due. change = amount Paid amount Due # Calculate how many dollars dollars change = change // CENTS_PER_DOLLAR change % CENTS_PER_DOLLAR
Expert Answer:
Related Book For
Modern Advanced Accounting In Canada
ISBN: 9781259066481
7th Edition
Authors: Hilton Murray, Herauf Darrell
Posted Date:
Students also viewed these algorithms questions
-
An algorithm has been written in pseudocode to input some numbers. It only outputs any numbers that are greater than or equal to 100. The number 999 is not output and stops the algorithm. INPUT...
-
Ivanhoe Company incurred research and development costs of $ 9 0 0 0 0 to develop a patent, and legal fees of $ 3 0 0 0 0 to register the patent. The patent has a legal life of 2 0 years and a useful...
-
Why is ultraviolet light, but not infrared light, effective in making certain materials fluoresce?
-
Answer two out of the three forum questions, listed below, for this week. 1. Make a list of products you believe failed because of poor marketing channel choices. 2. Why do marketing professionals...
-
In Figure current is set up through a truncated right circular cone of resistivity 731 ?? ?? m, left radius a = 2.00 mm, right radius b = 230 mm, and length L = 1.94 cm. Assume that the current...
-
A bank manager is worried because the income gap currently equals \($35\) million and interest rates are expected to increase by 1.5%. Determine the amount of rate-sensitive assets if rate sensitive...
-
1. Google sent out a press release about the Gmail service without mentioning the intention to put ads in the e-mails or how those ads would be selected. Was that ethical? Explain why or why not. 2....
-
1 2 Part 2 of 15 points Skipped eBook P Deferences Required information The Foundational 15 (Algo) [LO14-2, LO14-3, LO14-4, LO14-5, LO14-6] [The following information applies to the questions...
-
Felde Bucket Co., a manufacturer of rain barrels, had the following data for 2016: Sales .......................... 2,500 units Sales price ................... $40 per unit Variable costs...
-
A specific output is forced on, but the LED module indicator does not come on. A check of the voltage at the output module indicates a voltage far below the normal on level. What is the first thing...
-
Quattro-Canna Holdings wants to generate deeper insight concerning downstream industries'attitudes towards the marketing strategies used and their level of effectiveness...
-
The course took a deep look at debt and inequality . Identify a country outside of the United States that is undergoing austerity. 1. describe their current debt situation (how did they get into the...
-
A world without ERP software would be mostly inefficient because a lot of financial processes would be inefficient. ERP software helps make a lot of financial processes like expense tracking, ledger...
-
Do you think Rwanda's gacaca model provides an acceptable substitute for more formal models of justice-seeking after genocide? What is the significance of "the Pinochet case"? Do you think the...
-
Explain Suppose the government grants $2,500 per child to households that have more than two children. Draw a graph and explain whether these child allowances influence the fertility behavior of...
-
Write a method in Java that tests to see whether a String begins with a capital letter, and also ends with a capital letter. The method should return the boolean value false if it is passed the...
-
Why do bars offer free peanuts?
-
On January 1, Year 5, Pic Company acquired 7,500 ordinary shares of Sic Company for $600,000. On January 1, Year 6, Pic Company acquired an additional 2,000 ordinary shares of Sic Company for...
-
If a gain or a loss is realized by a parent company as a result of the sale of a portion of the investment in a subsidiary, should the gain or loss be eliminated in the preparation of the...
-
On October 1, Year 6, Versatile Company contracted to sell merchandise to a customer in Switzerland at a selling price of SF400,000. The contract called for the merchandise to be delivered to the...
-
You are considering purchasing a defunct mine in Africa. Your firm has developed a method to extract valuable rare earth minerals from the mining entrails. The cost of the mine together with the...
-
Consider the following bonds: a. What is the percentage change in the price of each bond if its yield to maturity falls from 6% to 5%? b. Which of the bonds AD is most sensitive to a 1% drop in the...
-
A BBB-rated corporate bond has a yield to maturity of 13.7%. A U.S. Treasury security has a yield to maturity of 11.7%. These yields are quoted as APRs with semiannual compounding. Both bonds pay...
Study smarter with the SolutionInn App