[Solved] O Page Obiective Effectively Use Objects File Reading Construct Social Media Console App B Q37280405
The language is python, pleasehelp!


o Page Obiective: Effectively use objects and file reading to construct a social media console app Background: By now, everyone should be familiar with social media. Apps like Facebook, Twitter, Snapchat, MySpace (if you’re old enough), and Reddit allow you to add friends, post statuses, and explore content. More importantly, once you have logged in and created an account, posted a status, added a tfriend, etc, this information is persisted so on next login nothing will have changed. The goal of this lab is to simulate this behavjor in a console Upon starting, the program will read a file friends.txt Austin,23,apassword,austin@email.com Junior,25,overwatch,junior@email.com Lauren,22,cheerleading,Jauren@email.com Sridhar 57 director,sridhar@email.com Khaled, 23,student,khaled@email.com Austin, Lauren Austin, Khaled Austin, Sridhar Example: Austin,Khaled – these users are friends. And a file posts.xt Austin,This is a post Austin,Whoo a post Khaled,l posted this Example: Austin posted “This is a post The program should first read this file and create the initial social structure. How you choose to store this information is up to you, however you are required to use Looking at the structure you can see that we have name, age, password, email for respective users a class to represent it tollowing functionality Instructions: You are responsible for writing a program implementing the 1. First, a user must either login or create an account Create a new account a. i Be sure to include all attributes of a user name, age, password, email i. The password must be entered twice to confirm it is correct ili. The email must have an @ sign in it. A user’s name is unique Iv. v. Re-export your structure to the file matching the given format to persist the new account Page < b. Login Check that the password given matches that in the file. Once logged in, all further interactions should be track the logged in user until the user chooses to quit i. 2. Repeat the following until the user chooses to quit Add a friend a. i. Do not re-friend existing friends i. When one person friends another, it must refect. That is, Austin friends i. Re-export your structure to persist the change. i. Re-export your structure to persist the change Khaled means Khaled friends Austin b. Create a post c. See friend’s posts t. Show all of a friend’s posts on separate lines. i. Show an error if an entered friend doesn’t exist or they are not friends d. Quit Example run: Welcome to the social media application! What would you like to do 1. Login 2. Create Account Choice: 2 Enter username: AnExample Enter user age: 23 Enter user password: password Confirm password: password Enter user email: emailgemail.com What would you 1ike to do? 1. Login 2. Create Account Choice: 1 Username: AnExample Password: password What would you like to do? 1. Add friend 2. Create post 3. See friend’s posts 4. Quit Choices 1 Enter new friend name: Austin What would you like to do? 1. Add friend 2. Create post 3. See friend’s posts 4. Quit We were unable to transcribe this imageShow transcribed image text o Page Obiective: Effectively use objects and file reading to construct a social media console app Background: By now, everyone should be familiar with social media. Apps like Facebook, Twitter, Snapchat, MySpace (if you’re old enough), and Reddit allow you to add friends, post statuses, and explore content. More importantly, once you have logged in and created an account, posted a status, added a tfriend, etc, this information is persisted so on next login nothing will have changed. The goal of this lab is to simulate this behavjor in a console Upon starting, the program will read a file friends.txt Austin,23,apassword,austin@email.com Junior,25,overwatch,junior@email.com Lauren,22,cheerleading,Jauren@email.com Sridhar 57 director,sridhar@email.com Khaled, 23,student,khaled@email.com Austin, Lauren Austin, Khaled Austin, Sridhar Example: Austin,Khaled – these users are friends. And a file posts.xt Austin,This is a post Austin,Whoo a post Khaled,l posted this Example: Austin posted “This is a post The program should first read this file and create the initial social structure. How you choose to store this information is up to you, however you are required to use Looking at the structure you can see that we have name, age, password, email for respective users a class to represent it tollowing functionality Instructions: You are responsible for writing a program implementing the 1. First, a user must either login or create an account Create a new account a. i Be sure to include all attributes of a user name, age, password, email i. The password must be entered twice to confirm it is correct ili. The email must have an @ sign in it. A user’s name is unique Iv. v. Re-export your structure to the file matching the given format to persist the new account
Page
Expert Answer
Answer to o Page Obiective: Effectively use objects and file reading to construct a social media console app Background: By now, e… . . .
OR

