# data[].attributes.attachment_link.title
Inheritance - exercise Mziwamangwevu Ntutu

# data[].attributes.attachment_link.title
Week 3  Day 1 – Inheritance and Private Variables  Private Variables

# data[].attributes.attachment_link.title
Week 3 Day 2 Iterators, Generators, and more 

# data[].attributes.attachment_link.title
Week 3 Day 3 Dates and Times, Data Compression, Output Formatting, and more! 

# data[].attributes.attachment_link.title
Week 3 Day 4– Logging, Managing packages with pip, and Floating point Arithmetic 

# data[].attributes.attachment_link.title
Week 1 Day 3 Fetch Cross-Origin Requests 

# data[].attributes.attachment_link.title
Week 4  Day 2 – Linear Algebra  NumPy.dot

# data[].attributes.attachment_link.title
 Week 4  Day 4 – Trigonometric FunctionsDay 4 – Trigonometric Functions  Trigonometric Functions

# data[].attributes.attachment_link.title
Week 4  Day 1 – Introduction to NumPy  Introduction to NumPy

# data[].attributes.attachment_link.title
Week 4  Day 3 – Plotting graphs with NumPy  sine wave plot

# data[].attributes.attachment_link.title
Week 4  Day 3 – Plotting graphs with NumPy  sine wave plot

# data[].attributes.attachment_link.title
M6 Week 1  Day 1 – Introduction to Python Pandas  pandas.Series

# data[].attributes.attachment_link.readable_text
import javax.swing.JOptionPane;
import java.util.*;
public class Balance {

    public static void main(String[] args) {
        String choice="element";
        String Menu="\nD-Deposit \nW-Withdrawal \nE-Exit";

        String Choice="element";
        double balance = 0,d=0;
        double yearlyRate=0.025,w=0;

        do{
            choice=JOptionPane.showInputDialog(Menu+"\n Enter Choice:");
            choice=choice.toLowerCase();
            switch(choice.charAt(0) ){

                case 'd':
                JOptionPane.showMessageDialog(null,"Beginning of Month Balance:" + balance);
                balance=Double.parseDouble(JOptionPane.showInputDialog("Enter Deposit"));
                JOptionPane.showMessageDialog(null,"Beginning of Month Balance:" + balance);

                break;

                case 'w':
                JOptionPane.showMessageDialog(null,"Beginning of Month Balance:"+balance);
                w=Double.parseDouble(JOptionPane.showInputDialog("Enter Withdrawal              amount:"));
                balance = balance+(yearlyRate / 12) * balance;
                JOptionPane.showMessageDialog(null,"Balance after transaction:"+    (balance=balance-w));

                break;

                case 'e': System.exit(0);
                break;

                default:JOptionPane.showMessageDialog(null,"Access Denied!");

            }
        }
        while(choice.charAt(0)!=('e'));
    }
}