A shop collects the following information from its customers: 1. Full name (first name, last name, and optional middle initial) 2. Address (street name and number, city, zip code, and state) 3. Phone number 4. Email 5. First visit/service date 6. Most recent visit/service date 7. Total amount charged 8. Current balance and description of the last service You are to write a program that allow the shop to manage their customers. The shop needs the  following functionalities: 1. Search for a customer by: a. Name b. Phone number c. Email  (The result of the search would have similar option as in the “List all customers” option  below) 2. List all customers a. Select and edit a customer  b. Delete a customer 3. Add a new customer a. Prompt for appropriate data fields 4. Get account consolidation sheet that shows total charges and total balance of all customers 5. Get the records of the biggest 5 spenders (spend the most) 6. Exit and save all changes (all changes to the customers should be stored into a file for retrieval  the next time the program is executed) Note: when your program is started, it should load all customer from file customers.dat if the file exists  and show the number customers has been loaded; otherwise, it should continue to proceed

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

A shop collects the following information from its customers:

1. Full name (first name, last name, and optional middle initial)

2. Address (street name and number, city, zip code, and state)

3. Phone number

4. Email

5. First visit/service date

6. Most recent visit/service date

7. Total amount charged

8. Current balance and description of the last service

You are to write a program that allow the shop to manage their customers. The shop needs the 
following functionalities:

1. Search for a customer by:
a. Name
b. Phone number
c. Email 
(The result of the search would have similar option as in the “List all customers” option 
below)

2. List all customers
a. Select and edit a customer 
b. Delete a customer

3. Add a new customer
a. Prompt for appropriate data fields

4. Get account consolidation sheet that shows total charges and total balance of all customers

5. Get the records of the biggest 5 spenders (spend the most)

6. Exit and save all changes (all changes to the customers should be stored into a file for retrieval 
the next time the program is executed)

Note: when your program is started, it should load all customer from file customers.dat if the file exists 
and show the number customers has been loaded; otherwise, it should continue to proceed

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY