![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Programming A discussion forum for programs and programming used in tech-related businesses. |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Mar 2008
Posts: 2
OS: vista
|
algorithms help
Here is the problem:
1. Given an array of student grades, write an algorithm using the pseudocode from the book to determine the highest grade, lowest grade and average grade. (You may be able to write this as one algorithm or as three algorithms.) 2. A park ranger has been keeping track of the deer population in a national park. Her theory is that the springtime deer population depends on the lowest temperature from the preceeding winter according to the following: Temperature of 0oF or colder: deer population drops by 12% Temperature higher than 0oF: deer population increases by 15% Assuming the deer population starts at 1000 and assuming you have available a function called “getLowestTemperature” to get the lowest winter temperature, write an algorithm, using the pseudocode from the book, to determine the deer population each spring for 15 consecutive years. |
|
|
|
|
|
#2 (permalink) |
|
Registered User
Join Date: Dec 2007
Location: Damascus, Syria
Posts: 23
OS: Windows XP PRO SP3 / Ubuntu 8.04
|
Re: algorithms help
what exact issues are you facing while trying to solve this problem?
__________________
Bugs mysteriously appear when you say, "Watch this!" corollary: If you call another programmer over to see if he knows what's wrong the bug disappears! |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Dec 2007
Posts: 7
OS: XP
|
Re: algorithms help
Your question reeks of homework. But here's the answer to the first question.
public void printGradeInfo(int[] grades) { double min = max = averageSum = 0;} |
|
|
|
![]() |
| Thread Tools | |
|
|