2. Write the file name, your name, email address and purpose of the program at the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. Write the file name, your name, email address and purpose of the program at the top of your source code in a comment. Add comments as appropriate. Be sure that your program output is neatly presented to the user. 3. Write a program that does the following: a. Creates a dictionary with common phrases in language a as the key and the translation in another language 2 as the values. b. Display a list of the phrases of language 1 to the user. Hint: use the keys() method of the dictionary class. c. Ask the user to type in a phrase to translate. d. Display the translation of that phrase to the user. 4. Program should look something like this: Python 2.7.15 Shell File Edit Shell Debug Options Window Help Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AM D64)] on win32 Type "copyright", "credits" or "license ()" for more information. RESTART: C:\Users\rgarn\Dropbox\CNM\2019Spring\CIS1250\Specs\P4Translator.py ['Bonjour, Comment allez vous?', 'Aurevoir'] Please enter a phrase to translate: Comment allez vous? Your sentence in english: How are you? >>> | LB Cot 4 2. Write the file name, your name, email address and purpose of the program at the top of your source code in a comment. Add comments as appropriate. Be sure that your program output is neatly presented to the user. 3. Write a program that does the following: a. Creates a dictionary with common phrases in language a as the key and the translation in another language 2 as the values. b. Display a list of the phrases of language 1 to the user. Hint: use the keys() method of the dictionary class. c. Ask the user to type in a phrase to translate. d. Display the translation of that phrase to the user. 4. Program should look something like this: Python 2.7.15 Shell File Edit Shell Debug Options Window Help Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AM D64)] on win32 Type "copyright", "credits" or "license ()" for more information. RESTART: C:\Users\rgarn\Dropbox\CNM\2019Spring\CIS1250\Specs\P4Translator.py ['Bonjour, Comment allez vous?', 'Aurevoir'] Please enter a phrase to translate: Comment allez vous? Your sentence in english: How are you? >>> | LB Cot 4
Expert Answer:
Answer rating: 100% (QA)
Python version 38 Create a dictionary with keys for phrases in frenc... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
What are the molecular and empirical chemical formulas of a compound made up of these molecules? H H H:0: HH H :0: H :0: H H molecular formula: The lines stand for chemical bonds between the atoms....
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
What is opportunity cost? explain a time in your life when you experienced opportunity cost. Why did you make the decision? What was another alternative that you could have made? Discuss how scarcity...
-
Calculate the coefficient of performance of a Carnot-cycle heat pump operating between reservoirs at 0C and 45C. Compare the result with that of Problem 7.21.
-
Suppose you paid $150 for a ticket to see your university's football team competes in a bowl game. Someone offered to buy your ticket for $400, but you decided to go to the game. Required: 1. What...
-
The rise of current in an inductive circuit having the time constant \(\tau\) is given by \[I=1-e^{-t / \tau}\] where \(t\) is the time measured from the instant the switch is closed, and \(I\) is...
-
A manager of Varden Sporting Goods Company is considering accepting an order from an overseas customer. This customer has requested an order for 20,000 dozen golf balls at a price of $ 22 per dozen....
-
What are lump-sum bonuses? What advantages do they have when compared to merit pay? Explain with examples.
-
The comparative balance sheet of Iglesias Inc. for December 31, 20Y3 and 20Y2, is as follows: Additional data obtained from an examination of the accounts in the ledger for 20Y3 are as follows: a....
-
The image C was obtained by convolving the image I with a 2 x 2 kernel H. 105020 010009 29 38 5 2 20 22 6 9 9 7 3 3 2 4 6 12 19 15 10 7 070300 100001 202060 a) Find the four values of the kernel H....
-
Tim Urban knows that procrastination doesn't make sense, but he's never been able to shake his habit of waiting until the last minute to get things done. In this hilarious and insightful talk, Urban...
-
Mall Inc. issued a bond for $1,852,480 on October 1, Year 1. The face value of the bond is $2,000,000 and pays annual interest of 4.5%. The bond matures in six years. Mall reports under ASPE and has...
-
2 . The Outpour Company has three matters that may need to be disclosed or reported as of the end of their fiscal year: a . Outpour has been sued for damages by a customer who was injured while using...
-
When discussing File Permissions, chmod command and its symbolic and octal notations other than r, w and x, there are some other kinds of permissions what are they?
-
If Congress passed a law limiting the deductibility of interest expense on loans used to purchase municipal bonds to 20%. For example, borrowing $1,000, only $20 of the $100 interest expense is...
-
Given these three conditions, you've come up with the idea of starting an on-campus businessselling this product to fellow students, but you can also deliver, mail/ship your product if your capacity...
-
Making use of the tables of atomic masses, find the velocity with which the products of the reaction B10 (n, ) Li7 come apart; the reaction proceeds via interaction of very slow neutrons with...
-
Matthew borrows $250,000 to invest in bonds. During 2012, his interest on the loan is $30,000. Matthew's interest income from the bonds is $10,000. This is Matthew's only investment income. a....
-
Carol Harris, Ph.D, CPA, is a single taxpayer and she lives at 674 Yankee Street, Durham, NC 27409. Her Social Security number is 793-52-4335. Carol is an Associate Professor of Accounting at a local...
-
Lisa Sizemore, a taxpayer in the 10-15 percent tax bracket, purchased stock as an investment on July 11, 2011. She sold the stock on July 9, 2012, 2 days before qualifying for the long-term holding...
-
A construction contract differs from contracts that we generally deal with that focus on an easily defined physical object because the physical object can be examined. How is the object of a...
-
What does the owner contribute to the project and what does the contractor contribute to the project?
-
The construction schedule is the only project document that fully communicates the contractor's intentions for delivering the contracted scope of services over the full course of the project...
Study smarter with the SolutionInn App