Note: I cannot use "if statements". Must be completed using features of lists and dictionaries.
This assignment provides more practice in basic calculations, and also introduces the use data structures to hold information used in solving the problem. These data structures wi. be initialized within the program source code, and consulted after the input arrives. Since the problem is a little more complicated than the previous homework, every student should still follow the recommended schedule described in the previous assignment for getting particular phases accomplished ahead of time. Overall Problem You are playing the game of Monopoly and you decide you wish to construct houses on one of your property groups. The rules of the game require that the number of houses on the properties within each group may not differ by more than one. You will be given an amount of money to spend, and the color Monopoly uses on the game board for a group of properties (see chart below). The goal is to determine how many houses will go on each. And to appear more conversational, the last line of output will use words to represent numbers instead of digits. To make the program simple, you may assume that you will not have enough money to build past four houses per property (twelve total). You do not need to convert the price of a house to a word (although that can be done rather simply). Monopoly Property Groups Here is a small table relating the colors of the monopoly property groups, the numb properties within the group, and the cost of the houses. color size cost 2 50 purple light blue 3 50 maroon 3 100 orange 3 100 red 3 150 yellow 150 N w w 200 green dark blue 2 200 Sample Interfaces Which color block will you be building on? orange How much money do you have to spend? 860 There are three properties and each house costs 100 You can build eight house(s) one will have two and two will have three which color block will you be building on? yellow How much money do you have to spend? 060 There are three properties and each house costs 150