Question: 1. Create a CheckingAccount class and the class contains the followings: One int data field named accountNo and one String data field named accountName. Both

1. Create a CheckingAccount class and the class contains the followings: One int data field named accountNo and one String data field named accountName. Both data fields are private A default (no-arg) constructor that initializes accountNo to 0.0 and accountName to empty string "" A constructor that creates a bank account object with the specified account no and account name An override method named toString() that displays checking account information Create an instance(object) of this checking account using the default constructor 2. Write the definition of a class Employee. The class has no constructors, one instance variable of type String called name, and one static variables of type int called employeeCount. 3. Declare an enum type called Major. It has 5 majors. (Use any 5 majors of your choice). (major such as Math, CS, etc.). Declare a major variable and set its value to one of the majors that you created. 4. Given a string variable str, write a loop to count how many vowels in the string str. If a letter is in a, e, i, o, u OR A, E, I, O, U, it is a vowel.

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!