A C++ project must be developed for managing a banking profile of a client with different types of accounts that can be used by the banking staff. Do the following: Create a struct called Account that consists of the account_number, account_type (cheque/investment/savings), balance and the annual interest_rate. Declare an array to store at least 10 Account structs to represent the banking profile. The user (banking staff) must be able to enter the information for a number of accounts from the keyboard. Ask whether an account must be added (Y or N). If an account must be added, the number for the account must be entered as well as the balance of the account, the letter C, I or S for the type of account and the interest rate on the specific account. The interest rate cannot exceed the value of 10. The number entered by the user must be validated until a value in the range of 1 to 10 has been entered. If the number is not in the correct range, display an error message and ask the user to enter another number until a valid number has been entered. Hint: A do..while loop is ideal to do the validation.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

A C++ project must be developed for managing a banking profile of a client with different types of accounts that can be used by the banking staff.

Do the following:
Create a struct called Account that consists of the account_number, account_type (cheque/investment/savings), balance and the annual interest_rate.
Declare an array to store at least 10 Account structs to represent the banking profile.

The user (banking staff) must be able to enter the information for a number of accounts from the keyboard. Ask whether an account must be added (Y or N). If an account must be added, the number for the account must be entered as well as the balance of the account, the letter C, I or S for the type of account and the interest rate on the specific account.

The interest rate cannot exceed the value of 10. The number entered by the user must be validated until a value in the range of 1 to 10 has been entered. If the number is not in the correct range, display an error message and ask the user to enter another number until a valid number has been entered.
Hint: A do..while loop is ideal to do the validation.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education