Question: simple python program please Project Instructions In the 1850's, the hottest new technology was the telegraph. Messages or telegrams could be sent via electrical forces

simple python program please

simple python program please Project Instructions In the 1850's, the hottest newtechnology was the telegraph. Messages or telegrams could be sent via electricalforces traveling through a wire. Write a program that will generate a

Project Instructions In the 1850's, the hottest new technology was the telegraph. Messages or telegrams could be sent via electrical forces traveling through a wire. Write a program that will generate a bill for sending a telegram and give the user the opportunity to translate a message into Morse code. The amount owed for sending a telegram is based on the number of words sent. Customers are charged at a rate of $1.50 for blocks of 5 words and $0.50 for single words. Named constants must be used in the calculation. For now, your program will only translate a single letter into Morse code. In the next project, you will add the functionality to translate an entire message. Use the tables below to translate letters into Morse code. Letter Encoding A, a Bb C, Dd E, e F. f Hh I, i Letter Encoding J.; K, K L, 1 Mm Nn 0,0 PAP . Q, 4 R. Letter Encoding SS T. t U, u V, v Ww Xx Yoy Z, z Steps: 1. Code a menu to offer the user the choice of processing a telegram bill or translating a message into Morse code. The menu should be the first thing displayed when your program begins executing. The menu format should match the one in the Sample Output. 2. Validate the user's menu choice. If the user enters any number other than 1 or 2, a descriptive error message should display and the program should end without performing any calculations or prompting the user for input. 3. If the user chooses option 1, your program should prompt them for the customer's name, street address, city, state, zip code and number of words sent and then calculate and display a telegram bill with all information specified in the Sample Output 4. If the user chooses option 2, your program (for now) should prompt the user for a single letter and then display the corresponding Morse code. If the user's input cannot be translated into Morse code, then a descriptive error message should display. Your program should translate both upper and lower case letters. 5. Save your.py file using the required naming format. 6. Click the assignment link to upload your file. Sample Output (user response shown in bold) Welcome to Western Union Telegraph Company 1 - Process Telegram Bill 2 - Translate to Morse code Enter your choice: 1 Enter the name of the customer. Larry Smith Enter street address: 122 Main Street Enter city: Charlotte Enter state: NC Enter zip code: 23499 Enter the number of words sent: 157 Larry Smith 122 Main Street Charlotte, NC 23499 Amount Owed: $47.50 Welcome to Western Union Telegraph Company 1 - Process Telegram Bill 2 - Translate to Morse code Enter your choice: 2 Enter a single letter. A The letter A translates to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!