Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

  1. 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.
  2. You should consider at least 5 attributes about customer while declaring variables like name, contact etc..
  3. Your program should be capable to store records for 1000 customers. User can input data of customers at runtime.
  4. User can search detailed records of any customer by entering customer name.
  5. User can give input to display all entered customer records.
  6. 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.

image text in transcribed

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 exit

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

Students also viewed these Databases questions