During your third Individual Project (IP), you will utilize Python to create a key-value program similar to MapReduce on Hadoop. For this assignment, do the following: Create a dictionary (also called...

1 answer below »

During your third Individual Project (IP), you will utilize Python to create a key-value program similar to MapReduce on Hadoop. For this assignment, do the following:



  • Create a dictionary (also called anassociative array) that contains at least 50 values. An example of a key may be state and value as capital. Another example may be number in an alphabet and letter in an alphabet.

  • Write a command that enumerates the contents of key–values in the dictionary.

  • Write a command that lists all keys.

  • Write a command that lists all values.

  • Write a command that replaces key number "1" with a new value.


In addition to the Python program, discuss the following in a paper:



  • How could this program operate in a distributed environment where the dictionary is spread across a cluster of nodes?

  • What would be the limitations of this architecture?

  • Is there a threshold for the amount of data and the overhead of operating on a cluster?




Individual Project Rubric


The Individual Project (IP) Grading Rubric is a scoring tool that represents the performance expectations for the IP. This Individual Project Grading Rubric is divided into components that provide a clear description of what should be included within each component of the IP. It’s the roadmap that can help you in the development of your IP.
















































Expectation

Points Possible

Points Earned

Comments

Python Application:Write a Python application to create key-values.

30



Distributed Environment:Explain how an application could work in a distributed environment.

30



Architecture:Describe architecture limitations.

30



Organization:Assignment presents information logically and is clearly relevant to the topic.

25



Professional Language:Assignment contains accurate grammar, spelling, and punctuation with few or no errors.

10




Total Points



125


Answered 1 days AfterSep 06, 2022

Answer To: During your third Individual Project (IP), you will utilize Python to create a key-value program...

Salony answered on Sep 07 2022
78 Votes
Dict = {1: 'Apple', 2: 'Banana', 3: 'Papaya',4: 'Kiwi', 5:'Guava',6:'Apricot',7:'Avocado',8:'Butter Fruit',9:'Cape',10:'gooseberries',11:'Cherry',12:'Coconut',13:
'Custardapple',14:'Plum',15:'Figs',16:'Grapefruit',17:'Jackfruit',18:'JavaPlum',19:'Grapes',20:'Guava',21:'Lemon',22:'Lychee',23:'Mandarin',24:'Mango',25:'Mulberry',26:'Orange',27:'Olive',28:'Peach',29:'Pear',30:'Pineapple',31:'Apple',32:'Banana',33:'Papaya',34:'Kiwi',35:'Guava',36:'Apricot',37:'Avocado',38:'Cape',39:'gooseberries',40:'Cherry',41:'Coconut',42:'Cherry',43:'Lemon',44:'Lychee',45:'Mandarin',46:'Mango',47:'Guava',48:'Plum',49:'Figs',50:'Grapes'}
print("\n Dictionary")
print(Dict)
// For Enumeration
for i,j in enumerate(Dict):
print(i,j)
// Dictionary Keys
print(Dict.keys())
// Dictionary values
print(Dict.values())
// Replace key in Dictionary
Dict[51] = Dict[1]
// Delete old key
del Dict[1]
print("New dictionary-",Dict)
Question 2: Explain how an application could work in a distributed environment?
Answer2: A distributed application consists of one or more local or remote clients that...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here