Answered step by step
Verified Expert Solution
Question
1 Approved Answer
implement in c++ Customer Account - id: int - number: int - firstName: string type: string - lastName: string - balance: float - account: Account
implement in c++
Customer Account - id: int - number: int - firstName: string type: string - lastName: string - balance: float - account: Account +Account() l+Customer() +Account (int,string, float) ++ Customer(int,string, string, Account +Account (Account) +Customer (Customer) l+setNumber(int): void |+setId(int): void +setType(string): void +setFirstName (string) l+setBalance (float): void |+setLastName (string): void +getNumber(): int +setAccount (Account): void +getType(): string l+getId(): int l+getBalance(): float +getFirstName(): string +show(): void l+getLastName(): string |+getAccount(): Account +show(): void Given the composition relationship described in the UML diagram above has been implemented, complete the following: Implement a method named 'readRecord' that accepts as argument an ID number for a student, then searches a tab delimited file named 'students.dat' for the record and returns the record if found For example: Test Result Customer data = readCustomer Record(3); == 3){ if(data.getId() data.show(); } ID Number: 3 First Name: Mike Last Name: Barry Account: Number: 13 Type: Saving Balance: $2018 Customer Account - id: int - number: int - firstName: string type: string - lastName: string - balance: float - account: Account +Account() l+Customer() +Account (int,string, float) ++ Customer(int,string, string, Account +Account (Account) +Customer (Customer) l+setNumber(int): void |+setId(int): void +setType(string): void +setFirstName (string) l+setBalance (float): void |+setLastName (string): void +getNumber(): int +setAccount (Account): void +getType(): string l+getId(): int l+getBalance(): float +getFirstName(): string +show(): void l+getLastName(): string |+getAccount(): Account +show(): void Given the composition relationship described in the UML diagram above has been implemented, complete the following: Implement a method named 'readRecord' that accepts as argument an ID number for a student, then searches a tab delimited file named 'students.dat' for the record and returns the record if found For example: Test Result Customer data = readCustomer Record(3); == 3){ if(data.getId() data.show(); } ID Number: 3 First Name: Mike Last Name: Barry Account: Number: 13 Type: Saving Balance: $2018
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started