Only the java programmmer.

Perfectqsdf
MonthDaysDemo.java

/** *Description: This program will demonstrate the class in a program that ask the user to enter the monthand the year display the number of days in month. *Class: Fall - COSC 1437.81002 *Assignment5: MonthDays *Date: 10/02/2018 *@author ******* *@version 0.0.0 */ //create a scanner class. import java.util.Scanner; //Demo class public class MonthDaysDemo /** * @param String as args * @return the number of days in a month */ { //Main method public static void main(String args[]) { int month, year; //Scanner class object Scanner sc = new Scanner(System.in); //Reading month System.out.print("\n\n Enter a month (1-12): "); month = sc.nextInt(); //Reading year System.out.print("\n\n Enter a year: "); year = sc.nextInt(); //Creating object MonthDays obj = new MonthDays(month, year); //Printing number of days System.out.println("\n " + obj.getNumberOfDays() + " days \n"); } }