subject

Java coding The game will have 4 types of information you need to keep track of: the user, the Butterflies, the Bees and the Flowers. Here’s what you need to know for each (hint: some of these can be passed/given to the class constructor):
• Human User/Player
o Name - You’ll need to ask who is going to play the game
o Whether they want to be a butterfly or bee
• Butterflies
o Butterfly colony name - Every colony needs a name, right? So you’ll need to ask the user what the name of the butterfly colony is.
o Butterfly color - Butterflies come in many different colors. To make things simpler, your colony will start with butterflies that only have two colors, a main color and accent color. You’ll want to integrate the colors into the butterfly colony name. So you’ll need to ask the user about which colors they want.
o Colony starting size - How many butterflies is the colony starting out with? This can vary, so you better ask the user about that also.
o Carry capacity – Butterflies come in different sizes. So we need to know how much pollen each butterfly can carry, from 1 – 10 grams. Users won’t know this information, so we’ll need to generate it.
• Bees
o Bee colony name - Every colony needs a name, right? So you’ll need to ask the user what the name of the bee colony is
o Colony starting size - How many bees is the colony starting out with? This can vary, so you better ask the user about that also.
o Carry capacity – Bees come in different sizes. So we need to know how much pollen each bee can carry, from 3 – 7 grams. Users won’t know this information, so we’ll need to generate it.
• Flower
o Flower name/type – We’ll need to ask the user what types of flowers to use in the contest. (e. g., Rose, Lily, etc.)
o Color – Every flower has a color, so ask the user what color the flower should be
o Distance from colonies - Each flower is a different distance from the colonies, 1 – 5 miles.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:40
Writing a modular program in visual c++. i am new to this and not sure what i am missing. i am getting the following error: baddate.cpp: in function ‘int main()’: baddate.cpp: 50: 3: error: ‘else’ without a previous ‘if’elsehere are the instructions and code: writing a modular program in c++in this lab, you add the input and output statements to a partially completed c++ program. when completed, the user should be able to enter a year, a month, and a day. the program then determines if the date is valid. valid years are those that are greater than 0, valid months include the values 1 through 12, and valid days include the values 1 through 31.notice that variables have been declared for you.write the simulated housekeeping() function that contains the prompts and input statements to retrieve a year, a month, and a day from the user.include the output statements in the simulated endofjob() function. the format of the output is as follows: month/day/year is a valid date.ormonth/day/year is an invalid date.execute the program entering the following date: month = 5, day = 32, year = 2014. record the output of this program.execute the program entering the following date: month = 9, day = 21, year = 2002. record the output of this /* program name: baddate.cppfunction: this program determines if a date entered by the user is valid.input: interactiveoutput: valid date is printed or user is alerted that an invalid date was entered*/#include bool validatedate(int, int, int); using namespace std; int main(){// declare variablesint year; int month; int day; const int min_year = 0, min_month = 1, max_month = 12, min_day = 1, max_day = 31; bool validdate = true; // this is the work of the housekeeping() method// get the year, then the month, then the daycout< < "enter the year"< > year; cout< < "enter the month"< > month; cout< < "enter the day"< > day; // this is the work of the detailloop() method// check to be sure date is validif(year < = min_year) // invalid yearvaliddate = false; else if (month < min_month || month > max_month) // invalid monthvaliddate = false; else if (day < min_day || day > max_day) // invalid dayvaliddate = false; // this is the work of the endofjob() method// test to see if date is valid and output date and whether it is valid or notif(validdate == true); {// output statementcout<
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Many everyday occurrences can be represented as a binary bit. for example, a door is open or closed, the stove is on or off, and the fog is asleep or awake. could relationships be represented as a binary value? give example.
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
Choose the correct citation for the case which established the "minimum contacts" test for a court's jurisdiction in a case. select one: a. brown v. board of education of topeka, 347 u.s. 483 (1954). b. international shoe co. v. washington, 326 u.s. 310 (1945) c. haynes v. gore, 531 u.s. 98 (2000). d. international shoe co. v. washington, 14 u.s. code 336.
Answers: 1
You know the right answer?
Java coding The game will have 4 types of information you need to keep track of: the user, the But...
Questions
question
Mathematics, 06.10.2019 03:00
question
Mathematics, 06.10.2019 03:00
Questions on the website: 13722362