This project takes in a file of names, heights, weights, and ages, and generates a quick way of viewing the records. I am choosing to store the records separately as a pointed-to data structure, for the sake of (eventual) security: breaking it separate from the list of names allows us to (theoretically) put in some sort of security measure to protect them. for now, they are at least obfuscated in memory. Also it lets me use dynamic memory techniques for learnding purposes.
-
Week 1 Program Basics
- Code location: project.hpp: isValidHeight, isValidWeight
- Test location: TestDecisionsAndValidation
-
Week 2 Decisions and Loops
- Code location: project.cpp: isValidChoice
- Test location: test_project.cpp: testDecisionsAndValidation
-
Week 3 Functions and Program Design
- Code location: project.cpp: calcBmi, project.hpp: calcBmi declaration
- Test location: test_project.cpp testBmi
-
Week 4 Arrays, Searching, and Sorting
- Code location: project.cpp: findRecordByName
- Test location: test_project.cpp: testSearch
-
Week 5 Strings and Structures
- Code location: project.hpp: Patient, Records struct
- Test location: testSearch
-
Week 6 Pointers, Dynamic Memory, and Linked Lists
- Code location: project.cpp: readRecordFile
- Test location:test_project.cpp: testPointeredStruct
-
Week 7 File I/O and Integration
- Code location: project.hpp: readRecordFile
- Test location: test_project.cpp: testFileBasedEntriesLoadAndBmi
each line of the file should be stored as such: Name Age Height(cm) Weight(kg)
such as Lily 15 120 45
| Class | Purpose |
|---|---|
Records |
Demonstrates structures, searching, and arithmetic |
Patient |
Demonstrates strings, pointers, arrays, custom record/class design |
make
./mainmake test- My project compiles with
make. - My project runs with
./main. - My tests run with
make test. - I deleted or replaced the sample project code.
- My project uses class names that are nouns from my own project.
- My project integrates all 7 course topics in reachable code.
- My project includes at least one unit test per course topic.
- My README explains where each topic appears.
- My README explains which test verifies each topic.
- My code is committed and pushed to GitHub Classroom.