info@meritcampus.com    +91-85006-22255
...

 What will be the output of the following program? `public class DailyDoseAmount {    public static void main(String[] args)     {        printAmount(40, 0);        printAmount(350, 28);        printAmount(528, 72);        printAmount(713, 129);        printAmount(687, 634);        printAmount(812, 389);    }    public static void printAmount(int numberOfFriends, int numberOfFollowers)     {        int amount = (numberOfFriends + numberOfFollowers) / 100;        amount *= 10;        amount = Math.max(40, amount);        amount = Math.min(100, amount);        System.out.println("For " + numberOfFriends + " Friends and " + numberOfFollowers + " Followers, the amount is " + amount);    }}`

 For 40 Friends and 0 Followers, the amount is 0For 350 Friends and 28 Followers, the amount is 30For 528 Friends and 72 Followers, the amount is 40For 713 Friends and 129 Followers, the amount is 40For 687 Friends and 634 Followers, the amount is 40For 812 Friends and 389 Followers, the amount is 40 For 40 Friends and 0 Followers, the amount is 40For 350 Friends and 28 Followers, the amount is 40For 528 Friends and 72 Followers, the amount is 60For 713 Friends and 129 Followers, the amount is 80For 687 Friends and 634 Followers, the amount is 100For 812 Friends and 389 Followers, the amount is 100 For 40 Friends and 0 Followers, the amount is 100For 350 Friends and 28 Followers, the amount is 100For 528 Friends and 72 Followers, the amount is 100For 713 Friends and 129 Followers, the amount is 100For 687 Friends and 634 Followers, the amount is 130For 812 Friends and 389 Followers, the amount is 120 Compilation Error
0
Wrong
Score more than 2 points