Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

U11 Informing Industry: Publicizing Contract Actions 317

Answered: 1 week ago

Question

Psychological, financial, and career counseling.

Answered: 1 week ago