Write a computer program that allows the user to store information about Facebook posts. For each post, the user wants to store the number of likes and the number of comments the post received. The name of the post owner (facebook account name), the size of the post (number of characters in the post), and the date of the post. The date could be string (e.g. 2017_05_22 ) or a number (e.g. 20170522).
When the program executes it should ask the user to select one of the following options
- Display the stored posts
- Display the first post with a given attribute value (e.g post author = John)
- Display the current total number of stored posts
- Store the data of a new post. (note that all the attributes are required and can not be null)
- Delete a post by one the following options (post date, post author).
- Delete all the stored
- Sort the post based on one of the following post attributes ( number of likes, number of comments, date, or post size)
- Exit Notes:
- Your program should only terminate if the user press option 7 Exit otherwise it should continue processing users
- Select the appropriate data structure to store the post information. Make sure you can justify your
- Use functions to organize your
- Make sure that your program does not crash if the user enter invalid data input at any point during the program
Reviews
There are no reviews yet.