Python | Computer Science homework help



Create a folder that identifies you and Assignment 2 such as smith_asst2 or asst2_jones. Save all Python programs to this folder. Zip the folder. No .rar files allowed. Upload the zip to the Assignment 2 drop box.


1.    Alphabetic Telephone Number Translator



Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember.  On a standard telephone, the alphabetic letters are mapped to numbers in the following fashion.

A, B and C = 2

D, E, and F = 3

G, H, and I = 4

J, K, and L = 5

M, N, and O= 6

P, Q, R, and S = 7

T, U, and V = 8

W, X, Y, and Z = 9

Write a program that asks the user to enter a 10-character telephone number in the format xxx-xxx-xxxx. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enter 555-GET-FOOD the application should display 555-438-3663



1.     Word separator

Write a program that accepts as input a sentence in which all of the words are run together but the first character of each word is uppercase. Convert the sentence to a string in which the words are separated by space and only the first word starts with an uppercase letter. For example the string “ StopAndSmellTherRoses.” Would be converted to “Stop and smell the roses.”


2.    Pig Latin

Write a program that accepts a sentence as input and converts each word to “Pig Latin.” In one version, to convert a word to Pig Latin you remove the first letter and place that letter at the end of the word. Then you append the string ”ay” to the word. Here is an example:







Calculate the price
Make an order in advance and get the best price
Pages (550 words)
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Australia Assessments
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
good job
Customer 456821, October 24th, 2022
Thank you for doing a great job. I really am glad that you did not use someones else work like the first person who did this did. Awesome job. Because of this I will continue to use this site!
Customer 454345, June 2nd, 2020
Human Resources Management (HRM)
Excellent combination.
Customer 462485, April 3rd, 2022
Well researched
Customer 463377, May 15th, 2023
good job
Customer 456821, September 1st, 2022
Social Work and Human Services
Thank you for the revision which was done timely and efficiently!
Customer 452703, January 23rd, 2020
English 101
I don’t have any comment it’s very good
Customer 454499, June 17th, 2020
This week's paper was written really well; however, I could immediately ascertain that a different writer had written this paper because there was some minor formatting errors that needed to be corrected. Also, I had to re-write a couple of sentences, but it was not anything major to request a revision for. Overall, the paper was good, but I would like to see consistency in the papers regardless of different writers.
Customer 452455, April 29th, 2023
Well answered
Customer 463377, May 15th, 2023
Good work.
Customer 463049, June 5th, 2022
Thank you.
Customer 463363, September 23rd, 2022
Political science
Despite time constraints, the paper is well-structured and visually plenty as required.
Customer 453367, April 5th, 2022
Customer reviews in total
Current satisfaction rate
3 pages
Average paper length
Customers referred by a friend
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat