Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Choreography {
- public static void main(String[] args) {
- Scanner scn = new Scanner(System.in);
- double stepNumber=Double.parseDouble(scn.nextLine());
- double dancersNumber=Double.parseDouble(scn.nextLine());
- double daysNumber=Double.parseDouble(scn.nextLine());
- double stepsPerDay=((stepNumber/daysNumber)/stepNumber)*100;
- double result=Math.ceil(stepsPerDay);
- result =result/dancersNumber;
- if(stepsPerDay<13)
- System.out.printf("Yes, they will succeed in that goal! %.2f%c.",result,'\u0025');
- else
- System.out.printf("No, They will not succeed in that goal! Required %.2f%c steps to be learned per day.",result,'\u0025');
- scn.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement