Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class SeriousScaping{
- public static void main(String arg[]){
- Scanner sc = new Scanner(System.in);
- System.out.println("Xp/hr(method 1)?");
- int xp1 = sc.nextInt();
- System.out.println("Gp/xp(method 1)?");
- double gp1 = sc.nextDouble();
- System.out.println("Xp/hr(method 2)?");
- int xp2 = sc.nextInt();
- System.out.println("Gp/xp(method 2)?");
- double gp2 = sc.nextDouble();
- System.out.println("Goal xp gain?");
- int xpn = sc.nextInt();
- System.out.println("Gp/hr (primary money maker?)");
- int gph = sc.nextInt();
- int time1 = xpn/xp1;
- double tgp1 = (double)(xpn*gp1);
- int time2 = xpn/xp2;
- double tgp2 = (double)(xpn*gp2);
- System.out.println("Method 1: "+time1+" hours and "+tgp1/1000000+"M gold = "+(int)(tgp1/gph + time1)+" hours total");
- System.out.println("Method 2: "+time2+" hours and "+tgp2/1000000+"M gold = "+(int)(tgp2/gph + time2)+" hours total");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment