Uipvhi tibmu tuvez ibse gps uif Qzuipo gjobm Sample Assignment Assignment 6 Name: ___________________________ CSC-1110 Section: ______ Assignment 6 COMPLETE THE HONOR CODE BELOW HONOR CODE: I pledge...

1 answer below »
Python assignment attached below


Uipvhi tibmu tuvez ibse gps uif Qzuipo gjobm Sample Assignment Assignment 6 Name: ___________________________ CSC-1110 Section: ______ Assignment 6 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 6 where XXX are your initials. Include a python file named P01.py, P02.py, etc. for each problem. 1. Write a program that asks the user for the name of a file. The program should display only the 3 characters of each word in the file. If the word contains less than 3 characters, it should display the entire word. Use the file: lorem_ipsum.txt to test your program. 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. Write a program that opens the numbers.txt file in the assignment folder. The program should read all the numbers stored in a file, calculates the sum of all numbers stored, and outputs the average of all numbers. 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. Write a program that opens the scrambler_sentence.txt. The program should unscramble the contents of the file. This should be done by decrementing each character back by one. For example, if the character is ‘b’ then it should be changed to ‘a’. You will have to take special care to make sure that you stay within the ASCII character limit of 97 and 122 or 65 and 90. If you find the character limit to be beyond these limits you will have to move to the beginning range. For example, if the character is ‘a’ it should be ‘z’. (Hint: Use ord and chr functions to convert the number or letters accordingly. 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. Lorem Ipsum is simply dummy text. Lorem Ipsum has been the printing and typesetting industry’s standard dummy text ever since the 16th century, when an unknown printer took a galley of type and scrambled it to make a type sample book. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages. Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Its use infiltrates every discipline where the inclusion of dummy text is useful – like web design. An empty web page doesn’t test a design, so coders will generate dummy content using lorem ipsum text. The advantage of using lorem ipsum text instead of random text in the native language of the reader is that the latin text is likely to distract the reader from the content’s layout. It’s more or less normal distribution of letters gives the illusion of readable English. 2 76 34 82 43 71 13 29 6 25 48 78 65 59 65 83 22 2 16 60 82 27 71 54 7 39 14 49 40 1 98 22 60 28 93 81 25 60 55 30 13 67 41 79 9 12 15 57 11 80 81 1 30 36 44 78 18 33 9 76 98 13 37 66 96 98 28 96 99 48 58 18 90 75 71 99 15 26 61 57 60 7 44 86 2 2 6 56 78 36 57 59 95 3 95 63 51 67 73 42 32 58 54 22 26 75 1
Answered Same DayMar 30, 2021

Answer To: Uipvhi tibmu tuvez ibse gps uif Qzuipo gjobm Sample Assignment Assignment 6 Name:...

Aditya answered on Mar 30 2021
153 Votes
# Name
# Section
# Date
# Description
# Assignment Number
def main():
fileName = inpu
t('Enter the file name: ') # taking file name from user
try:
with open(fileName, newline='') as f: # trying to read the file if file not found IOError will be raised
for...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here