Question
C++ programming homework Create a loop which reads a customer number, customer name, and customer balance from the keyboard and then creates a customer object
C++ programming homework
Create a loop which reads a customer number, customer name, and customer balance from the keyboard and then creates a customer object which it adds to a dictionary that is keyed by customer number. Your program should continue to read customer information from the keyboard and add customer objects to the dictionary until a customer number of exit is entered. When the word exit is entered as the customer number, exit the loop described above and display a message indicating that the dictionary has been loaded. Create a loop which reads a customer number and then uses that customer number to retrieve a customer object from the dictionary. After a customer object has been retrieved, display the customer number, customer name, and customer balance associated with the customer object. Your program should continue to read customer numbers from the keyboard, retrieve customer objects from the dictionary, and display customer information until a customer number of exit is entered.
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