Question: Do the following steps: Using For Loop, Percentile symbol(% ) Create a method to find out the prime number or not The prime number is

Do the following steps:

  1. Using For Loop, Percentile symbol(% ) Create a method to find out the prime number or not

The prime number is the number that is divisible only by itself and by 1.

  1. Create a class named BankAccount that contains several attributes (account number, customer name, amount, account type and isBlacked).

isBlacked is Boolean datatype.

Type is int datatype ( 1 :current account , 2: Saving account 3: account for every citizen).

  1. Create two constructor The first does not take any attribute the second takes all the attributes.
  2. Create setter and getter for all attributes.
  3. Create a method to print customer data.
  4. Creating a method for the process of depositing in the bank account, provided that the account is not in a blocking mode and a message for the user is removed or the process is successful.
  5. Create a method for the withdrawal process from the bank account, provided that the account is not in a blocking mode and the existing amount covers the withdrawn amount and outputs a message to the user with the success or failure of the process.
  6. Create a method to calculate the interest for each account and add it to the amount via the switch if the current account is the interest rate 0.5 if the interest rate savings account is 0.7 If the account for every citizen is the interest rate 0.3
  1. Using the array the user will enter several separate names and they will be stored in the array and will print names that start with the letter (a) ignoring the sensitivity of the letters.
  2. Using the array, the user enters several number stones and they will be stored in the matrix and print the largest and smallest number in the array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!