Answered You can hire a professional tutor to get the answer.


Program Description: Turn in a Java file named Birthdays.

Dear my Tutor.Can you please help me to solve a this problem?This is java.I attached a problem as notepad.=====================================================import java.util.*;public class BirthdaysShell {public static void main(String[] args){Scanner kb = new Scanner(;String repeat = "yes";while(repeat.equals("yes")){//ask name for person 1//call process method//ask the name of person 2//call process method//call result method6 of 7//ask if there are more people}}//public static int intro(){/*print a description of what your program does, asks the userwhat date is today and call the method dayOfYear to calculate what dayof the year is today and prints the informationthis method return what day of the year is today. For example iftoday is Febuary 20 this method should return 51*/return 0;}public static int monthInt(String month){/*user enters the month name and then this method return thenumeric value for the given month*/return 0;}public static int processPerson(Scanner console, int today, Stringname){/* this method receives a Scanner object, the day of the year,and num which say if it is the person num1 or num2. This methodasks for the person's birthday, calculate the day of the year forthe person and also calculate number of days till person's birthday.If the number of day till person's birthday is zero then print abirthday message, otherwise it will say how many days left untilthe person birthday. Also print the percentage of the left untilbirthday. In this method you need to call three methods:1.monthInt2. dayOfyear3. daysTillBdayFinally this method return number of days till person's Bday*/return 0;}7 of 7public static int dayOfYear(int month, int day){/*you need to call the method daysInMonth in orderto calculate the absolute day of the year fora given date. You need a for loop for this method */return 0;}public static int daysInMonth(int month){//return the number of days in a particular monthreturn 0;}public static int daysTillBday(int birthDayOfTheYear, inttodayOfTheYear){/*this method receives two int values representing what dayof the year is today, and what day of the year is theperson's birthday. You need to calculate the difference tosee how days are left till person's birthday.*/return 0;}//public static void results(int days1, int days2, String name1,Stringname2){/*This method gets number of days left to two person'sbirthday and prints out which person is born earlier thanother.*/}//}

Show more
Ask a Question