Answered step by step
Verified Expert Solution
Link Copied!

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++

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

Please explain, Loss of ownership and proof. Thank you.

Answered: 1 week ago

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago