Price Manipulation

Problem Statement: Price manipulation

You are required to create a class in C++ named Price with the following Data members, Data members should be publicly declared.

• Rupees
• Paisas

The Price class presents Price in Rupees and Paisa. For instance, Price (10, 80) means 10 rupees and 80 paisas. The Price class should have the following features as described in detailed descriptions:

Detailed Description:
Constructors

Class Price must have

• Default constructor, which must set Rupees and Paisas to zero.

• Parameterized constructor that receives two parameters of type int and initializes its private data: Rupees and Paisas with them. Note that if Paisas are 100 or greater than 100 then also convert it in Rupees.
Member Functions
• Create a function named Print()that displays the price of object in terms of rupees and paisas.
Operator overloading
• A member function that overloads the + Operator to add two objects of Price.

There should be an overloaded + operators:

• Add two objects and return Price object. Note that Paisas should not exceed 100.
• Add first number into second objects and return Price object. Note that paisas should not exceed 100.


Output of your program should be as follows:

Price is 10 rupees and 60 paisas

Price is 12 rupees and 80 paisas

After Addition

Price is 23 rupees and 40 paisas


Note: there 100 paisas in one rupee
The codding should in blodsheed Dve C++ (The solution should in CPP file)

Please any body solve it for me. Thanks[/b]
My C++ homework service is reasonably priced at $100 per function point. I can do this for about $500 + $200 for using a specific IDE. PM me and I'll send you my Paypal payment info.
when i type c++ in google this is the first site that comes up. it wouldnt be out of this world to realize your professor is likely looking at this post right now and know whoever uses the answer given at this site cheated on their homework.
Last edited on
Topic archived. No new replies allowed.