home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Java help request with bacteria colony problem

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1232
Discussions: 200,929, Posts: 2,379,146, Members: 246,296
Old April 20th, 2009, 12:33 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 1
Java help request with bacteria colony problem

This thing is due Wednesday and I have NO clue on how to do this. I don't even know where to start. This is what I have to do:

If a colony of bacteria grows at the rate of 9% per hour, then in eight hours the colony will double its size. Thus, the doubling time is eight hours. The so-called rule of 72 can be used to compute doubling times. If a quantity grows by R percent in a single period of time, then the number of periods required for the quantity to double is approximately 72/R. Given the growth rate and the original quantity, print the hourly size of the bacteria colony until it doubles. Have the computer compare the doubling time found by the rule-of-72 approach with the answer determined iteratively from the growth rate.

Read the hourly growth rate (as a decimal) and the colony size in individuals. Print meaningful headers. For each hour, print the number of the hour just ended, the initial colony size for that hour, and the new colony size computed from the rate of growth. Repeat until the colony has at least doubled. Interpolate your final hour, and beginning and ending colony sizes to get the doubling times in hours. Then computer the doubling size using the rule of 72. At the end, print both doubling times, to the nearest tenth, with appropriate labels.

Write a class method to compute each hour's growth in population by the growth-rate method. Write a class method to compute the doubling time using the rule of 72. Use formatted print statement(s), centering the computed data under their headings. Spread the headings and columns out so that the output is easy to read. Make sure no Java line is so long that it wraps when you print it.

I also HAVE to use Eclipse because that is all we have to use at the school and that's all the teacher was teaching us with. I appreciate everyone who comes in and helps me out. I have no clue where to start and end this thing and I have barely understood Java from where we started like a month ago.
CharGP02A is offline   Reply With Quote
Old April 21st, 2009, 12:38 AM     #2 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
My recommendation if you really don't even have any idea where to start would be to ask your teacher for help.

I'll give you a little nudge though. Break it down into steps. Do you understand the rule of 72? Do you understand how to get the input? Do you understand how to get the population growth mathematically by the hour?

Break it down into steps that you can manage. Then go through and code them one by one.
sr71000 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java help request cowgirl1976 Webmastering and Programming 1 April 21st, 2009 12:16 AM
Some bacteria needs only 1 gene to move from one species to another. no1_vern DebateIMO: Politics, Religion, Controversy 2 February 2nd, 2009 02:11 PM
Africain Bacteria Ate Holes In Her Eyes.. TrendyMartini IMO Community 3 May 22nd, 2007 03:34 PM
Bacteria froze the Earth no1_vern IMO Community 2 August 8th, 2005 08:22 AM
Our Colony butch81385 General Gaming Discussion 202 May 14th, 2005 05:31 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2868)
Obama the Muslim (14)
Is the PSU I received dead? (10)
windows vista security holes (9)
HIS HD5770 graphic card question (15)
Print spooler problem (13)
Foreign voltage (10)
Install XP pro and a Vista laptop ?.. (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Ideal cheap graph card for PC-Gamin.. (16)
New Computer wont recognize XP disc (7)
EVGA 9800 gtx help with finding a g.. (8)
Modern Warfare 2: Who Bought It? (61)
Recent Discussions
solutions for virtical white lines on.. (0)
Ideal cheap graph card for PC-Gaming? (16)
Regular Build (2)
Graphics Card Upgrade Question (0)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Install XP pro and a Vista laptop ?? (10)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)
FiOS modem/router interfering with ne.. (7)
Browsers wont load websites (2)
Virus Doctor Popup? (1)
Dept. of HS: NSA 'Helped' Develop Vis.. (15)


All times are GMT -4. The time now is 03:51 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28