Question
Q1. Analyze the following scenario and write a program as per your understanding using the best technique which you have studied. Use proper naming convention
Q1. Analyze the following scenario and write a program as per your understanding using the best technique which you have studied. Use proper naming convention and formatting while coding. (25 Marks)
A company wants to store their customer base for viewing and editing for later use. The customer information may include name, contact etc. You have to write a C++ program keeping in mind the following things.
- Your program should keep on asking choices from users until 5 is pressed. You must use switch and while to display menu and call functions accordingly.
- You should consider at least 5 attributes about customer while declaring variables like name, contact etc..
- Your program should be capable to store records for 1000 customers. User can input data of customers at runtime.
- User can search detailed records of any customer by entering customer name.
- User can give input to display all entered customer records.
- You program should have the functionality to display all customer records by customer name in ascending order.
You must declare separate functions for each of the functionality declared above. For simplicity you should test your code for 5 customers only but your final code should be able to handle 1000 customers. Your Menu you look like below snapshot.
NOTE:
- Every Variable, function or structure you declare, should contain last 2 digits of your reg no e.g if you declare an int a and your reg no is 78 you should declare it as int a78;
- MY REGISTERATION NO IS 50
Language c++
mene menu diya hai wase bana
aur instrution hai question ma
Press 1 to input cut somer data Press 2 to show cut somer data Press 3 to sort and show cut somer data Press 4 to search cutsomer data by name Press 5 to exitStep 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