Question

Hello, this assignment was solve in c++ but I need it in Python programming please please please....

hello, this assignment was solve in c++ but I need it in Python programming please please please. and also the speudocode as well. thank you.. Problem: Your company wants to give out prizes to the first ten people in line at a sale. In order to give out the prizes, the winners names and email addresses are to be captured. When ten names and email addresses are entered, the list of winners is to be displayed. Sample Output: Winners of the Prizes Name Email ======================================== Thor of Asgard thor@marvel.com Mickey Mouse mickey@disney.com Harry Potter harry@hogwarts.com Captain Marvel carol@marvel.com Aquaman aquaman@dcuniverse.com Goofy Dog goofy@disney.com Buzz Lightyear buzz@pixar.com Donald Duck donald@disney.com Tweety Bird tweety@looneytunes.com Sheldon Cooper sheldon@bigbang.com

0 0
Add a comment Improve this question Transcribed image text
Answer #1

@MohammedAli7/HospitableUnusualFilename share + new repl my repls languages g8 talk MohammedAl.. No description game jom Pres

speudocode:

names = []

emails = []

for loop 10 times:

name = input from user

email = input from user

names.add(name)

emails.add(email)

end of loop

for loop 10 times:

print name and email

end of loop

code:

#take 10 names and emails from user

names = []

emails = []

for i in range(10):

#take name and email from user

name = input("Enter name : ")

email = input("Enter Email : ")

#add name and emails to lists

names.append(name)

emails.append(email)

#print winners

print("Winners of the Prizes")

print("{:<20}{:<}".format("Name","Email"))

for i in range(10):

print("{:<20}{:<}".format(names[i],emails[i]))

@MohammedAli7/HospitableUnusualFilename share + new repl my repls languages g8 talk MohammedAl.. No description game jom Press F11 to exit full screen Files&inpy saved 1 #take 10 names and emai Python 3.6.1 (default, Dec 2015, 13:05:11) [GCC 4.8.2] on linux Enter name Thor of asgard Enter Enail: thor@narvel.com Enter nae Mickey Mouse Enter Enail: nickey@disney.con Enter name Harry Potter Enter Enail: harry@hogwarts.com Enter name Goofy Dog Enter Enail: goofy@disney.con Enter naeBuzz Lightyear Enter Enail: buzzepixar.com Enter name Donald Duck Enter Enail: donald@disney.con Enter name Tweety Bird Enter Enail: tweety@Looneytunes.com Enter nae Sheldon cooper Enter Enail: sheldon@bigband.com Enter name Ironnan Enter Enail: ironnan@narvel.com Enter name Captain Anerica Enter Enail: avenger@narvel.com Winners of the Prizes Nane Thor of asgard Mickey Mouse Harry Potter Goofy Dog Buzz Lightyear Donald Duck Tweety Bird Sheldon cooper Ironman D main.py 2 names[ 3 emails 4 for i in range(10): #take name and email from user 6 nameinput("Enter name) 7 email input("Ener Email : ") #add name and emails to lists names.append (name) emails.append (email) 18 11 #print winners 12 print("Winners of the Prizes" 13 print(":<20:<".format("Name", "Email")) 4 for i in range(10): 15 print(":<20.format (namesi],emails[i])) 16 Enail thor@narvel.con mickey@disney.com harry@hogwarts.con goofy@disney.com buzz@pixar.con donald@disney.com tweetyglooneytunes.con sheldon@bigband.con ironman@marvel.con Captain Anericaavenger@narvel.con

Add a comment
Know the answer?
Add Answer to:
Hello, this assignment was solve in c++ but I need it in Python programming please please please....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT