Sample Assignment Assignment 8 Name: ___________________________ CSC-1110 Section: ______ Assignment 8 COMPLETE THE HONOR CODE BELOW HONOR CODE: I pledge that this program represents my own program...

1 answer below »
python assignment


Sample Assignment Assignment 8 Name: ___________________________ CSC-1110 Section: ______ Assignment 8 COMPLETE THE HONOR CODE BELOW HONOR CODE: I pledge that this program represents my own program code, I have received help from no one and I have given help to no one. OR I received help from NAME OR NO ONE in designing and debugging my program. I have given help to NAME OR NO ONE in designing and debugging my program. This assignment is required. The grading form shows point values for this assignment. Please review it now. Show screen shots of the python code with comments and your input/output window. You should use several well-planned sets of data to check out your program. Testing your programs with just the data that is asked for in the assignment does not necessarily mean that the programs will work for all cases. Please include the following comments in each of your Python programs: Your Name Section Date Description Assignment Number A python template (python_template.py) has been provided for you to use. Name this document XXX_Assignment 8 where XXX are your initials. Include a python file named P01.py, P02.py, etc. for each problem. 1. Write a program that gets a (one string and one input must be used) string containing a person’s first, middle, and last names, and displays their first, middle, and last initials. For example, if the user enters John William Smith, the program should display J. W. S. Comment your source code and describe your code to someone who may be viewing it for the first time. PLACE SCREEN SHOTS OF THE PYTHON CODE AND ALL I/O BELOW. 2. Write a program that asks the user for a file to open. The program will open the file and will add spaces between each word (Hint: Each word is capitalized). It will also add spaces at the end of each sentence (Hint: These have a period at the end). For example, the string “StopAndSmellTheRoses.” would be converted to “Stop and smell the roses.” Use the text file “text_format.txt” for this problem. Comment your source code and describe your code to someone who may be viewing it for the first time. PLACE SCREEN SHOTS OF THE PYTHON CODE AND ALL I/O BELOW. 3. Write a program with two functions. One function will accept a string as an argument and returns a copy of the string with the first character of each sentence capitalized. For instance, if the argument is “hello. my name is Joe. what is your name?” the function should return the string “Hello. My name is Joe. What is your name?” Second function will print the total number of characters in the string, number of capital letters, the number of lower-case letters, and the number of spaces for the string passed in as an argument. For example, the text “Hello Kim.” would print to the screen 9. The program should let the user enter a string and then pass it to the functions. Use the first function to modify the string first, then pass the modified string to the second function. Use the sample text, “hello. my name is Joe Smith. what is your name?” for your sample. Comment your source code and describe your code to someone who may be viewing it for the first time. PLACE SCREEN SHOTS OF THE PYTHON CODE AND ALL I/O BELOW. HeDidNotAnswerImmediately.HeSatMotionless,TryingTo MakeOutTheBulkheadThatMarkedTheOtherSideOfTheShip.ButTheir FeebleLightCouldNotPenetrateSoMuchDarkness.ItAlmostSeemedAs IfThereWereNoOtherBulkheadAndNoShip,OnlyDarkness,There,That SpreadOutToTheEndsOfTheUniverse
Answered 6 days AfterApr 13, 2021

Answer To: Sample Assignment Assignment 8 Name: ___________________________ CSC-1110 Section: ______ Assignment...

Arun Shankar answered on Apr 19 2021
139 Votes
# Name: Daja Wages
# Section: 68600
# Date: Apr 13, 2021
# Description: The user is prompted
to
# enter a file name. The file has words without spaces, but
# each new word begins with a capital letter. The program
# will then print the sentences in the appropriate format.
# Assignment...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here