import java.util.*; public class Lab2InClass2 { public static void main(String[] args) { int daysPerWeek = 7; System.out.println("How many days per week do you attend COMP110?"); Scanner keyboard = new Scanner(System.in); int daysOfComp110 = keyboard.nextInt(); double percentage = daysOfComp110 / daysPerWeek; percentage = percentage * 100.0; System.out.println("You attend COMP110 on " + percentage + "% of the days of the week."); } }