python programming: sequences: strings, lists and files

1. A certain Computer Science professor in Lehman College gives 100-point exams that are graded on the scale 90–100: A, 80–89: B, 70–79:C, 60–69: D, <60: F. Write a program that accepts an exam score as input and prints out the corresponding grade.

2. Write a program that counts the number of words in a sentence entered by the user.

3. Write a program that calculates the average word length in a sentence entered by the user.

4. Numerologists claim to be able to determine a person’s character traits based on the “numeric value” of a name. The value of a name is determined by summing up the values of the letters of the name where ’a’ is 1, ’b’ is 2, ’c’ is 3 etc., up to ’z’ being 26. For example, the name “Zelle” would have the value 25 + 5 + 12 + 12 + 5 = 6- (which happens to be a very auspicious number, by the way). Write a program that calculates the numeric value of a single name provided as input.

5. An acronym is a word formed by taking the first letter of the words in a phrase and making a word from them. For example, RAM is an acronym for “random access memory.” Write a program that allows the user to type a phrase and then outputs the acronym of that phrase. Note: The acronym should all be in uppercase, even if the words in the phrase are not capitalized.

Order from us and get better grades. We are the service you have been looking for.