Hi LogicPro - I have a JAVA question I was hoping you could help me with?
Hiwelcome backLet me know the details
Hi Logic Pro! Thanks - yeah it's been awhile since I've been on here and bugged you. =) ...I am trying to make a program called Largest.java that inputs a series of 10 single-digit numbers and determines and prints the largest of the numbers. Except main() method, no other user-defined method is required.
To include at least these 3 varialbes:
counter: A counter to count to 10 (that is, to keep track of how many numbers have been input and to determine when all 10 numbers have been processed);
number: The current digit input to the program; and
largest: The largest number found so far.
So far I have the following code below, can you help me? I have to turn in a couple hours. If you can help me, can you also write the code for beginners so that I can understand it? Thanks so much!!!
//program name is XXXXX XXXXX
import java.util.Scanner;
public class Largest {
public static void main(String[] args)
public static void retrieveInput(Int number) {
}
public void input.nextInt(Int counter) {
counter = 0
while (counter <=10);
public static void ?(Int largest) {
public void display(Int results) {
System.out.println(// stmt):
Please wait.Check back in 10-20 minutes.
Ok, thanks LogicPro, will do! Just to confirm - does this mean you may not be able to do it so you want me to check back or that you are working on it? Thanks again...
Download answer from here: Largest.java You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant and fresh answers. It will ensure that question is for me. Please bookmark my profile page: http://www.justanswer.com/computer/expert-logicpro/ so you can come back and ask me a question anytime. Rate this answer as 'Excellent Service' and leave bonus or ask me if you need more information.
Thank you so much LogicPro - you're the best!!!
Welcome :)