Project Description: The management of a super store needs Customer Management System for registering customers based on some criteria. The system should allow registration management members to perform the following actions: Add customer record (id, name, age, gender and city) to the file. Print customer details (id, name, age, gender and city) Note: The purpose of this Project is to practice file input/output operations in c. Therefore, whenever you add a new customer record, you will be saving ALL the customer information into file. For example, each customer record will have an ID, a first name, a last name, age, gender and city. Project Details: The program will first ask the user to enter the customer registration year and number of customers in the year as shown in below sample: Welcome to the Customer Management System > Please enter the customer registration year (ex: 2017): 2021 > How many customers do you want to register in year 2021: 2 After the user enters the registration year and number of customers, the program should display the following main menu: Customer Management System * MAIN MENU* | A/a: Enter A or a for Adding a customer | D/d: Enter D or d for Printing customer Details | E/e: Enter E or e for Exiting the Program > Please enter your choice: If the user chooses A or a, then the program allows the user to enter the following information: customerID, first name, last name, age, gender, city. o Again, all information is to be stored in an file. • If the user chooses D or d, the program allows the user to print the customers details from file (read the array from file and display on the screen) • If the user chooses E or e, the program stop and display the message: > Thank you for using the Customer Management System!

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

please , help i need the code for this assignment in C language 

i need the solution as soon as posibile  

it is ok if just a part part of code

> Good Bye.
Input validation
If the user enters incorrect choice for any menu, the program should continue to show the menu
and display the message "Invalid selection! Please try again".
If the user enters the age which is not in the range (15-90), the program should display the error
message "Invalid input! (age must be between 15 and 90)" and enforce the user to enter the
correct age.
If the user enters the gender other than "male or female", the program should display the error
message "Invalid input! (gender must be male or female)" and enforce the user to enter the correct
gender.
Methods:
You MUST use the following methods in your program:
Method name
Function
displayMainMenu
Displaying the main menu
Allows the user to enter (A, a, D, d, E or e) and returns the correct
character. If the user inputs a character that is not recognized (NOT
from A, a, D, d, E or e), then the method should print the message
">Invalid selection! Please try again.", and it enforces the user to
enter the correct character.
inputAndCheck
Allows the user to enter the age and returns it if the entered value is
between 15 and 90 inclusively. Otherwise, the method should print
the message ">Invalid input! (age must be between 15 and 90)" and
other messages "See the sample output" , and it enforces the user to
enter the correct age.
readCustomerAge
Allows the user to enter the customer gender and returns the
customer gender value.
readCustomerGender
Allows the user to enter the customer city and returns the customer
city name.
readCustomerCity
displayCustomerlnformation
Displays the customer details (See sample output)
Transcribed Image Text:> Good Bye. Input validation If the user enters incorrect choice for any menu, the program should continue to show the menu and display the message "Invalid selection! Please try again". If the user enters the age which is not in the range (15-90), the program should display the error message "Invalid input! (age must be between 15 and 90)" and enforce the user to enter the correct age. If the user enters the gender other than "male or female", the program should display the error message "Invalid input! (gender must be male or female)" and enforce the user to enter the correct gender. Methods: You MUST use the following methods in your program: Method name Function displayMainMenu Displaying the main menu Allows the user to enter (A, a, D, d, E or e) and returns the correct character. If the user inputs a character that is not recognized (NOT from A, a, D, d, E or e), then the method should print the message ">Invalid selection! Please try again.", and it enforces the user to enter the correct character. inputAndCheck Allows the user to enter the age and returns it if the entered value is between 15 and 90 inclusively. Otherwise, the method should print the message ">Invalid input! (age must be between 15 and 90)" and other messages "See the sample output" , and it enforces the user to enter the correct age. readCustomerAge Allows the user to enter the customer gender and returns the customer gender value. readCustomerGender Allows the user to enter the customer city and returns the customer city name. readCustomerCity displayCustomerlnformation Displays the customer details (See sample output)
Project Description:
The management of a super store needs Customer Management System for registering customers
based on some criteria. The system should allow registration management members to perform the
following actions:
Add customer record (id, name, age, gender and city) to the file.
Print customer details (id, name, age, gender and city)
Note: The purpose of this Project is to practice file input/output operations in c. Therefore, whenever
you add a new customer record, you will be saving ALL the customer information into file. For
example, each customer record will have an ID, a first name, a last name, age, gender and city.
Project Details:
The program will first ask the user to enter the customer registration year and number of customers in
the year as shown in below sample:
Welcome to the Customer Management System
> Please enter the customer registration year (ex: 2017): 2021
> How many customers do you want to register in year 2021: 2
After the user enters the registration year and number of customers, the program should display the
following main menu:
Customer Management System
* MAIN MENU*
| A/a: Enter A or a for Adding a customer
| D/d: Enter D or d for Printing customer Details
| E/e: Enter E or e for Exiting the Program
> Please enter your choice:
If the user chooses A or a, then the program allows the user to enter the following information:
customerID, first name, last name, age, gender, city.
o Again, all information is to be stored in an file.
• If the user chooses D or d, the program allows the user to print the customers details from file
(read the array from file and display on the screen)
. If the user chooses E or e, the program stop and display the message:
> Thank you for using the Customer Management System!
Transcribed Image Text:Project Description: The management of a super store needs Customer Management System for registering customers based on some criteria. The system should allow registration management members to perform the following actions: Add customer record (id, name, age, gender and city) to the file. Print customer details (id, name, age, gender and city) Note: The purpose of this Project is to practice file input/output operations in c. Therefore, whenever you add a new customer record, you will be saving ALL the customer information into file. For example, each customer record will have an ID, a first name, a last name, age, gender and city. Project Details: The program will first ask the user to enter the customer registration year and number of customers in the year as shown in below sample: Welcome to the Customer Management System > Please enter the customer registration year (ex: 2017): 2021 > How many customers do you want to register in year 2021: 2 After the user enters the registration year and number of customers, the program should display the following main menu: Customer Management System * MAIN MENU* | A/a: Enter A or a for Adding a customer | D/d: Enter D or d for Printing customer Details | E/e: Enter E or e for Exiting the Program > Please enter your choice: If the user chooses A or a, then the program allows the user to enter the following information: customerID, first name, last name, age, gender, city. o Again, all information is to be stored in an file. • If the user chooses D or d, the program allows the user to print the customers details from file (read the array from file and display on the screen) . If the user chooses E or e, the program stop and display the message: > Thank you for using the Customer Management System!
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

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