/******************************************************************
 * Program Insert assignment number: Insert assignment name
 *
 * Programmer: Insert your name
 *
 * Due Date: Insert due date

 *
 * COMP 110-001        Instructor: Tyler Johnson
 *
 * Description: This program asks the user for the number of days
 *				he/she attends COMP110 during the week and outputs
 *				the percentage of days of the week that is
 *
 * Input: Number of days per week attending COMP110
 *
 * Output: Percentage of days per week spent attending COMP110

 *
 ******************************************************************/

import java.util.Scanner;

public class TypeCasting
{
    public static void main(String[] args)
    {
        final int DAYS_PER_WEEK = 7;

        System.out.println("How many days per week do you attend COMP110?");
        Scanner keyboard = new Scanner(System.in);

        byte daysOfComp110 = keyboard.nextInt();

        double percentage = daysOfComp110 / DAYS_PER_WEEK;
        percentage = percentage * 100.0f;

        System.out.println("You attend COMP110 on " + percentage + "% of the days in the week.");
    }
}