Skip to content

A small C++ program demonstrating a money class for handling monetary values.

Notifications You must be signed in to change notification settings

D-Integral/Money

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Overview

A small C++ program demonstrating a money class for handling monetary values. It supports input/output of amounts, arithmetic operations, and formatted display (like $1,234.56). This was a student exercise in object-oriented programming.

Details

This file implements a money class for representing and manipulating monetary values in C++.

  • Supports initialization from strings and long double numbers.
  • Provides methods to input (get) and output (show) monetary amounts.
  • Implements arithmetic operations (+, -, *, /) with proper handling of monetary format.
  • Converts between string representation (e.g., "$1,234.56") and numeric type (long double) for calculations.

Designed as a student exercise in object-oriented programming from Robert Lafore's C++ book.

About

A small C++ program demonstrating a money class for handling monetary values.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages