NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

package javaapplication1;
import java.util.Scanner;

/**
*
* @author Painless00
*/
public class mmGuildGlory {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int i;
int deckGlory;
int battlePassGlory;
int conquestCards;
int totalDeckGlory;
int sum1 = 0; //sum1 = totalDeckGlory + conquestCards
int sum2 = 0; //sum2 = sum1 *rankPerCent
int sum3 = 0; //sum3 = sum1 + sum2 + sum3
double rankPerCent = 0;
String[] rank = new String[9];
//String[] currentRank = new String[1];
String currentRank = new String();
rank[0] = "stone";
rank[1] = "wood";
rank[2] = "bronze";
rank[3] = "silver";
rank[4] = "gold";
rank[5] = "platinum";
rank[6] = "diamond";
rank[7] = "master";
rank[8] = "grandmaster";
System.out.printf("Type ur deck glory - max 4000: ");
deckGlory = input.nextInt();
System.out.printf("Type how many glory ur battle pass gives to ur deck - max 625: ");
battlePassGlory = input.nextInt();
totalDeckGlory = deckGlory + battlePassGlory;
System.out.printf("Type how many guild conquest cards you have in ur deck - max 10: ");
conquestCards = input.nextInt();
conquestCards *=400;
System.out.printf("conquestCards = %dn",conquestCards);
System.out.printf("What is ur current rank? ");
currentRank = input.nextLine();
currentRank = input.nextLine();
if ("stone".equals(currentRank)) {
rankPerCent = 0;
}
else if ("wood".equals(currentRank)) {
rankPerCent = 0.15;
}
else if ("bronze".equals(currentRank)) {
rankPerCent = 0.35;
}
else if ("silver".equals(currentRank)) {
rankPerCent = 0.55;
}
else if ("gold".equals(currentRank)) {
rankPerCent = 0.80;
}
else if ("platinum".equals(currentRank)) {
rankPerCent = 1.10;
}
else if ("diamond".equals(currentRank)) {
rankPerCent = 1.40;
}
else if ("master".equals(currentRank)) {
rankPerCent = 1.80;
}
else if ("grandmaster".equals(currentRank)) {
rankPerCent = 2.25;
}
else{
System.out.printf("it's not a valid rank.n");
}
sum1 = totalDeckGlory + conquestCards;
sum2 = (int) (sum1 * rankPerCent);
sum3 = sum1 + sum2;
System.out.printf("Guild glory after win: %dn",sum3);
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.