Exam4p3.java - import java.util class Exam4p3 public static void main(String args int choice double

Exam4p3.java - import java.util class Exam4p3 public static...

This preview shows page 1 out of 1 page.

import java.util.*; class Exam4p3 { public static void main(String args[]) { int choice; double originalBalance=0,deposit,withdraw,depositCharge,withdrawCharge; Scanner s1=new Scanner(System.in); depositCharge=0.25; withdrawCharge=0.50; while(true) { System.out.println("\n"); System.out.println("MAIN MENU "); System.out.println("1. Enter Original Balance"); System.out.println("2. Make a Deposit"); System.out.println("3. Make a Cash Withdrawal"); System.out.println("4. Display Balance"); System.out.println("5.Quit Program\n"); System.out.print("Enter your choice: "); choice=s1.nextInt(); switch(choice)
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '19
  • Scanner s1

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture