⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 integratedtest.java

📁 bank account program. if there is saving and drawing, it will calculate the amount of your account
💻 JAVA
字号:
import javax.swing.JOptionPane;
import java.lang.Double;
import java.io.*;

public class IntegratedTest
{
	public static void main(String[] args)
	{
		Integrated acc = new Integrated();
		String inp = "";
		double inn = 0;

		inp = JOptionPane.showInputDialog("Please input the deposit amount: ");
		inn = Double.parseDouble(inp);
		acc.deposit(inn);

		inp = JOptionPane.showInputDialog("Please input the withdraw amount: ");
		inn = Double.parseDouble(inp);
		acc.withdraw(inn);

		inp = JOptionPane.showInputDialog("Please input the cheque amount: ");
		inn = Double.parseDouble(inp);
		acc.issueCheque(inn);
		
		System.out.printf("\n\nThe saving part now has balance : %,.2f",acc.getSavingsBalance());
		System.out.printf("\n\nThe current part now has balance : %,.2f",acc.getCurrentBalance());
		System.out.printf("\n\nThe integrated account now has balance : %,.2f",acc.getBalance());

	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -