Question
STRUCT AND ARRAYS (C++ LANGUAGE) write a program for a magazine subscription company to handle their subscription list. The company keeps a large database that
STRUCT AND ARRAYS (C++ LANGUAGE) write a program for a magazine subscription company to handle their subscription list. The company keeps a large database that stores all of their subscribers details. Each subscriber has a record containing the following 8 pieces of information: Subscriber Number Last Name First Name Street Address City State Zip Code Expiration Date The subscriber number is a unique integer assigned to each subscriber by the program. The subscriber number starts at the value of 101, then incremented by one for each subsequent subscriber. The expiration date is in the form YYMM (e.g., 1305) and defines the last issue of the magazine that this customer will receive. The program should start with 8 subscribers as indicated in subscriptions.txt. That is, you should hard-code these 8 subscriptions in your program. When the program runs, the user will be prompted to enter the current date (in the same YYMM format) for comparison with the expiry date of existing subscriptions. The program will allow users to enter new subscribers, to search and display subscriber information by subscriber number, to display all subscriptions in a particular state, to display mailing labels (as shown below) of all the unexpired subscriptions, to display mailing labels of all the expired subscriptions for the company to send out an enticement to re-subscribe, and to display mailing labels of all subscriptions due to expire in two months so the company can send out reminders to re-subscribe.
EXAMPLE: Name: John Doe Address: 111 W. Heavenly road, Holly, Michigan, 48555 Subscription number: 105 Expired on 1709
Important Requirements: GLOBAL VARIABLES are NOT allowed. You should write and call appropriate functions to perform the operations. Examples: separate functions to tabulate the default 8 subscriptions, to check expiry, to display a record with formatting, to search a subscription by subscription number, etc. You must provide the function protoytpes in the beginning of your program and all the function definitions placed after the main function.
Subscription.txt
101 Gray John 233 Parkview Road, Flushing Michigan 47489 1809 102 Tang Charlotte 303 E. Kearsley Street, Flint Michigan 48502 1712 103 Brown Coral 8890 Holly Road, Grand Blanc Michigan 48439 1709 104 Arai Hugh 77 Riverside Walk, San Antonio Texas 25786 1805 105 Blackett Kevin 125 Picking Circle, San Jose California 60089 1704 106 Achtemichuk Mark 3987 143 St, Flint Michigan 48503 1810 107 Browning William 1 Down Street, Washington D.C. 24675 1712 108 Brown Maureen 9066 Osoyoo Crescent, New York City New York 10021 180
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