Copy of ITSC 1212 Lab Implementation Portfolio (5)

pdf

School

University of North Carolina, Charlotte *

*We aren’t endorsed by this school

Course

1212

Subject

English

Date

Apr 3, 2024

Type

pdf

Pages

7

Uploaded by BaronPelicanPerson1070

Report
ITSC 1212 Lab Portfolio Context - Module Title and Objectives Module 7 Transforming Sequences Describe how variables are used as references to objects Describe mutable and immutable data types Illustrate common operations performed on sequences Problem description The problem requires formatting a list of the first few US presidents' names, dates of birth, and dates of death into a specific output format. Each president's information should be printed in the format "last name, first name (date of birth - date of death)" with proper spacing between each entry. The solution should utilize the format method to achieve the desired output format.
ITSC 1212 Lab Portfolio Solution Explain the steps you have taken or tried to arrive at the final, polished solution. What did you get stuck on? How did you get unstuck? Design Flowchart - Representation of solution
ITSC 1212 Lab Portfolio Implemented Solution Add a screenshot of the implemented solution (code/program) Program May have to zoom I apologize
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
ITSC 1212 Lab Portfolio Verification / Evidence that it works What things did you try to ensure your solution works as intended? If you implemented a program did you use the program visualizer or created environment diagrams. Make connections between your process and the learning objectives for this week. To ensure the solution works as intended, I started by carefully reading the problem statement to understand what was required. This included noting the format of the input data and the desired output format. Then, I looked at the provided input data in the lab7_p9.py file to understand its structure. It consisted of a list of strings, each containing the last name, first name, date of birth, and date of death of a US president. Next, I designed a solution that iterates over the list of presidents, extracts the necessary information from each string, formats it according to the desired output format, and concatenates the formatted strings. I chose to use the format method to construct the formatted strings, aligning with the module objective of describing how variables are used as references to objects, as format is a method associated with string objects. Before finalizing the code, I tested it with the provided input data to ensure the output matched the desired format. This testing process was crucial for verifying that the solution functioned correctly and met the specified requirements. Throughout this process, I made connections to the module objectives for the week. For instance, I considered how variables are used as references to objects, especially in handling the president's information stored in variables referencing string objects. Additionally, the solution involved iterating over a sequence, demonstrating a common operation performed on sequences. While not directly applicable in this problem, understanding the concept of mutable and immutable data types, such as strings being immutable, is helpful in general Python programming
ITSC 1212 Lab Portfolio Execution sample
ITSC 1212 Lab Portfolio Human Credits Have you collaborated with another human on this assignment? [ ] Yes [ X ] No If your answer is “Yes”, please provide details on how this collaboration contributed to your learning experience.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
ITSC 1212 Lab Portfolio AI Credits Have you used an AI-powered tool or application to assist you with this assignment? [ ] Yes [ X ] No If your answer is “Yes”, please provide details on how the AI tool contributed to your learning experience. Feel free to include screenshots of your collaboration with AI.