Course Solutions Uncategorized (Solved) : Im Problem Code Cant Figure Help Import Javautilscanner Import Javautilrandom Use Random T Q28959916 . . . .

(Solved) : Im Problem Code Cant Figure Help Import Javautilscanner Import Javautilrandom Use Random T Q28959916 . . . .

 

Im having problem with some code and i cant figure it out, canyou help me?

import java.util.Scanner;
import java.util.Random; // so i can use the random tool

public class ChapterF422 {

public static void main(String[] args)
{
double putIn = 0;
double won = 0;
double tPutIn = 0;
double tWon = 0;

  
Random random = new Random(); //made an object for random
Scanner scanner = new Scanner(System.in);

System.out.println(“Boot up”);
  
putIn=scanner.nextDouble();
do //scanner might throw , might have to use try
{
String input; //for string
char yup;
do
{
System.out.println(“Please put your money into my coinslot”);
putIn = scanner.nextDouble(); //saves information
tPutIn = tPutIn + putIn; //add amount to the new total
int number1=random.nextInt(5); //max is five
int number2=random.nextInt(5);
int number3=random.nextInt(5); //these will match

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post