I'll take a look at this tomorrow mate post up some additional help when I get In front of PC.
Type: Posts; User: CDeighan
I'll take a look at this tomorrow mate post up some additional help when I get In front of PC.
char first = response.charAt(0);
Repeat then for the rest of the requirements.
If(first == 'R')
{
If(nextChar == 'R')
{
}
}
Is this JavaScript from a controlled assessment from OCR GCSE Computing??
First of you need ask the user for an input and assign that to a variable.
Now you need loop through the inputted string using the charAt method and check each character within the string to...
You should always initialise variables with a value. If they're not given a value, they get assigned null.
That's a great little problem there to solve using Java.
You just need to sit down and write yourself out an algorithm as Ada has stated, and make sure all steps are included. Whenever they are,...
Yeah there's no average calculation there in that code, counter / temperature is not logically correctly.
You don't need a counter as you say there's 7 temperatures so you should just divide it...
As Norm says you haven stated what problems your having.
But looking through your code - I would have another "else if" statement for numberofbooks == 4, and then have another else as an invalid...