Question: please write in c++ include all the files with answer Thank you What Your Program Should Do a. Write an interactive text based menu interface

please write in c++
include all the files with answer
Thank you
please write in c++include all the files with answer Thank you What
Your Program Should Do a. Write an interactive text based menu interface
(using a loop) that will allow the user to i. Enter information
for a new activity. ii. Display information for all the activities in
the database sorted by activity name with index number for each activity.
iii. Display information for all the activities in the database with the
same Type. iv. Remove an activity by index. v. Search for activities

What Your Program Should Do a. Write an interactive text based menu interface (using a loop) that will allow the user to i. Enter information for a new activity. ii. Display information for all the activities in the database sorted by activity name with index number for each activity. iii. Display information for all the activities in the database with the same Type. iv. Remove an activity by index. v. Search for activities by a certain activity name. vi. Quit b. For each activity, you need to keep track of: i. Activity narme (e.g, Sking) ii. Activity location (e.g., Mt Hood Meadows) iii. Activity Level (e.g., Easy, Difficult, Not for the faint of heart etc.) iv. Rating (e.g, 1-10 about how fun the experience is) v. Type: athletic, food, arts, games, or others - have about 5 different Types of activities for the user to choose from. c. Allow the program to keep looping until the user wants to quit. When the program starts, it should load the tasks from an external file ("activities. txt") into memory. d. When it loads the data into the array, it should insert them sorted alphabetically by activity name. Do not use a sorting algorithm - as you insert the activity into the array, make sure they are inserted in the right position. e. When a user enters information about the new activity, the program needs to read them in, and insert them in the correct position. f. When the user quits the program, save them in memory and eventually write them to the external data file ("activitieg . txt"). The file format could look like: (you can use enum or named constants for Type) Skiing:Mt Hood Meadows;Difficult;6;0 Wine Making; Uupqua Valley;Complicated;9;1 Catan;Epic Gaming;Easy;4;3 Oil Painting;Fun Studios;Trioky;6;2 Pottery; Fun Studios; Easy;7:2 Snowboarding; Mt Hood MeadowB; Not for Faint of heart; 8;0 i. The "is is used as a delimiter or field separator. Each record ends with a new line character. ii. The numbers 0,1,2,3, and 4 identify the Type that the activity belongs to. For example, 0 could be Athletics, 1 could be Food, 2 could be Arts, 3 could be Games, and 4 could be Others Some Implementation Requirements a. Before you get started: i. Check out the yideo store example in zyBooks, 15. CS161B:Section 15.6 ii. Check out the insert sorted into an array example in zyBooks, CS 161B:Section 15.7 b. Use a struct named Activity to model each activily. For the string aftributes, such as activity name, activity location, and activity level, you are required to use C-string, a character array terminated by 102. You should use the library instead of the String class. You can have a maximum of 51 characters for each C-string (50+1 for the null character). c. For the Type attribute, you can use enum or named integer constants. d. For the Rating attribute, you can use integer. e. You may not use any while(true) loops or any break statements inside of while loops. f. No global variables. 9. You must do data validation for any required responses and numbers - for example if you have a set of choices for the Type, then you must validate that the user enters a Type within the choice list. You must validate that the rating is between 1 and 10 . h. Must follow the C++ Style guidelines just like your other assignments. i. Use an array of structs to model the collection of activities. You can have a maximum of 30 activities in your list. j. Use stratr to do partial comparison to list activities by a location. k. See the Inventory exarnple in zyBooks. 15: CS1618: Section 15.2 (stratr and atramp exanples), the video store example in 15: CS161B: Section 15.6 (enuas and multiple files and looping menu), and 15.CS1618: Section 15.7, Example to insert sorted into an array. You can find links to these under Criteria for Success. 1. For submission, your data file should contain at least 10 lines of test data. It should have test cases for different activity names, activity locations and the same location with different activity names. m. You must have multiple files for this assignment. activity. h for the struct and the function prototypes, activity.cpp for the function implementations, and main.h and main. cpp for other functions and implementations, and the main() function. Criteria for Success Sample Run The below sample run is an example of how the output should look. The user responses are in Blue. Welcome! This program will help you manage your activities. Pick an option from below: (a) Add a new activity (b) Wirt activities by name (c)Iist activities by location (d) Iist activities by Type (e) Remave an activity (I) Search by activity name (q) Quit b 1. Calan,Epic Gaming,Easy,4,Games 2. Oar Painting, Fun Studios, Tricky, 6. Arts 3. Pottery, Fun Studios, Easy; 7, Arts 4. Sking Mt Hood Meadows Difficult,6;Athletics 5. Snowboarding.Mt Hood Meadows: Not for Faint of heartiB. Athletic: 6. Wine Making, Umpqua Valley, Complicated,9 Food Dick an option from belou: \{a) Add a new aetivity (b) Iist activities by name (c) Tint activitieg by location (d) List activities by Type (e) Remove an activity (f) Search by activity name (q) Quit P Invalid optionl! please try again! p Invalid option!1 please try again! Piek an option fram belou: (a) Add a new activity (b) Iist activities by name (c) Liat netivitien by location (d) Lint activitiey by Type (e) Remove an activity (f) Search by activity name (q) Qurt: d Enter Type number (0-Athleties, 1-Food, 2-Axta, 3-Gamen, and. 4 -othersi : 0 Sking:Mt Hood Meadows; Difficult 6.Athletics Snowboarding:Mt Hood Meadows: Not for Faint of hearts. Athietics Sking, Mt Hood Meadows,Difficuit, 6. Alhietices: Snowboarding:Mt Hood Meadows; Not for Faint of heart;3,Athletics Pick an option from below: (a) Add a ney activity (b) Ligt activitien by name (c) List activitieg by location (d) Ligt activities by Type (e) Remove an activity (f) Search by activity name (q) Quit c) Fnter location frame: Bood Meadove 1. Sking: Mt Hood Meadows Difficult, 6.Athletics 2. Snowboarding:Mt Hood Meadows:Not for Faint of heartB.Athletios Pick an option from below: (a) Add a new activity (b) Liat activities by name (c) Ligt activitieg by location (d) List activities by Iype (e) Remove an activity (f) Search by activity name (q) Quic 1. Catan:Epic Gaming: Easy 4, Games 2. Oil Painting, Fun Studios:Tricky: 6.Arts 3. Pottery; Fun Studios, Easy? 7 Arts 4. Sking: Mt Hood Meadows: Difficult 6.Athlefics 5. Snowboarding: Mt Hood Meadows Not for Fant of heart a Athiefics 5. Wine Making; Umpqua Volley,Complicated: F.ood

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!