Skip to content

A simple C++ program that processes payment and people records from text files to generate itemised purchase statements with totals and input validation. Coursework for my university's "Programming in C++" module, where I attained 90 out of 100 marks.

Notifications You must be signed in to change notification settings

MichaelRFaria/cpp-payments-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-payments-database

A simple C++ program that reads data from two text files - payments.txt and people.txt - and outputs itemized purchase statements for each person, including their total spending.

How It Works

  • Reads payment records (name item price) from payments.txt
  • Reads a list of people from people.txt
  • Generates a statement for each person showing their purchases and total
  • Validates input and reports errors for missing or invalid data

Example Output

Bob
eggs 2.5
pen 3.5
Total: 6

Alice
apple 1.5
eggs 2
Total: 3.5

About

A simple C++ program that processes payment and people records from text files to generate itemised purchase statements with totals and input validation. Coursework for my university's "Programming in C++" module, where I attained 90 out of 100 marks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages