Coder Social home page Coder Social logo

final-explorermode's Introduction

Final Project (Explorer Mode) for Math173 in Fall 2014

These are the instructions Professor Arenas provided:

Exam Part 1: The Exploration Tool

====== In this part of the exam you will create a tool where users can explore the effect of bias on housing patterns. You may model this portion after “Exploration mode.exe” (make sure all bitmap files are in the same directory as the executable before you test it).

Your program should begin by querying the user for

• The bias, expressed as a decimal number

• The proportion of red residents, a decimal number between 0 and 1 inclusive.

• The proportion of green residents, a decimal number between 0 and 1 inclusive.

The two proportion values do not need to add up to 1. There can be empty space (unoccupied houses).

The program should generate a 15 unit by 15 unit grid of randomly placed red and green residents in the proportions specified. These residents should either be happy, sad, or indifferent according to the rules described above. At this point the user is allowed to move residents using the mouse to unoccupied posi- tions. The user may only move residents who are sad – indifferent and unhappy residents can not be moved. Keep in mind that by moving residents the state of neighboring residents will tend to change – someone who was happy before may become sad. The program must report the level of segregation in real-time as the user moves around residents. When all residents are happy or indifferent the user can no longer interact with the grid.

Extra credit: Pressing ‘r’ reloads the grid in a new configuration. This is not easy! Your understanding of memory management will need to be perfect.

======

Please see FinalExamScore.txt for final score

final-explorermode's People

Contributors

avilajorge avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.