Question: Note: Cannot use if statements or loops. please look at the rubric as i need to use list( index method) or dictionary This assignment provides

Note: Cannot use "if" statements or loops. please look at the rubric as i need to use list( index method) or dictionary  Note: Cannot use "if" statements or loops. please look at the
rubric as i need to use list( index method) or dictionary This
assignment provides more practice in basic calculations, and also introduces the use
of data structures to hold information used in solving the problem. These
data structures will be initialized within the program source code, and consulted

This assignment provides more practice in basic calculations, and also introduces the use of data structures to hold information used in solving the problem. These data structures will 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 assund 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 number of 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 3 150 3 200 green dark blue 2 200 Sample Interfaces which color block will you be building on? or loce 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 Exact spacing and spelling is not required -- correct calculation is far more important. All five computed values in that last output line must be present and correct. It is expected that lists and dictionaries will be sufficient for this entire problem. There should be nothing from later in the course. Code that uses if-statements or loops from Unit 3 will not earn a grade for this assignment. costs. 109 ave a HOMEWORK2python.py - CAUsers\12672\Downloads\HOMEWORK2python.py (3.9.1) File Edit Format Run Options Window Help color_choice input ("Which color block will you be building on? ") d money spent float(input("How much money do you have to spend?")) color I'purple', 'light blue', 'maroon', 'orange', 'red', 'yellow', 'green', ve size = [2,3,3,3,3,3,3,2) - osts [50, 50, 100, 100, 150, 150, 200, 2001 cost- d- line will urse. ent. Cr stead There lettert I rating to nput is ir red nd > 10:44 PM 2/10/2021 Form of Program 5 pts Correctly submitted a program file 2 pts Mostly a program file, with extra >>> and outputs to O pts Submission does not resemble a program 5 pts remove Input 5 pts Correctly requests for color and spending money 2 pts Has two required inputs, but requests inputs it should not O pts No input to 5 pts program Data structure 5 pts O pts Appropriate use of list or dict Required data structure absent 5 pts Search key 5 pts Correctly searches for color in list (index method) or dictionary (1) O pts Does not accept color as a string to search or compare 5 pts Associated Data 5 pts Obtains correct values from list or dict O pts color has no role in determining numeric values, or used if/else 5 pts Total Houses 3 pts O pts 5 pts Clearly correctly computed with II or Int/floor and / Correctly computed by other means Number of houses purchased not found 5 pts

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!