currency converter in C++ Programming Language

#include<iostream.h>
#include<conio.h>
class mon
{
   private:
       float rupee,paisa,paisa1,rupee1,tot,tot1,all,tps;
   public:
       void enter_rupee();
       void enter_paisa();
       void calcu_paisa();
       void calcu_rupee();
       void display();
};
void mon :: enter_rupee()
{
  cout<<"Enter The Rupee:->";
  cin>>rupee;
  cout<<"Enter The Second Time Rupee:->";
  cin>>rupee1;
}
void mon :: enter_paisa()
{
  cout<<"Enter The paisa:->";
  cin>>paisa;
  cout<<"Enter The second time Paisa:->";
  cin>>paisa1;
}
void mon :: calcu_rupee()
{

  tot=rupee+rupee1;
}
void mon :: calcu_paisa()
{

  tot1=paisa+paisa1;
  tps=tot1/100;
}
void mon :: display()
{
  float all;
  all=tot+tps;
  cout<<"The Rupee is:->"<<tot<<endl;
  cout<<"The Total Paisa is:->"<<tot1<<endl;
  cout<<"The Total Of Convert rupee:->"<<tps<<endl;
  cout<<"Tha Total of All is:->"<<all<<endl;
}

void main()
{
  clrscr();
  mon m;
  m.enter_rupee();
  m.enter_paisa();
  m.calcu_rupee();
  m.calcu_paisa();
  m.display();
  getch();
}

currency converter in C++ Programming Language currency converter in C++ Programming Language Reviewed by Unknown on 6:22:00 PM Rating: 5

4 comments:

  1. You are great with words. I enjoyed this and I will be back for more.

    Buy Silver Coins In San Francisco

    ReplyDelete
  2. Listed here you'll learn it is important, them offers the link in an helpful webpage: currency translate

    ReplyDelete
  3. varun dhawan professor look.....

    https://easystuffeasy.blogspot.com/2020/05/blog-post.html

    ReplyDelete
  4. Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place..
    silver price

    ReplyDelete

Powered by Blogger.