Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help me in this I want to modify the codes. For the autobot to be true Account: H. asi and arraylab: Whif Jova vill, Seanner:

help me in this
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
I want to modify the codes. For the autobot to be true
image text in transcribed
Account: H. asi and arraylab: Whif Jova vill, Seanner: private lat idy Brivate string nase; Bribate double balance; thit s. mene a same ) thil w.balence e bolance: Poverride public ine if (this, id ? o,id) return if olse iff(thitis id \& e.fid) reture 11. else reture 14 return oy I int 1d= Input, mestint( ) ArrayEmptyExeption: - Fractionjava a fractiontes. Accountjava a Account,java a Arayemptye a ankjewa x " backage arraylab; public class Bank \{ private MyArray= accounts, find(new Account (id, ",,)); return accounts. get(index); \} public boolean deleteAccount (int id) throws ArrayEmptyexception \{ II TOo0 Auto-generated method stub return status; 3 public void showal1() t System,out.print ln(accounts); ) BankTest: B medule-ilo A Faction in a 1 package arraylab; 3 public clasa bankrest \& Besk benk = nei. Bank(); int optlong def optien = input, noreint(); metteh (eption) f case it. case it If (bank addacequnt(act)) 5yacte out,pelatin (Toene ") Jeatch(ontoriacicineption ou)( 26252728ceseni24tryt tryf Bysteg.eout.peint("Entar id to search =" ") Int id = input, rextInt () i belied Syotentevt.peintin( InveHd Account ID+)? Jesteh(milisintarkineption nee)t breskt case 31 teref I Jeni - Fractionjava a fractiontes. Accountjava a Account,java a Arayemptye a ankjewa x " backage arraylab; public class Bank \{ private MyArray= accounts, find(new Account (id, ",,)); return accounts. get(index); \} public boolean deleteAccount (int id) throws ArrayEmptyexception \{ II TOo0 Auto-generated method stub return status; 3 public void showal1() t System,out.print ln(accounts); ) Project Run Window Help e 1 package arraylab; 2 public interface MyArraysT \{ public boolean isempty(); public boolean isfull(); public boolean add ( T value) throws outofspaceException, DuplicateExceptice; public boolean delete(T value) throws ArrayemptyException; public int find(T value); public T get(int index); MyArraylmpl: OutOfSpaceException: Mankjava M BankTestjava DuplicateEx. MyArayjava MyAnraylmpl. 1 package arraylab; 3 public class QutofSpaceException extends Exceptionf public outofspaceException(String message) \{ super(message); \} super(message); Output: Note: Download the code from Blackboard and complete the TODO tasks within the classes. Once complete zip the project and upload in Blackboard. Q.1: Write a generic program which will allow the user following functionality. - Add a new account - Find an account - Delete an account - List all accounts Hint: Use the program which is developed in the class. User could be shown following menu. Press 5 to quit 1. To add a new account 2 - Find an acoount by account id 3. Delete an account by account id 4 - List all accounts On selecting 1, user should be asked for all the attribute values of the account On selecting 2. usar should be asked for the account ld. Search should be performed accordingly. On selecting 3 , user should be asked for the account id. Delete should be pertormed accordingly. On selecting 4, user should be shown all the accounts with the detabs. Account: H. asi and arraylab: Whif Jova vill, Seanner: private lat idy Brivate string nase; Bribate double balance; thit s. mene a same ) thil w.balence e bolance: Poverride public ine if (this, id ? o,id) return if olse iff(thitis id \& e.fid) reture 11. else reture 14 return oy I int 1d= Input, mestint( ) ArrayEmptyExeption: - Fractionjava a fractiontes. Accountjava a Account,java a Arayemptye a ankjewa x " backage arraylab; public class Bank \{ private MyArray= accounts, find(new Account (id, ",,)); return accounts. get(index); \} public boolean deleteAccount (int id) throws ArrayEmptyexception \{ II TOo0 Auto-generated method stub return status; 3 public void showal1() t System,out.print ln(accounts); ) BankTest: B medule-ilo A Faction in a 1 package arraylab; 3 public clasa bankrest \& Besk benk = nei. Bank(); int optlong def optien = input, noreint(); metteh (eption) f case it. case it If (bank addacequnt(act)) 5yacte out,pelatin (Toene ") Jeatch(ontoriacicineption ou)( 26252728ceseni24tryt tryf Bysteg.eout.peint("Entar id to search =" ") Int id = input, rextInt () i belied Syotentevt.peintin( InveHd Account ID+)? Jesteh(milisintarkineption nee)t breskt case 31 teref I Jeni - Fractionjava a fractiontes. Accountjava a Account,java a Arayemptye a ankjewa x " backage arraylab; public class Bank \{ private MyArray= accounts, find(new Account (id, ",,)); return accounts. get(index); \} public boolean deleteAccount (int id) throws ArrayEmptyexception \{ II TOo0 Auto-generated method stub return status; 3 public void showal1() t System,out.print ln(accounts); ) Project Run Window Help e 1 package arraylab; 2 public interface MyArraysT \{ public boolean isempty(); public boolean isfull(); public boolean add ( T value) throws outofspaceException, DuplicateExceptice; public boolean delete(T value) throws ArrayemptyException; public int find(T value); public T get(int index); MyArraylmpl: OutOfSpaceException: Mankjava M BankTestjava DuplicateEx. MyArayjava MyAnraylmpl. 1 package arraylab; 3 public class QutofSpaceException extends Exceptionf public outofspaceException(String message) \{ super(message); \} super(message); Output: Note: Download the code from Blackboard and complete the TODO tasks within the classes. Once complete zip the project and upload in Blackboard. Q.1: Write a generic program which will allow the user following functionality. - Add a new account - Find an account - Delete an account - List all accounts Hint: Use the program which is developed in the class. User could be shown following menu. Press 5 to quit 1. To add a new account 2 - Find an acoount by account id 3. Delete an account by account id 4 - List all accounts On selecting 1, user should be asked for all the attribute values of the account On selecting 2. usar should be asked for the account ld. Search should be performed accordingly. On selecting 3 , user should be asked for the account id. Delete should be pertormed accordingly. On selecting 4, user should be shown all the accounts with the detabs

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

9. Make sure goals are internalized and accepted by the athlete.

Answered: 1 week ago