Need programming help with Python

User Generated

FAF116084237375719397706

Programming

Description

Dear,

I'm looking for help to extend my previous lab using Python. Here is the previous lab below:

https://drive.google.com/file/d/0B0X3xI_V1ixBOUltVXFrWk9EQVk/view?usp=sharing

Lab 4 - Instructions

Due Nov. 9th, at the end of the day.

(Attached is a "starter sample". Notethat only reading the file is shown, see the "Notes" at the bottom.

Objectives

  • Doing more with lists/dictionaries and introducing files.

Overview

  • This will extends the previous lab to allow the user to display the resulting story with several potential "dynamic" modifications to their input.

Instructions

  1. Your program should read a "story template" from a file and write the output to a file.
    • The filenames for the input and output should be read from the "command line" when the program is launched.
    • For example: LAB4.py story_template.txt output_file.txt
         
  2. Prompt the user for at least 10 words or phrases and store each result in a Python "Dictionary" within the program.
    • You should have a separate function dedicated to this task   
  3. AFTER entering all of the words, ask the user how they would like their own words to show in the story (how you present the prompt is up to you):
  1. All UPPER CASE
  2. All lower case
  3. All Capitalized Case
  4. As entered (i.e., no changes)

  1. For each of the above choices, modify user entered terms in the dictionary indicated. Call your displayStory() function with story template and the user entered dictionary.
    • For example: displayStory(storyTemplateuserDictionary)
    • The results should be written to the screen and to the output file.



Remember: You can make up your own story, or just grab a short piece of text from somewhere and edit it into your program, deleting the words you intend on filling in with your own. But In the interest of Academic Integrity, be sure to cite the source of any text you choose to grab!


Notes:


Submit

  • Your final Python program .py file
    1. Remember it should be able to run as a "command-line" application.
    2. Please call your program LAB4.py and be sure to include your name in the program comments.
Here is an example of lab 4:

https://drive.google.com/file/d/0B0X3xI_V1ixBU3UtVy1HZ2I3OG8/view?usp=sharing


User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer


Anonymous
Excellent resource! Really helped me get the gist of things.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags