Skip to content

About

2265_mira_cisc-192_30625-8-1-final-project-CISC192FinalProject created by GitHub Classroom

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CISC 192 Lab 8-1: File-Based Medical Records

Overview

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.

Course Topics Integrated and Tested

  1. Week 1 Program Basics

    • Code location: project.hpp: isValidHeight, isValidWeight
    • Test location: TestDecisionsAndValidation
  2. Week 2 Decisions and Loops

    • Code location: project.cpp: isValidChoice
    • Test location: test_project.cpp: testDecisionsAndValidation
  3. Week 3 Functions and Program Design

    • Code location: project.cpp: calcBmi, project.hpp: calcBmi declaration
    • Test location: test_project.cpp testBmi
  4. Week 4 Arrays, Searching, and Sorting

    • Code location: project.cpp: findRecordByName
    • Test location: test_project.cpp: testSearch
  5. Week 5 Strings and Structures

    • Code location: project.hpp: Patient, Records struct
    • Test location: testSearch
  6. Week 6 Pointers, Dynamic Memory, and Linked Lists

    • Code location: project.cpp: readRecordFile
    • Test location:test_project.cpp: testPointeredStruct
  7. Week 7 File I/O and Integration

    • Code location: project.hpp: readRecordFile
    • Test location: test_project.cpp: testFileBasedEntriesLoadAndBmi

Input File Format

each line of the file should be stored as such: Name Age Height(cm) Weight(kg)

such as Lily 15 120 45

Object-Oriented Sample Design

Class Purpose
Records Demonstrates structures, searching, and arithmetic
Patient Demonstrates strings, pointers, arrays, custom record/class design

Build and Run

make
./main

Run Tests

make test

Final Submission Checklist

  • 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.

About

2265_mira_cisc-192_30625-8-1-final-project-CISC192FinalProject created by GitHub Classroom

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages