Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi, can I see an example of an hierarchy chart for this program and the pseudocode? Thanks Your program must include at least the following
Hi, can I see an example of an hierarchy chart for this program and the pseudocode? Thanks
Your program must include at least the following modules (when specified, you may not change the name or parameter list - the number of parameters, the type of each parameter, or their order - for any of these modules) get_date( An input module that retrieves the components of a date (month, day, year) from the user. The month is expected to be an integer from 1 to 12, the day an integer from 1 to 31, and the year a four-digit integer. As in v.2 of the "The Cricket as a Thermometer" handout, you may assume the user has been provided with information on the screen indicating what date should be entered (e.g., today's date or their birthday). You may also assume that the user enters valid numbers foir dates since 15 October 1582 compute_jdn(in year As Integer, in month As Integer, in day As Integer, out jdn As Integer) A processing module that computes the JDN for the given date compute_dow(in year As Integer, in month As Integer, in day As Integer, out dow As Integer) A processing module that computes the "day of the week" (DOW) number- an integer where 0 = Sunday, 1 = Monday, etc.-for the given date. The DOW is the remainder when ( JDN + 1 ) is divided by7 compute_days( A processing module that computes the number of days between two given JDNs. You may assume the JDN provided in the first parameter is less than or equal to the JDN provided in the second parameter display_date(in year As Integer, in month As Integer, in day As Integeir) An output module that displays the given date in the form "m/d/yyyy display_results( in today_jdn As Integer, ___, in birthday_jdn As Integer in birthday_dow As Integer, in days_between As Integer) An output module that displays today's date (as input by the user) and corresponding JDN, the user's birthday and corresponding JDN, the weekday number of the user's birthday, and number of days since the user was born. Your program must include at least the following modules (when specified, you may not change the name or parameter list - the number of parameters, the type of each parameter, or their order - for any of these modules) get_date( An input module that retrieves the components of a date (month, day, year) from the user. The month is expected to be an integer from 1 to 12, the day an integer from 1 to 31, and the year a four-digit integer. As in v.2 of the "The Cricket as a Thermometer" handout, you may assume the user has been provided with information on the screen indicating what date should be entered (e.g., today's date or their birthday). You may also assume that the user enters valid numbers foir dates since 15 October 1582 compute_jdn(in year As Integer, in month As Integer, in day As Integer, out jdn As Integer) A processing module that computes the JDN for the given date compute_dow(in year As Integer, in month As Integer, in day As Integer, out dow As Integer) A processing module that computes the "day of the week" (DOW) number- an integer where 0 = Sunday, 1 = Monday, etc.-for the given date. The DOW is the remainder when ( JDN + 1 ) is divided by7 compute_days( A processing module that computes the number of days between two given JDNs. You may assume the JDN provided in the first parameter is less than or equal to the JDN provided in the second parameter display_date(in year As Integer, in month As Integer, in day As Integeir) An output module that displays the given date in the form "m/d/yyyy display_results( in today_jdn As Integer, ___, in birthday_jdn As Integer in birthday_dow As Integer, in days_between As Integer) An output module that displays today's date (as input by the user) and corresponding JDN, the user's birthday and corresponding JDN, the weekday number of the user's birthday, and number of days since the user was bornStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started