Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help me out plz ! just the a2.git.txt. Question 1 (5 points): Purpose: To force the use of Version Control in Assignment 2 Question 2

image text in transcribedimage text in transcribedimage text in transcribed

image text in transcribed

Help me out plz ! just the a2.git.txt.

Question 1 (5 points): Purpose: To force the use of Version Control in Assignment 2 Question 2 Degree of Difficulty: Easy Version Control is a tool that we want you to become comfortable using in the future, so we'll require you to use it in simple ways first, even if those uses don't seem very useful. Do the following steps. 1. Create a new PyCharm project for Assignment 2. 2. Use Enable Version Control Integration... to initialize Git for your project. 3. Download the Python and text files provided for you with the Assignment, and add them to your project 4. Before you do any coding or start any other questions, make an initial commit. 5. As you work on Question 2 use Version Control frequently at various times when you have imple- mented an initial design, fixed a bug, completed the question, or want to try something different Make your most professional attempt to use the software appropriately. 6. When you are finished your assignment, open PyCharm's Terminal in your Assignment 2 project folder and enter the command: git --no-pager log 7. Copy/Paste the output of the above command into a text file named a2-git.txt. Notes: Several Version Control videos are available on Moodle via the Lecture Videos link. No excuses. If you system does not have Git, or if you can't print the log as required, you will not get these marks. Installation of Git on Windows 10 machines is outlined in the 'Step-by-step Windows 10 - PyCharm UNIX command-line video. Git is included in base installations of Linux & Macos. If you are not using PyCharm as your IDE, you are still required to use Git. See the Version Control videos on Moodle that cover using Git on the command line & via GUI. What Makes a Good Commit Message? A good commit message should have a subject line that describes what changed, a body that explains why the change was made, and any other relevant information. Read 'Writing a Good Commit Message Linked on Moodle for more guidance. Examples of GOOD commit messages: Initial commit for Assignment 2 copied starter files over from Moodle Completed Question 2 * full functionality complete after testing with generated files Fixed a bug causing duplicate print messages * extra print statements were being produce in loop updated logical condition to fix Examples of BAD commit messages: fixes add tests updates What to Hand In After completing and submitting your work for the Question 2, follow steps 6 & 7 above to create a text file named a2-git.txt. Be sure to include your name, NSID, student number, course number, and lecture section at the top of your a2-git.txt file. Evaluation 5 marks: The log file shows that you used Git as part of your work for Assignment 2. For full marks, your log file contains - Meaningful commit messages. - A minimum of 4 separate commits. 1 2 3 5 6 7 min 00 Om def main : f = open("example 1.txt", "r") f1 - f.readlines() x = y = 0 for word in f1: X = @ y = for letter in word: if letter 'N': y = y + 1 elif letter == 'S': y = y - 1 elif letter == 'E': 1 x = x + 1 elif letter 'W': X = X - 1 print("( {}, {})".format(x, y)) == == 5 6 7 8 9 0 if name == "_main_": 1 main() 2 example 1.txt 1 NNE 2 NNEEENNW 3 WNENWNSNN 4 EESSENNESE 5 WEENEWE 6 NWEWWNSWW

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions