NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
int bakiye=1000;
int yenibakiye;
String yapılacakislem;
int sifre;
Scanner read=new Scanner(System.in);
System.out.print("Şifrenizi giriniz(şifre=3270) : ");
sifre=read.nextInt();

for (int i = 1; i <4; i++)
{
if (sifre==3270)
{
System.out.println("Şifreniz doğru,sisteme giriş yapılıyor");
break;
}
else if (i==3)
{
System.out.println("Çok Sayıda Hatalı Şifre Girdiniz Sistemden Çıkılıyor...");
System.exit(0);
}
else
{
System.err.println("Şifre Hatalı!");
System.err.print("Şifrenizi Giriniz : ");
sifre=read.nextInt();
}

}
System.out.println("");
System.out.println("Bakiyeniz = " + bakiye);
System.out.println("");
System.out.println("Para Çekme = C ");
System.out.println("Para Yatırma = Y ");
System.out.println("Havale Yapma = H ");
System.out.print("Yapılacak İşlemi Seçiniz : ");


yapılacakislem=read.next();

switch (yapılacakislem) {

case "C": case "c":
System.out.print("Çekmek İstediğiniz Tutarı Giriniz : ");
int çekilecektutar;
çekilecektutar=read.nextInt();
bakiye=bakiye-çekilecektutar;
System.out.println("Yeni Bakiyeniz = "+bakiye);
System.out.println("“İşleminiz sona ermiştir, MOBİLPROGRAMLAMABANK iyi günler diler");
break;

case "Y": case "y":
System.out.print("Yatırmak İstediğiniz Tutarı Giriniz : ");
int yatirilacaktutar;
yatirilacaktutar=read.nextInt();
bakiye=bakiye+yatirilacaktutar;
System.out.println("Yeni Bakiyeniz = "+bakiye);
System.out.println("“İşleminiz sona ermiştir, MOBİLPROGRAMLAMABANK iyi günler diler");
break;

case "H": case "h":
System.out.print("Havale Tutarını Giriniz : ");
int havale;
havale=read.nextInt();
bakiye=bakiye-havale;
System.out.println("Son Bakiyeniz = "+bakiye);
System.out.println("İşleminiz sona ermiştir, MOBİLPROGRAMLAMABANK iyi günler diler");
break;
default:
System.err.println("Yanlış Bir İşlem Yaptınız İşleminizin Doğru Olduğundan Emin Olun");
}
}
}
     
 
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.