Write a Program That Asks the User for the Name of a File - IT Assignment Help

Download Solution Order New Solution
Assignment Task:

Task:

  • 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.

 

 

  1. 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.

 

 

  1. 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

 

This IT Assignment has been solved by our IT Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.