The assignment reads "Write a void function named displayCalendarDays. This function is passed two input parameters. The first parameter is an int that represents the start day. Start days are numbered from 0 to 6 with 0 representing Sunday and 6 representing Saturday. The second parameter is an int that represents the number of days in the month. If the start day is not in the range 0 to 6 inclusive or if the number of days is not in the range 1 to 31 inclusive, the program should display a helpful error message instead of displaying a calendar. If the parameters are OK, the program should display the numbers for the calendar as they would appear on a typical calendar."
I have two separate bits of code already written out I'm just a little lost how to combine the code to satisfy the criteria, any and all help would be appreciated