1. Create the deposit class described below. Member variables: E CustomerNo: Stores the customer number. Positive integer. E Balance: Stores the amount in the account. Positive real number. E Interest Rate: Stores the interest rate applied to customers as a percentage. Same for all customers (static) positive real number at value. Its initial value is 1.2. Member functions: E <>: Receives input from user for customer number and quantity. E getCustomerNo (): Returns the value of the customer number. E getBalance (): Returns the balance value. E getFaizOrani (): Returns the interest rate value. E setFaizRate (): If the argument value is a valid value for the interest rate, it assigns this value to the interest rate. and the console "Updated interest rate to ." Writer; is an invalid value, to the console "Could not update interest rate to . Interest rate, . " Writer. E rate (): Increases the balance according to the interest rate and returns the last balance. Test the class you created in two different programs. Without defining any futures object in the first program, print the interest rate on the console. In the second program, define a 2-element array of deposit objects. Each time item 3 times interest. After each interest, print the customer number and the amount in the account on the console.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section: Chapter Questions
Problem 4PP
icon
Related questions
Question
1. Create the deposit class described below.
Member variables:
E CustomerNo: Stores the customer number. Positive integer.
E Balance: Stores the amount in the account. Positive real number.
E Interest Rate: Stores the interest rate applied to customers as a percentage. Same for all customers
(static) positive real number at value. Its initial value is 1.2.
Member functions:
E <«c>>: Receives input from user for customer number and quantity.
E getCustomerNo (): Returns the value of the customer number.
E getBalance (): Returns the balance value.
E getFaizOrani (): Returns the interest rate value.
E setFaizRate (): If the argument value is a valid value for the interest rate, it assigns this value to the interest rate.
and the console "Updated interest rate to <new_value>." Writer; is an invalid value, to the console
"Could not update interest rate to <new_value>. Interest rate, <current_value>. " Writer.
B rate (): Increases the balance according to the interest rate and returns the last balance.
Test the class you created in two different programs.
Without defining any futures object in the first program, print the interest rate on the console.
In the second program, define a 2-element array of deposit objects. Each time item 3 times
interest. After each interest, print the customer number and the amount in the account on the console.
Transcribed Image Text:1. Create the deposit class described below. Member variables: E CustomerNo: Stores the customer number. Positive integer. E Balance: Stores the amount in the account. Positive real number. E Interest Rate: Stores the interest rate applied to customers as a percentage. Same for all customers (static) positive real number at value. Its initial value is 1.2. Member functions: E <«c>>: Receives input from user for customer number and quantity. E getCustomerNo (): Returns the value of the customer number. E getBalance (): Returns the balance value. E getFaizOrani (): Returns the interest rate value. E setFaizRate (): If the argument value is a valid value for the interest rate, it assigns this value to the interest rate. and the console "Updated interest rate to <new_value>." Writer; is an invalid value, to the console "Could not update interest rate to <new_value>. Interest rate, <current_value>. " Writer. B rate (): Increases the balance according to the interest rate and returns the last balance. Test the class you created in two different programs. Without defining any futures object in the first program, print the interest rate on the console. In the second program, define a 2-element array of deposit objects. Each time item 3 times interest. After each interest, print the customer number and the amount in the account on the console.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning