Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Using Python, implement a translator. Need to create a dictionary to hold the terms to traslate or looking up. The dictionary can translate languages, slang terms, error messages, present course descriptions for classes, provide definitions for diesases, give reviews of restaurants or movies....your choice.

For example (translator illustration):

Welcome to the translator!

0=Quit

1=look up a term

2 =Add a term

3=Redefine a term

4=Delete a term

Choice: 1

What wouldyou like to have translated? 404

404 means clueless. Web error message 404 means page not found.

Steps....

Createa dictionary, and display the dictionary inintially.

Give the user instruction on what to enter

Access dictionary values, using a key to reteive values

Test a key with the in operator before retriving a value.

Use the get() method to retrive a value

4. Understand dictionary requirements:

A dictionary can't contain multiple item with the same key.

A key must be immutable. It can be a string, number or a tuple. [ A key must be immutable to make sure it is not changed to a key which is already in the dictionary.]

Values do nt have to e unique. Values can be nutable or immutable, whatever you'd like.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91354274
  • Price:- $40

Guranteed 36 Hours Delivery, In Price:- $40

Have any Question?


Related Questions in Computer Engineering

On a certain banking machine customers arrive at an average

On a certain banking machine customers arrive at an average of 15 per hour. a) What is the probability that 12 customers will use the machine in the next hour? b) What is the probability that there will be fewer than 3 c ...

How to solve this question by using r languageyou can

How to solve this question by using R Language? You can attach the Boston data set in the MASS package. library(MASS) For the Boston data set, we are interested in predicting whether a given suburb has a crime rate above ...

On the swamp county railroad system there are 6 types of

On the Swamp County Railroad system there are 6 types of train P1 P2 F1 F2 F3 F4 They occur with the following probabilities P1 0.10 P2 0.10 F1 0.20 F2 0.30 F3 0.15 F4 0.15 A trackside device transmits the type of train ...

A small sports club keeps information about its members and

A small sports club keeps information about its members and the fees they pay. The secretary wants to be able to record when members pay and print a report similar to that in the figure below. last n me - first_narne - p ...

Short answer1 explain the tradeoffs or decisions required

SHORT ANSWER 1. Explain the "tradeoffs or decisions" required when writing/creating computer programs and how the "decisions" relate to Data Structures, algorithms, and Big O notation? 2. Describe divide and conquer algo ...

Many high school students take the ap tests in different

Many high school students take the AP tests in different subject areas. In 2007, of the 144,796 students who took the biology exam 84,199 of them were female. In that same year, of the 211,693 students who took the calcu ...

It is said the best icons are more like traffic signs than

It is said "the best icons are more like traffic signs than graphic illustrations" providing a quick indication of the task they represent. Take a look at the Ribbon and tell us how well the graphic on each of the Ribbon ...

Youve entered a contract to purchase a new house and the

You've entered a contract to purchase a new house, and the closing is scheduled for next week. It's typical for some last-minute bargaining to occur at the closing table, where sellers often try to tack on extra fees. Yo ...

On microsoft word what would be the advantage of using the

On Microsoft word, what would be the advantage of using the dialog box over setting various tabs directly on the ruler line? In what types of typing tasks would you find using the ruler line helpful?

Fifteen batteries are tested to determine whether the

Fifteen batteries are tested to determine whether the battery life is as long as advertised. Four batteries fail the test. From all fifteen batteries, two are selected at random without replacement. Find the probability ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As