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);
}
}