Results 21 to 37 of 37
Thread: scanner questions
- 10-25-2010, 01:25 AM #21
- 10-25-2010, 01:31 AM #22
Member
- Join Date
- Oct 2010
- Posts
- 81
- Rep Power
- 0
i know. im so mad. i dont know what im going to do. this program is due tomorrow. but if i were have to use loops. whould i need a scanner. because i could just put numerical values for a,b,c,d,f and then find the average of letter grades that you output. correct?
- 10-25-2010, 01:43 AM #23
You still need Scanner either way to input any data at all. I tried coding the program myself and am almost done with it actually. It is more advanced stuff than you probably know how to do at the moment.
Sincerely, Joshua Green
Please REP if I help :)
- 10-25-2010, 01:44 AM #24
Member
- Join Date
- Oct 2010
- Posts
- 81
- Rep Power
- 0
would you mind to show me your program? to give me an idea. im trying it right now. but i always seem to get stuck. these programs are ahead of what we learn idk why our teachers do this.
- 10-25-2010, 01:46 AM #25
When I'm done I will give you hints and help, but I won't just give you the code.
Sincerely, Joshua Green
Please REP if I help :)
- 10-25-2010, 01:48 AM #26
Member
- Join Date
- Oct 2010
- Posts
- 81
- Rep Power
- 0
okay thank you.. would we use both for and while loops ?
- 10-25-2010, 01:59 AM #27
Probably, although you can use them interchangeably.
Sincerely, Joshua Green
Please REP if I help :)
- 10-25-2010, 02:04 AM #28
Member
- Join Date
- Oct 2010
- Posts
- 81
- Rep Power
- 0
could you give me a hint on how to get the letter grades to be assigned to a numerical GPA value using the loops. im stuck there
- 10-25-2010, 02:09 AM #29
Here's a little something to get you started:
Java Code:Scanner keyboard = new Scanner(System.in); double classCount = 0; boolean valid = true; // More variables... while(valid == true) { //Keep getting grades until a "non-grade" is entered. //Keeping track of classCount as good grades are entered. } for(int i = 0; i < classCount; i++) { //Do manipulations and place your if statements here. //Keep a running total for the GPA. } // Calculate the total GPA // Output appropriatelySincerely, Joshua Green
Please REP if I help :)
- 10-25-2010, 02:12 AM #30
- 10-25-2010, 02:15 AM #31
Keep posting updated portions of you code so we can see where you are at.
Sincerely, Joshua Green
Please REP if I help :)
- 10-25-2010, 02:22 AM #32
Member
- Join Date
- Oct 2010
- Posts
- 81
- Rep Power
- 0
what is that for loop for again? im sorry im just very confused
-
cross-post: Java Grades Programming Help!!? - Yahoo! Answers
socboy: Please inform us of any other cross-posts.
- 10-25-2010, 02:36 AM #34
You don't need it, I was just giving something to look at to give you ideas.
Sincerely, Joshua Green
Please REP if I help :)
- 10-25-2010, 02:42 AM #35
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
I noticed the yahoo post some time ago - but is it a cross post of the OP? Well I guess only the OP can say...
There are a number of instances of this problem (wording always the same) and questions about it across the web from 2002 onwards.
-
- 10-25-2010, 09:23 AM #37
Another cross post
java scanner programming help - Java Programming Forums
dbLast edited by DarrylBurke; 10-25-2010 at 09:33 AM. Reason: Noticed that link to Yahoo! cross post is already in the thread
Similar Threads
-
Using scanner for CSV
By getName() in forum Advanced JavaReplies: 7Last Post: 06-20-2010, 04:33 PM -
Help With Scanner
By jtmoney0511 in forum New To JavaReplies: 10Last Post: 10-12-2009, 11:24 PM -
Need help with scanner.
By mainy in forum New To JavaReplies: 3Last Post: 07-28-2009, 02:11 PM -
Scanner questions
By Suzanne1187 in forum New To JavaReplies: 12Last Post: 03-12-2009, 02:31 AM -
need help with scanner
By whiterex in forum New To JavaReplies: 1Last Post: 04-22-2008, 01:41 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks