Question: Problem Description Write a python program that will interpret pseudo - English statements describing an amount of money in coins and convert them into a
Problem Description
Write a python program that will interpret pseudoEnglish statements describing an amount of money in coins and convert them into a dollar amount.
Input
Each sentence will follow the standard rules of English grammar, the only exception being the omission of the ending punctuation. The format of a sentence will consist of a quantity and a denomination. The quantity will always be a numeral and the denomination will always be a word.
Output
Each output should be an amount listed in dollars
Test Cases
penny and nickels
dimes and quarters
quarter and pennies
pennies and dimes and quarters
dimes and quarters and nickels and pennies
nickel and quarters
nickels and pennies
dime and nickel and penny and quarter
Feel free to include any other test cases you think would be appropriate.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
