Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are given a field of 16 cells (4 by 4). Each cell is a place to grow vegetables. First all cells are empty (white).

You are given a field of 16 cells (4 by 4).
Each cell is a place to grow vegetables.
First all cells are empty (white).
Once you click on a cell, it becomes black (planted, growing).
Then it grows by itself.
Once you click it once again, you harvest the vegetables, and the cell becomes empty.
Color description:
White - empty
Black - growing, just planted
Green - planting shoots
Yellow - immature
Red - mature
Brown - overgrow
Based on the example (we did during the class) you are to add two features to the model:
1. Add economics
-2 to plant seeds
+3 for harvesting immature vegetables (yellow)
+5 for harvesting mature vegetables (red)
-1 to harvest overripe vegetables (brown)
2. Add speed control
3-4 buttons to select different speed

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

Financial Accounting Tools for Business Decision Making

Authors: Paul D. Kimmel, Jerry J. Weygandt, Donald E. Kieso

7th edition

978-1118344262, 111834426X, 1118162285, 978-1118562208, 1118562208, 978-1118162286

More Books

Students also viewed these Accounting questions

Question

Types of Forensic audits with the explanation.

Answered: 1 week ago

Question

What are your workday priorities?

Answered: 1 week ago