Question 1: Write code to generate the following histogram display based on the frequency of occurrence of characters in the first argument to the program. Example: $ perl histogram.pl “Mississippi borders Tennessee.” s: ####### e: ##### i: #### : ## n: ## p: ## r: ## .: # M: # T: # b: # d: # o: # Question 2: Write a Python program to create an associative array (“hash”) named “last_name” whose keys are the five first names “Mary”, “James”, “Thomas”, “William”, “Elizabeth”. Set the corresponding values for these keys to be “Li”, “O’Day”, “Miller”, “Garcia”, “Davis”. Then print out the five full names, each on its own line, sorted primarily by length of last name and with a secondary sort alphabetically by first name. Question 3: Given a string consists of different types of brackets, write a function to determine the string is balanced.  For example, ” ([])” and “[]{}” are balanced but “([)]” and “](){” are not.  You can assume these are the only characters in the string: ()[]{} Question 4: If the string in Question 3 only consists of ( and ), how would it affect your solution from above? For example: ” (())” or ” (()(” Question 5: Suppose we want to preprocess JSON strings to strip out C style line comments.  An example might look like this: // this is a comment { // another comment true, “foo”, // 3rd comment ” http://www.ariba.com ” // comment after URL } Write a function to strip line comments without using regular expressions.  Think about the other corner cases

Looking for solution of this Assignment?

WHY CHOOSE US?

We deliver quality original papers

Our experts write quality original papers using academic databases.We dont use AI in our work. We refund your money if AI is detected  

Free revisions

We offer our clients multiple free revisions just to ensure you get what you want.

Discounted prices

All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount

100% originality

We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity.We have ZERO TOLERANCE TO USE OF AI

On-time delivery

We will deliver your paper on time even on short notice or  short deadline, overnight essay or even an urgent essay