Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The function main() prompts the user for an option, depending on the option it a

ID: 440318 • Letter: T

Question

The function main() prompts the user for an option, depending on the option it asks a specific date mm dd yyyy or just year yyyy. Verify that input values are valid and year yyy is greater than 1751. It is not enough to simply check 1<=mm <=12 and 1<=dd<=31. Depending on the month (e.g., February) dd should be less than 29 or 28 if the year is a leap year etc. If date is not valid, ask user to enter valid data. ? In case of option 1, the main function calls a function day = day_of_date(mm, dd, yyyy)that returns the day on which the given date falls. Using the returned value as a parameter, the main function calls another function printDayName( day ) to print the name of the day.

Explanation / Answer

THIS WILL BE HELPFUL FOR YOU AND PL RATE ME FIRST To change processing options, select Option 1 (USER) on the Dialog Options Menu and press ENTER. Figure 6 shows the DFSMSrmm Dialog User Options panel that DFSMSrmm displays. |Figure 6. DFSMSrmm Dialog User Options Panel | Panel Help |------------------------------------------------------------------------------- |EDGP@OP1 DFSMSrmm Dialog User Options |Command ===> | |Date format . . . . . ISO ( American, European, Iso or Julian ) |Time zone . . . . . . MESZ +01:00:00 ( zone offsetHH:MM:SS) | |Confirm deletes . . . YES ( Yes or No ) | |Processing option . . F F - Foreground, B - Background |DSNAME case option . U M - Mixed, U - Upper |Eject option . . . . C C - Convenience, B - Bulk | |Variable reuse . . . Y Y - Yes, N - No | |Job statement information: | | ===>//* | ===>//* | ===>//* | ===>//* | | Enter END command to save changes, or CANCEL to end without saving. Use the Dialog User Options Menu to change any of these dialog options: What time zone offset should be used when date and time values are specified What date format should be used with lists and panels Whether DFSMSrmm displays delete request confirmation panels Whether DFSMSrmm processes your requests interactively or saves them in a data set to be processed when you exit the dialog |What case option (upper or mixed) should be used |with Data Set Name. If cartridges are ejected to a convenience input/output station or to a high-capacity output station If DFSMSrmm should reuse saved variable values to prime the ISPF dialog panels All of the information you enter on this panel is optional. Use the END command to save any changes you make. Setting the date format Choose from the options listed in Table 2 to set the date format DFSMSrmm uses when it displays lists or panels: Table 2. Date format options Language Format Example American mm/dd/yyyy 12/15/2011 European dd/mm/yyyy 15/12/2011 Iso yyyy/mm/dd 2011/12/15 Julian yyyy/ddd 2011/349 The date format is initially set to JULIAN. When you change this initial setting, DFSMSrmm stores the new date format and remembers it across sessions. You can change the date format at any time by returning to the DFSMSrmm Dialog User Options panel or by using the DATE command. Use the DATE command from the command or option line of any panel to bypass the DFSMSrmm Dialog User Options panel. Use DATE with any of these parameters: AMERICAN, EUROPEAN, ISO, or JULIAN. For example, ===> DATE EUROPEAN causes DFSMSrmm to set the date format to dd/mm/yyyy. If you use DATE with no parameters, DFSMSrmm displays the current setting for date format. DFSMSrmm always displays dates using 4 characters for the year, so that twenty first century dates can be supported. For example, 15 March 99 is 15/03/1999 and 15 March 01 is 15/03/2001 in European format. Setting the time zone Choose what time zone offset should be used when date and time values are specified. The format is {+|-}HH[:MM[:SS]] where: +|- is the offset direction. Specify + to indicate that the offset is East of the zero median (UT). Specify - to indicate that the offset is West of the zero median (UT). The offset direction is required. HH is hours MM is minutes SS is seconds An optional colon (:) separates hours from optional minutes and optional seconds. You can specify a time in the range between 00:00:00 to 15:00:00 for HH:MM:SS. MM and SS value range is 00 to 59. Selecting command processing You can select how DFSMSrmm is to process your requests for functions. Choose one of these options: Foreground DFSMSrmm processes your requests interactively Background DFSMSrmm saves your requests in a data set Confirming delete and release requests You can confirm delete and release actions before DFSMSrmm performs them. For example, if you delete a data set on a volume, using the Delete Data set panel, and you requested the confirm option for your session, DFSMSrmm displays the Confirm Delete Data Set panel. This panel shows information about the data set you chose and asks for confirmation that you want this data set deleted from DFSMSrmm. Put YES in the Confirm Deletes field of the DFSMSrmm Dialog User Options panel if you want to confirm all delete and release actions before DFSMSrmm performs them. Put NO if you do not want to confirm any actions. The confirm delete option is initially set to YES. Once you change this initial setting, DFSMSrmm stores the new setting and remembers it across sessions. You can change the confirm delete option at any time during your session by returning to the DFSMSrmm Dialog User Options panel or by using the CONFIRM command. Use the CONFIRM command from the command or option line of any panel to bypass the DFSMSrmm Dialog User Options panel. Use CONFIRM with either ON or OFF. Enter ===> CONFIRM ON and DFSMSrmm prompts you to confirm a specific delete or release action. You can change this option repeatedly during your DFSMSrmm ISPF session. See Deleting software product information for more information on the individual confirm delete panels.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote