blob: e0bd6ca9636afbdd41333541d6dcd2a9aeb4de06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# APP2 Programation et algorithmes
This repo contains work created for the USherbrooke APP2 which introduces
programing as well as basic algorithms. The project requires that we (the
students) create a C library which doesn't rely on third party libraries to do
the following things:
| Task | filename | Level |
| :------------------------------------ | :----------------- | :------- |
| Spot characters in a string | `findChar.h` | Easy |
| Identify words which are palindromes | `findPalindrome.h` | Easy |
| Calculate sines (using series) | `sine.h` | Medium |
| Calculate cosines (using series) | `cosine.h` | Medium |
| Matrix addition | `TODO` | Hard* |
| Matrix multiplication | `TODO` | Hard* |
*This is the first programing APP. The word Hard is used very liberaly here.
# Structure
Files which do a specific operation required by the APP are located in their
one files using their aforementioned filenames. Any function used by more than
one of those functions are located in the `format.h` header files. Also, the
`testsuite.c` provides an easy way to test the library with multiple edge cases
using data contained in the `testData.h` header file.
# Testing mermaid support on github
This is a sample UML mermaid file:
```mermaid
classDiagram
Animal <|-- Duck
Animal <|-- Fish
Animal <|-- Zebra
Animal : +int age
Animal : +String gender
Animal: +isMammal()
Animal: +mate()
class Duck{
+String beakColor
+swim()
+quack()
}
class Fish{
-int sizeInFeet
-canEat()
}
class Zebra{
+bool is_wild
+run()
}
```
|