Java or computer science( mostly programming) experts only not for essay writer.
/** *Description: This program uses the MonthDays class to determine a number of days in the specific month. *Class: Fall - COSC 1437.81003 *Assignment5: MonthDays Demo code *Date: 10/2/2018 *@author Bhaskar Bharati *@version 0.4.14 */ //Needed for the scanner class. import java.util.Scanner; /** * This class uses the MethodDays class blueprint to find the number *of days in a specific month. */ public class MonthDaysDemo { /** * @param String as args * @return nothing */ public static void main(String[] args) { //Create Scanner object for myVar input. Scanner myVar = new Scanner(System.in); //Display the messsage and get the user's typed month. System.out.printf("Enter a month (1-12): "); int month = myVar.nextInt(); //Display the message and get the user's typed year. System.out.printf("Enter a year: "); int year = myVar.nextInt(); //Create an instance of the MonthDays //class and pass the data to the constructor. MonthDays m = new MonthDays(month, year); //Display the number of days return by getNumberOfDays method. System.out.printf(m.getNumberOfDays()+" days"); } }