Due: Monday 10/07 10:00am
Submission name: work12.rkt
Part 0
Create functions based on your flow charts from the previous assignment. Use the test cases you made from your test case flow charts. (you can also find example flowcharts here: https://github.com/mks21-dw/thesource/blob/main/flowcharts/work11.md)
You should have 4 functions:
- Square area
- Circle area
- Shape area
- Closer Number
Part 1
Create a function based on the following flowchart
flowchart TD;
id0([fizzbuzz]) -- n --> id1[remainder n 15];
id1 -- result0 --> id2{if\nresult0 = 0};
id2 -- false --> id4(remainder n 3);
id2 -- true --> id3([15]);
id4 -- result1 --> id5{if\nresult1 = 0};
id5 -- false --> id7(remainder n 5);
id5 -- true --> id6([3])
id7 -- result2 --> id8{if\nresult2 = 0};
id8 -- false --> id9([-1]);
id8 -- true --> id10([5]);