Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python please! Social Network Topics String Methods, for-loop, 2-D list Problem Description You are intrigued by these social networking websites and want to know

In python please!

image text in transcribedimage text in transcribedimage text in transcribed

Social Network Topics String Methods, for-loop, 2-D list Problem Description You are intrigued by these social networking websites and want to know how they work. You started with figuring out your school's social network. You want to know who is friends with who and how many friends each person has. Write a program that shows a two dimensional array of friends where each element taking a value of either 1 or 0 representing whether the person at row i is friends with person at column j. Your program should also output the number of friends each person has. Programming Requirements 1. Ask the user to enter the total number of people in the network to create the 2-D list (There should be at least 1 person in the network). 2. Store their names in a separate list 3. We will decide whether one person is friends with another if their names' lexicographic difference is not greater than 12 4. Populate the 2-D list with 1 representing row i and column j (jth element in each list represented by the row number) being friends and 0 representing row i and column j not being friends 5. You should assume that you are not friends with yourself, which means that ListOfFriends [i][j]=0, where i=j 6. Output the 2-D list in a table format to the screen (use only tabs for spacing) 7. Also output the total number of friends each person has (calculate using the 2-D list). Note: A personal/assignment information block is required at the beginning of the source code. The following information should be included: your full name, assignment \#, file name(s), due date. Example: '" Assignment: SocialNet Name: Paul Davis File Created on March 10, 2024 Submission Requirements: 1. Source code: the python file named as SocialNetYourlastname.py. 2. Project report: Include pseudocode, at least 5 screenshots of test runs (OR one screenshot of zyBook testing page) in one PDF file and name it SocialNetYourlastname.pdf. Social Network Topics String Methods, for-loop, 2-D list Problem Description You are intrigued by these social networking websites and want to know how they work. You started with figuring out your school's social network. You want to know who is friends with who and how many friends each person has. Write a program that shows a two dimensional array of friends where each element taking a value of either 1 or 0 representing whether the person at row i is friends with person at column j. Your program should also output the number of friends each person has. Programming Requirements 1. Ask the user to enter the total number of people in the network to create the 2-D list (There should be at least 1 person in the network). 2. Store their names in a separate list 3. We will decide whether one person is friends with another if their names' lexicographic difference is not greater than 12 4. Populate the 2-D list with 1 representing row i and column j (jth element in each list represented by the row number) being friends and 0 representing row i and column j not being friends 5. You should assume that you are not friends with yourself, which means that ListOfFriends [i][j]=0, where i=j 6. Output the 2-D list in a table format to the screen (use only tabs for spacing) 7. Also output the total number of friends each person has (calculate using the 2-D list). Note: A personal/assignment information block is required at the beginning of the source code. The following information should be included: your full name, assignment \#, file name(s), due date. Example: '" Assignment: SocialNet Name: Paul Davis File Created on March 10, 2024 Submission Requirements: 1. Source code: the python file named as SocialNetYourlastname.py. 2. Project report: Include pseudocode, at least 5 screenshots of test runs (OR one screenshot of zyBook testing page) in one PDF file and name it SocialNetYourlastname.pdf

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago