Question: CS 1 1 0 0 - Computer Science and Its Applications T 4 : Conditional Logic Use the DATE ( . . . ) function

CS 1100- Computer Science and Its Applications
T4: Conditional Logic
Use the DATE(...) function to add months to the previous audit date. You are not allowed to use the EDATE(dots) function.
Document your function NextAudit_CSA using the design recipe linked in the syllabus prefix. Improve your function NextAudit_CSA by making it modular. We want to separate the concern of the business rule from the concern of how to apply it to the data. Define a function NextAudit2_CSA which takes the business rule as a function argument.
NextAudit2_CSA has the arguments as shown in this LAMBDA:
LAMBDA(last_audit,company_size,audit_result,business_rule,LET(...)),
where business_rule is defined by the above LAMBDA. Make use of the LAMBDA helper function MAP to implement NextAudit2_CSA.
The modular function NextAudit2_CSA has the benefit that it is easy to change the business rule simply by giving another business_rule function as an actual argument.
Appendix
We use a systematic way to document our functions. For each function XYZ that you write, provide the following information (adapted from the HtDP Function Recipe) in worksheet XYZ_info.
Function name
(5%) State what kind of data the desired function consumes and produces.
(10%) Formulate a concise answer to the question what the function computes.
(20%) Work through examples that illustrate the function's purpose. Important: do this step before you implement your function.
(30%) Provide the function definition (using a LAMBDA).
1 formula for all cells horizontally, vertically
Full Marks
 CS 1100- Computer Science and Its Applications T4: Conditional Logic Use

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!