NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

#include <iostream>
#include <cmath>
#include <conio.h>

using namespace std;

class ATM {
public:
double interesi;
double balanca;
double balanca_re;
double m;
double n;
double s;

public:
void Account();
void Kredit();
void Debiti();
void TregoBalancen();
void Kursimet();
void AccountRi();
void KontrolliAccount();
void Menu();
};


void ATM::Account(){
system("cls");
cout<<"vendosni balancen tuaj fillestare"<<endl;
cin>>balanca;
if(balanca <= 0.0){
cout<<"Balanca juaj nuk eshte e vlefshme"<<endl;
balanca=0.00;
}
else{
cout<<"Llogaria juaj u krijua"<<endl;
ATM::Menu();
}

}
void ATM::Kredit(){
cout<<"Sa para doni te depozitoni ?"<<endl;
cin>>n;
if(n>0.0){
balanca=balanca+n;
ATM::Menu();
}
else{
cout<<"Kjo shume nuk mund te depozitohet"<<endl;
ATM::Menu();
}
}
void ATM::Debiti(){
cout<<"Sa para doni te terhiqni ?"<<endl;
cin>>s;
if(s>balanca){
cout<<"Kjo shume nuk mund te terhiqet"<<endl;
}
else{
balanca = balanca - s;
ATM::Menu();
}
}
void ATM::TregoBalancen(){
cout<<"Balanca juaj eshte :"<<balanca<<endl;
ATM::Menu();
}
void ATM::Kursimet(){
cout<<"Vendosni perqindjen e interesit"<<endl;
cin>>interesi;
ATM::Menu();
}
void ATM::AccountRi (){
balanca_re = balanca + (balanca*interesi);
cout<<"Balanca juaj e re eshte: "<<balanca_re<<endl;
ATM::Menu();
}
void ATM::KontrolliAccount(){
cout<<"Sa para doni te terhiqni ?"<<endl;
cin>>m;
if(m>balanca_re){
cout<<"Kjo shume nuk mund te terhiqet"<<endl;
}
else{
cout<<"Komisioni eshte 100 leke"<<endl;
n=100;
balanca = balanca_re - (m+n);
cout<<"Balanca juaj e re eshte"<<balanca<<endl;
ATM::Menu();
}
}

void ATM::Menu(){
cout<<"Mirsevini ne menu !"<<endl;
cout<<"Shtyp 1 per te krijuar llogari te re nShtyp 2 per te depozituar paranShtyp 3 per te terhequr paranShtyp 4 per te pare balancennShtyp 5 per ta kthyer llogarine ne llogari kursiminShtyp 6 per te pare balancen e llogarise se kursimitnShtyp 7 per te terhequr para nga llogaria e kursimit";
cout<<endl;
int choice;
cin>>choice;
switch(choice){
case 1:
cout<<endl;
Account();
break;
case 2:
cout<<endl;
Kredit();
break;
case 3:
cout<<endl;
Debiti();
break;
case 4:
cout<<endl;
TregoBalancen();
break;
case 5:
cout<<endl;
Kursimet();
break;
case 6:
cout<<endl;
AccountRi();
break;
case 7:
cout<<endl;
KontrolliAccount();
break;
default:
cout<<"Shtypni nje numer nga 1-7"<<endl;
break;
}
}

int main(){
ATM thirr;
getch();
thirr.Menu();


return 0;
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.