<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Help with homework - scanner problems"]]></title>
		<link>http://forums.hotjoe.com/posts/list/3.page</link>
		<description><![CDATA[Latest messages posted in the topic "Help with homework - scanner problems"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Help with homework - scanner problems</title>
				<description><![CDATA[ here is my homework I am not sure how to do the loop I think that I have the first part right but I do not know how to get the rest of it to work It is suppose to stop when -1 is enter She gives us two projects for each chapter and they are both different. she also gives us inclass but she did not use the while loops she used the for loops.<br /> Can u help????<br /> Instructions<br /> Project 6<br /> Write an application for the Garage Review Monthly Report, a magazine that surveys the cost of doing a particular job at various locations within the country.<br /> <br /> PART1 Write an application called AutoGarage.java<br /> <br /> 1.	In the main<br /> a.	It will prompt the article author to enter a job name<br /> Example:<br /> Enter the job  name:<br /> 				Oil change<br /> b.	It will declare appropriate variables to store his quiz grades<br /> i.	A double average		//the average cost of that job<br /> ii.	A double total collected		//total of all money from all jobs surveyed<br /> iii.	A double amount		//cost of each job<br /> iv.	An int numItems 		// a counter of all jobs entered<br /> v.	A String name			//the job name<br /> c.	It will create a Scanner object<br /> <br /> <br /> 2. write a  while loop contolled on  the amount entered being greater or equal to 0 (or not a -1)<br /> <br /> 3.  It will then use a while loop to prompt the author to enter all job costs as surveyed  separated by spaces, terminated with a -1<br /> Example:<br /> Enter all costs for the job: oil change separated by spaces:<br /> 	19.95  14.55  20.99 -1<br /> <br /> 4. within the loop, add the amounts  to the accumulating total, increment the numItems counter  and read in the next amount using the scanner<br /> <br /> 5. when the loop ends (the terminal -1 was read), decrease the  counter so that the -1 does not count as a job, calculate the average cost and output in a System.out.printf statement the name, number of jobs surveyed, total money collected and the average cost of that job.  Do the same output in a JOptionPane – see sample below<br /> <br />  <br /> 	<br /> <br /> Part 2<br /> Modify the above code so that it prompts the article’s author to enter the maximum number of jobs in his survey using a JOptionPane<br /> It will now need variables for a counter for the actual number of jobs and a maximum number of jobs<br /> <br /> It will enclose the prompt for the job name and the while loop above in an outer loop controlled on the maximum number of jobs entered.<br /> <br /> When the inner loop ends, increment the number of jobs counter and reset the average, total and numItem  back to zero, then end the outer loop<br /> <br /> Your output will look something like this:<br /> <br />  <br /> <br /> It does not like my jpane<br /> here is my code <br /> import javax.swing.*;<br /> import java.util.*;<br /> import java.text.*;<br /> public class AutoGarage<br /> {<br /> public static void main(String[]args)<br /> {<br /> Scanner s= new Scanner(System.in);<br /> int numItems = 0;<br /> String name = "";<br /> double average = 0.0;<br /> double totalcollected = 0.0;<br /> double amount = 0.0;<br /> 	while( numItems&gt;=0)<br /> 		{<br /> 				<br /> 	System.out.println("enter all amounts collected separated by spaces,terminated with a -1");<br /> 	 numItems=s.nextInt();<br /> 	average=s.nextDouble();<br /> 	totalcollected=s.nextDouble();<br /> 	amount=s.nextDouble();<br /> 	totalcollected=numItems+amount;<br /> average=totalcollected/numItems;<br /> 	<br />  System.out.println();<br />     System.out.println("Oil change");<br /> 	System.out.printf("%-10s%10s%10s%10s%10s%n","NAME","jobs","Total Collected","average cost");<br /> }<br /> {<br /> <br /> 		JOptionPane.showMessageDialog(null,"Oil change surveyed"+ numItems+"\n Total Jobs "+totalcollected+"\n Average sale ",<br /> 	 JOptionPane.INFORMATION_MESSAGE);<br /> <br /> <br /> 	}<br /> }<br /> }<br /> <br /> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/813.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/813.page</link>
				<pubDate><![CDATA[Tue, 21 Mar 2006 11:00:32]]> GMT</pubDate>
				<author><![CDATA[ heathfree]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ Please take some time an read the link that stdunbar referenced. <br /> <br /> Step back from your assignment and take some time to think about what you are asking. <br /> <br /> As the stdunbar's link said, be very descriptive with your specific problem. <br /> <br /> "What is happening in your program" and "What do you think it should do" are 2 questions every new post should address. <br /> <br /> So read the the thread stdunbar posted, and answer the 2 questions i've asked above and we'll give it another go. ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/814.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/814.page</link>
				<pubDate><![CDATA[Tue, 21 Mar 2006 11:10:03]]> GMT</pubDate>
				<author><![CDATA[ tfecw]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ I know what it is suppose to do but it is not doing it. I have been staring at it since 9 this morning. the loop is suppose to end when -1 is entered but I have no Idea how to code that I thought it may be But that is not working either but thanks for the help<br /> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/815.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/815.page</link>
				<pubDate><![CDATA[Tue, 21 Mar 2006 11:25:52]]> GMT</pubDate>
				<author><![CDATA[ heathfree]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ What's happening when you type in -1?]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/816.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/816.page</link>
				<pubDate><![CDATA[Tue, 21 Mar 2006 11:32:25]]> GMT</pubDate>
				<author><![CDATA[ tfecw]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ That did make it work but now I am not getting the the calutions I am suppose to get.<br /> I am going to have to turn it in late<br /> because I can not work on it anymore I have looked in the book and have search the web I have a funeral to go to tomorrow and a showing tonight I have put hours into this program and I thought that maybe some one could help me.<br /> I am still searching as we speak for a while loop that will work like she wants it to.]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/817.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/817.page</link>
				<pubDate><![CDATA[Tue, 21 Mar 2006 12:01:54]]> GMT</pubDate>
				<author><![CDATA[ heathfree]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ This is why you need to be specific. I was thinking you had a problem with your while loop, but now you are saying your calculations aren't working. I don't know what that means. What are you calculating, what are you getting vs what should you be getting. Use actual numbers. <br /> <br /> Now as I read the last part of your post, you indicate that you are still having while loop troubles. I thought you said you figured it out. <br /> <br /> [quote]<br /> ...I thought that maybe some one could help me. <br /> [/quote]<br /> <br /> People can help you. I'm not a mind reader. Only you can tell me what you are having difficulty with. You can't just say "help me" and expect people to know what you are talking about. <br /> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/818.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/818.page</link>
				<pubDate><![CDATA[Tue, 21 Mar 2006 12:12:11]]> GMT</pubDate>
				<author><![CDATA[ tfecw]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ I am no expert but most people can look at code and figure out what is wrong the code is there I added numItems = numItems -1;copy and paste in a program and u can see what is doing. I am a new programmer and will never do it again. the instructions r posted before. stop answering if u can not help<br /> my code is below<br />  import javax.swing.*; <br /> import java.util.*; <br /> import java.text.*; <br /> public class AutoGarage <br /> { <br /> public static void main(String[]args) <br /> { <br /> Scanner s= new Scanner(System.in); <br /> int numItems = 0; <br /> String name = ""; <br /> double average = 0.0; <br /> double totalcollected = 0.0; <br /> double amount = 0.0; <br /> while( numItems&gt;=0) <br /> { <br /> numItems = numItems -1;<br /> <br /> <br /> System.out.println("enter all amounts collected separated <br /> by spaces,terminated with a -1"); <br /> <br /> numItems=s.nextInt(); <br /> <br /> average=s.nextDouble(); <br /> totalcollected=s.nextDouble(); <br /> amount=s.nextDouble(); <br /> totalcollected=numItems+amount; <br /> average=totalcollected/numItems; <br /> <br /> System.out.println(); <br /> System.out.println("Oil change"); <br /> System.out.printf("%-10s%10s%10s%10s%10s%n","NAME","jobs","Total Collected","average cost"); <br /> }<br /> }<br /> }<br /> //{ <br /> <br /> <br /> //JOptionPane.showMessageDialog(null,"Oil change surveyed"+ numItems+"\n Total Jobs "+totalcollected+"\n Average sale ", <br /> //JOptionPane.INFORMATION_MESSAGE); <br /> <br /> <br /> //} <br /> //} <br /> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/819.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/819.page</link>
				<pubDate><![CDATA[Tue, 21 Mar 2006 12:40:30]]> GMT</pubDate>
				<author><![CDATA[ heathfree]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ heathfree - I fully understand that you're frustrated but please don't take it out on us - we're unpaid volunteers that like to try to assist people.<br /> <br /> Now, when I compiled your code the first thing I got was:<br /> <br /> [code]<br /> Exception in thread "main" java.util.MissingFormatArgumentException: Format specifier  '10s'<br />         at java.util.Formatter.format(Formatter.java:2429)<br />         at java.io.PrintStream.format(PrintStream.java:899)<br />         at java.io.PrintStream.printf(PrintStream.java:800)<br />         at AutoGarage.main(AutoGarage.java:34)<br /> [/code]<br /> <br /> In looking at the code you have:<br /> <br /> [code]        System.out.printf("%-10s%10s%10s%10s%10s%n","NAME","jobs","Total Collected","average cost");<br /> [/code]<br /> <br /> Notice that your format string is looking for 5 strings but you only supply 4.  What did you mean to have as your 5th string?<br /> <br /> <br /> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/820.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/820.page</link>
				<pubDate><![CDATA[Tue, 21 Mar 2006 13:10:24]]> GMT</pubDate>
				<author><![CDATA[ stdunbar]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ I am not trying to take anything out on anybody but I asked a question about the while Loop and how to get it to do what the assignment ask me to do, which was to end when I enter -1 I fix that then I was getting the error you were talking about. and I said that My calculations. are not working. I have really tried with this stupid java I just think this intro class is way to advance. Anyway I was working on that code for 7 hrs. by the time I ask for help I tried to do it on my own.]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/825.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/825.page</link>
				<pubDate><![CDATA[Tue, 21 Mar 2006 19:41:56]]> GMT</pubDate>
				<author><![CDATA[ heathfree]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ took out the fifth formatting num still getting error<br /> enter all amounts collected separated by spaces,terminated with a -1<br /> 12.5 13.5 13.5 -1<br /> Exception in thread "main" java.util.InputMismatchException<br />         at java.util.Scanner.throwFor(Scanner.java:819)<br />         at java.util.Scanner.next(Scanner.java:1431)<br />         at java.util.Scanner.nextInt(Scanner.java:2040)<br />         at java.util.Scanner.nextInt(Scanner.java:2000)<br />         at AutoGarage.main(AutoGarage.java:1<img src="http://forums.hotjoe.com//images/smilies/b2eb59423fbf5fa39342041237025880.gif"  /><br /> Press any key to continue . . .<br /> do not know what to do with it?????<br /> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/826.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/826.page</link>
				<pubDate><![CDATA[Tue, 21 Mar 2006 19:54:54]]> GMT</pubDate>
				<author><![CDATA[ heathfree]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ Your first scanner input is nextInt() - it needs an integer.  I ran the code you posted in this thread with an integer first and then the doubles that you showed and, after fixing the printf it has at least a start.]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/828.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/828.page</link>
				<pubDate><![CDATA[Tue, 21 Mar 2006 21:54:12]]> GMT</pubDate>
				<author><![CDATA[ stdunbar]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ [code]<br /> import javax.swing.*; <br /> import java.util.*; <br /> import java.text.*; <br /> public class AutoGarage <br /> { <br /> public static void main(String[]args) <br /> { <br /> Scanner s= new Scanner(System.in); <br /> int numItems = 0; <br /> String name = ""; <br /> double average = 0.0; <br /> double totalcollected = 0.0; <br /> double amount = 0.0; <br /> while( numItems&gt;=0) <br /> { <br /> numItems = numItems -1; <br /> <br /> <br /> System.out.println("enter all amounts collected separated <br /> by spaces,terminated with a -1"); <br /> <br /> numItems=s.nextInt(); // I had  a next int all the time that is not  <br /> //the problem<br /> average=s.nextDouble(); <br /> totalcollected=s.nextDouble(); <br /> amount=s.nextDouble(); <br /> totalcollected=numItems+amount; <br /> average=totalcollected/numItems; <br /> <br /> System.out.println(); <br /> System.out.println("Oil change"); <br /> System.out.printf("%-10s%10s%10s%10s%10s%n","NAME","jobs","Total Collected","average cost"); <br /> } <br /> } <br /> } <br /> //{ <br /> <br /> <br /> //JOptionPane.showMessageDialog(null,"Oil change surveyed"+ numItems+"\n Total Jobs "+totalcollected+"\n Average sale ", <br /> //JOptionPane.INFORMATION_MESSAGE); <br /> <br /> <br /> //} <br /> //} <br /> [/code]]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/831.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/831.page</link>
				<pubDate><![CDATA[Wed, 22 Mar 2006 04:58:13]]> GMT</pubDate>
				<author><![CDATA[ heathfree]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ No, it isn't your code [i]it is your input[/i].  You said you ran it with <br /> [code]<br />  12.5 13.5 13.5 -1 <br /> [/code]<br /> <br /> The first number [b]has[/b] to be an integer because that is the first scanner thing you're looking for.]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/832.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/832.page</link>
				<pubDate><![CDATA[Wed, 22 Mar 2006 08:04:32]]> GMT</pubDate>
				<author><![CDATA[ stdunbar]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ Hi everyone,<br /> <br /> I'm a little lost at the moment. My homework is to implement search types (breadth, depth, hill climbing, best first, lowest cost first, A* distance and A* time). <br /> <br /> We have been given two files, places and distance. The Places file contains a list of places longitude and latitude. The following is an extract:<br /> <br /> Adelong,3531,14806<br /> Albury,3607,14692<br /> Alstonvill,2885,15346<br /> Armidale,3052,15167<br /> Balranald,3464,14356<br /> <br /> The Distances gives the origin, destination, distance in km and the road type. The road type is from 1 to 5 where each road type has a maxiumum speed allocated to it. Here is an extract:<br /> <br /> Adelaide,Tailem Bend,99,1<br /> Adelaide,Gawler,43,1<br /> Adelaide,Port Wakefield,97,1<br /> Albany,Bridgetown,276,5<br /> Albany,Jerramungup,180,3<br /> <br /> I have absolutley NO idea how to create the tree from this data to search through using the various algorithms. Do I read each line into an array, or vector, do I create a vector for each object separated by a comma, is it something completely different? <br /> <br /> Before I can even begin doing the algorithms I need to know how to create the tree so I am very stuck.  <img src="http://forums.hotjoe.com//images/smilies/c30b4198e0907b23b8246bdd52aa1c3c.gif" /> <br /> <br /> Thanks,<br /> ut]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/833.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/833.page</link>
				<pubDate><![CDATA[Wed, 22 Mar 2006 20:22:01]]> GMT</pubDate>
				<author><![CDATA[ unknownterra]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ unknownterra - I split this thread up into a separate thread for you.  In the future it is easier to create a new thread for your question so that the answers to your question won't get mixed up with the answers from the question that heathfree asked.]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/838.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/838.page</link>
				<pubDate><![CDATA[Thu, 23 Mar 2006 09:11:53]]> GMT</pubDate>
				<author><![CDATA[ stdunbar]]></author>
			</item>
			<item>
				<title>Re:Help with homework - scanner problems</title>
				<description><![CDATA[ Thanks heaps! I didn't know I should do that.]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/840.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/840.page</link>
				<pubDate><![CDATA[Fri, 24 Mar 2006 04:35:55]]> GMT</pubDate>
				<author><![CDATA[ unknownterra]]></author>
			</item>
			<item>
				<title>Re:Help with homework - scanner problems</title>
				<description><![CDATA[ so it looking for a next int how do I fix it????]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/841.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/841.page</link>
				<pubDate><![CDATA[Fri, 24 Mar 2006 06:04:30]]> GMT</pubDate>
				<author><![CDATA[ heathfree]]></author>
			</item>
			<item>
				<title>Re:New users - the best ways to ask for homework help / how to post a question</title>
				<description><![CDATA[ [quote=stdunbar]No, it isn't your code [i]it is your input[/i].  You said you ran it with <br /> [code]<br />  12.5 13.5 13.5 -1 <br /> [/code]<br /> <br /> The first number [b]has[/b] to be an integer because that is the first scanner thing you're looking for.[/quote]<br /> <br /> (quoting to move this to page 2 )<br /> <br /> To fix the problem you do basically what stdunbar said to do. <br /> <br /> 12.5 is not an Integer, which is what your code is looking for as the first input. To fix the problem would be to change your input. <br /> <br /> Give something like:<br /> [quote]3 12.5 15.5 9.2 [/quote]<br /> a shot]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/842.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/842.page</link>
				<pubDate><![CDATA[Fri, 24 Mar 2006 07:56:19]]> GMT</pubDate>
				<author><![CDATA[ tfecw]]></author>
			</item>
			<item>
				<title>Re:Help with homework - scanner problems</title>
				<description><![CDATA[ but that is not how that program is suppose to run I tried moving the amount=s.nextDouble();up in front of the int but it still gives me that same problem. So now what?????? I am really not liking the scanner]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/843.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/843.page</link>
				<pubDate><![CDATA[Fri, 24 Mar 2006 08:12:55]]> GMT</pubDate>
				<author><![CDATA[ heathfree]]></author>
			</item>
			<item>
				<title>Re:Help with homework - scanner problems</title>
				<description><![CDATA[ enter all amounts collected separated by spaces,terminated with a -1<br /> 1 12.3 13.4 12.9 -1<br /> Exception in thread "main" java.util.InputMismatchException<br />         at java.util.Scanner.throwFor(Scanner.java:819)<br />         at java.util.Scanner.next(Scanner.java:1431)<br />         at java.util.Scanner.nextInt(Scanner.java:2040)<br />         at java.util.Scanner.nextInt(Scanner.java:2000)<br />         at AutoGarage.main(AutoGarage.java:25)<br /> Press any key to continue . . .<br /> Still giving the same problem]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/844.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/844.page</link>
				<pubDate><![CDATA[Fri, 24 Mar 2006 08:14:43]]> GMT</pubDate>
				<author><![CDATA[ heathfree]]></author>
			</item>
			<item>
				<title>Re:Help with homework - scanner problems</title>
				<description><![CDATA[ at the school right now tutor has not showed up was suppose to be here at 10 can not get any help from this college.  <img src="http://forums.hotjoe.com//images/smilies/499fd50bc713bfcdf2ab5a23c00c2d62.gif" /> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/845.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/845.page</link>
				<pubDate><![CDATA[Fri, 24 Mar 2006 08:29:37]]> GMT</pubDate>
				<author><![CDATA[ heathfree]]></author>
			</item>
			<item>
				<title>Re:Help with homework - scanner problems</title>
				<description><![CDATA[ [code]<br />  numItems=s.nextInt(); // I had  a next int all the time that is not  <br />  //the problem<br />  average=s.nextDouble(); <br />  totalcollected=s.nextDouble(); <br />  amount=s.nextDouble(); <br /> <br /> [/code]<br /> <br /> This is the most current code you've posted. FOr your input to work you MUST input an Integer, followed by 3 doubles. <br /> <br /> if you want to enter the -1 last, ou need to change your code to look something like the following.<br /> <br /> [code]<br />  //the problem<br />  average=s.nextDouble(); <br />  totalcollected=s.nextDouble(); <br />  amount=s.nextDouble(); <br /> <br />  numItems=s.nextInt(); // I had  a next int all the time that is not  <br /> <br /> [/code]<br /> Now your input needs to be 3 doubles followed by an int.]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/846.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/846.page</link>
				<pubDate><![CDATA[Fri, 24 Mar 2006 08:33:37]]> GMT</pubDate>
				<author><![CDATA[ tfecw]]></author>
			</item>
			<item>
				<title>Re:Help with homework - scanner problems</title>
				<description><![CDATA[ I fix it the tutor finally showed up.]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/72/847.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/72/847.page</link>
				<pubDate><![CDATA[Fri, 24 Mar 2006 09:46:42]]> GMT</pubDate>
				<author><![CDATA[ heathfree]]></author>
			</item>
	</channel>
</rss>
