Assignment 5.pdf - CSC 210 Introduction to Computer Programming Assignment 5 4 Upload a Java file for the following problems Problem 1 File Name

Assignment 5.pdf - CSC 210 Introduction to Computer...

This preview shows page 1 - 3 out of 3 pages.

CSC 210 - Introduction to Computer Programming Assignment - 5 ( 4%) Upload a Java file for the following problems: Problem 1: File Name: Class Name: BankAccount Problem Description: Write a program to perform the following Bank Operations: 1. Check Balance 2. Deposit Money 3. Withdraw Money 4. Change Answer of Security Question 5. Exit Guidelines: 1. Use switch case and while loop. 2. Variables to declare in main method: balance, answer, accountNo (assign default values) 3. Your code should contain the following methods: public static void checkBalance ( double balance , String answer , int accountNo){ } public static double depositMoney ( double balance){ } public static double withdrawMoney ( double balance){ } public static String changeAnsSecutityQuestion (){ } Steps to follow: 1. Display bank operations 2. Input user choice 3. Use switch to call the appropriate method 4. Implement the above methods in your program
Image of page 1
5. Loop again to display bank operations. Provide and exit the loop (hint: use return statement) Constraints: 1.
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 3 pages?

  • Fall '19
  • James

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors