Write a program that accepts as input a sentence

Assignment Help Python Programming
Reference no: EM13773486

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

Reference no: EM13773486

Questions Cloud

What volume will the n2o2 occupy : Does the container containing 0.72 moles of helium follow EPA regulations - explain by determining the volume that 0.72 moles of helium gas would occupy if not pressurized.
Discussing the impact alcohol : Write a 1,700- to 1,950-word paper discussing the impact alcohol and family violence can have on the life cycle.
Is mike obligated to pay for the guitar : When John e-mailed Mike and asked when he would pay for and pick up the guitar, Mike told John that he did not want the guitar and besides, Mike had not signed or agreed to anything. Is Mike obligated to pay for the guitar
Intermediate microeconomics : Intermediate Microeconomics - ONLY 2 QUESTIONS IN ONE HOUR1.Suppose the demand and supply for milk in the European Union (EU) is given byp = 126 - 0.4Qd and p = 6 + 0.1Qs,
Write a program that accepts as input a sentence : 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 start..
Typical it implementation process : During the fourth week of your internship, the CIO e-mails you several examples of other IT project implementations. Later that day, she says to you, "Review the examples I sent you about the implementation process.
What is biggest difference you can make in world with degree : What is the biggest difference you can make in the world with your degree. hat would you do with it and why. Please write 200-250 words about this.
Discuss the elements of liquidated damages : Discuss the elements of liquidated damages. Analyze what distinguishes liquidated damages from punitive damages and discuss whether or not the penalty be assessed in the above case
Effective leadership and management in nursing : Write and a 350- to 700-word paper by answering the following questions:

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd