Below is the textabbr.txt file contents: r:are u:you ttyl:talk to you later l8:late brb:be right back lol:laughing
Fantastic news! We've Found the answer you've been seeking!
Question:
Below is the textabbr.txt file contents:
r:are
u:you
ttyl:talk to you later
l8:late
brb:be right back
lol:laughing out loud
bbl:be back later
tldr:too long; didn't read
rofl:rolling on floor laughing
gtg:got to go
cya:see you cuzz:because
bff:best friend forever
Transcribed Image Text:
The textabbrv.txt file is provided for you on Canvas. You are to use this text file and write and program as shown in the output sample. Allow the user to run the program as many times as the user wants. You must provide at least 5 test cases. a. You are to write a program where the user enters an abbreviation and your program will translate it to English. b. your program should take into consideration all punctuation marks that the user enters and displayed it in the English translation. c. You are to use dictionary. You may use list, tuples, sets if you need to. The output should display: >>> Enter a message to be translated: ru, lol ? The translated text is: are you , laughing out loud ? >>> (prompt for the user) (user input the abbreviation) (your program translates and prints the next 2 lines including punctuations) The textabbrv.txt file is provided for you on Canvas. You are to use this text file and write and program as shown in the output sample. Allow the user to run the program as many times as the user wants. You must provide at least 5 test cases. a. You are to write a program where the user enters an abbreviation and your program will translate it to English. b. your program should take into consideration all punctuation marks that the user enters and displayed it in the English translation. c. You are to use dictionary. You may use list, tuples, sets if you need to. The output should display: >>> Enter a message to be translated: ru, lol ? The translated text is: are you , laughing out loud ? >>> (prompt for the user) (user input the abbreviation) (your program translates and prints the next 2 lines including punctuations)
Expert Answer:
Answer rating: 100% (QA)
Code Create an empty dictionary skr dict Abbreviated file abbreviations File open textabbrtxt Go thr... View the full answer
Related Book For
Physics
ISBN: 978-0077339685
2nd edition
Authors: Alan Giambattista, Betty Richardson, Robert Richardson
Posted Date:
Students also viewed these programming questions
-
You owe your best friend $2,000. Because you are short on cash, you offer to repay the loan over 12 months under the following condition. The first payment will be $100 at the end of month one. The...
-
You and your friend go sledding. Out of curiosity, you measure the constant angle that the snow-covered slope makes with the horizontal. Next, you use the following method to determine the...
-
You and your best friend intend to go into business together as owners of a sports equipment store. Required: Identify specific types of financial and non-financial information that would help you to...
-
(a) ABC is a company that manufactures computer desk. The total costs (in RM'000) when x units of computer desk are produced is given by C(x) = 12x 3 - 198x 2 + 1080x Find the level of x that the...
-
Which three eating disorders involve binge eating? How are these three disorders different from one another?
-
CEO Robert McDonald has created a computerized dashboard for managers to monitor the companys actual financial performance as it happens. What effect do you think this will have on the management...
-
Copy your worksheet from Question 6 into another worksheet. Change the increase from 10% to 18%. Protect the worksheet, so that changes cannot be made. Question 6 Open a new spreadsheet. Type...
-
Porter Corporation's balance sheet at December 31, 2011, is presented below. During January 2012, the following transactions occurred. Porter uses the perpetual inventory method.Jan. 1 Porter...
-
When switch S is thrown to the left in figure, the plates of capacitor 1 acquire a potential differenceVo. Capacitors 2 and 3 are initially uncharged. The switch is now thrown to the right What are...
-
What are the most significant differences between the AICPA and the PCAOB standard unmodified opinion audit reports?
-
Calculate the coordinates of the center of gravity (miym) of the shaded area in the figure. (n=3,14) + 3a k a Ay Circle * 2a * 22 A) (1,60 a; 1,83 a) B) (1,83 a; 1,92 a) C) (1,75 a; 1,55 a) D) (1,95...
-
Joes cash fast will loan you $500 today for a $600 payment in 2 weeks. what is the EAR for joes cash fast loan?
-
8.) You are evaluating an investment that will provide the cash flows listed below at the end of each year. You believe that you should earn 11.50% percent compounded annually on this investment. How...
-
The homestead exemption in Virginia can protect property such as real estate or income from the reach of creditors, except...?
-
Find the present value What present value amount do you need to deposit in a bank account with 2.00% annual interest rate to have $100,000.00 at the end of 20 years?
-
A coupon bond with a par value of $1,000 and a 10-year maturity pays semiannual coupons of $21. (a) Suppose the yield for this bond is 4% per year compounded semiannually. What is the price of the...
-
At June 3 0 , Laramie Ltd . prepared the following aging schedule: ( a ) Your answer is correct. Complete the aging schedule. Number of Days Outstanding Accounts Receivable Estimated % Uncollectible...
-
A circular concrete shaft liner with Youngs modulus of 3.4 million psi, Poissons ratio of 0.25, unconfined compressive strength 3,500 psi and tensile strength 350 psi is loaded to the verge of...
-
A plastic water bottle open at the top is three-fourths full of water and is placed on a scale. The bottle has an indentation for a label midway up the side and a strap has been placed around this...
-
In contrast to deep-water waves, shallow ripples on the surface of a pond are due to surface tension. The surface tension ( of water characterizes the restoring force; the mass density ( of water...
-
The intensity of the Sun's radiation that reaches Earth's atmosphere is 1.4 kW/m2 (kW = kilowatt; W = watt). Convert this to W/cm2.
-
A cylindrical vessel \(1 \mathrm{~m}\) long and \(0.1 \mathrm{~m}\) in diameter is filled with a monatomic gas at \(P=1\) atm and \(T=300 \mathrm{~K}\). The gas is heated by an electrical discharge,...
-
Consider a system of quasiparticles whose energy eigenvalues are given by \[ \varepsilon(n)=n h v ; \quad n=0,1,2, \ldots \] Obtain an asymptotic expression for the number \(\Omega\) of this system...
-
Making use of the fact that the entropy \(S(N, V, E)\) of a thermodynamic system is an extensive quantity, show that \[ N\left(\frac{\partial S}{\partial N}ight)_{V, E}+V\left(\frac{\partial...
Study smarter with the SolutionInn App