Question: Worksheet 3-2: working with various data types in Java Suppose that we want to write a computer program. The program will be used to process

Worksheet 3-2: working with various data types in Java Suppose that we want to write a computer program. The program will be used to process information about the personal accounts for all clients of a Bank. In order to do that, the program should store various pieces of data for each account holder and their corresponding account. The data that needs to be stored in the program is listed in the following table. For each piece of data, indicate the smallest data type that could be used for storing the data in the program. Thern assuming that the program will be written in Java, indicate also the amount of memory in bytes that would be needed for each account holder and their corresponding account. Number of Bytes Required in Java Data to be Stored Data Type Needed Client ID: a number between 1 and 30,000 Client Name: text with maximum 25 characters including spaces Client Age: a number between 21 and 100 Client Gender: a letter 'M' or 'F Client Date of Birth: text in the format dd/mm/yyyy Client Postal Address: text with maximum 50 characters including spaces Account Number: a number between 055555 and 099999 Premium Account: True or False Account Balance: a number including dollars and cents and possibly of negative value Then write a Java program called BankAccounts to capture and then display all the above information for one person
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
