In this challenge, you are to practice using Git/GitHub with the semester repository by:
[x] Editing an existing file (i.e., put your name in CONTRIBUTORS.txt)
[x] Creating a new file (i.e., create a Python script in the sandbox)
This is also an opportunity to brush up on your Python coding using either the input function or sys.argv list object.
Part 1
Add your name to the CONTRIBUTORS document found on this repository.
In this part, practice going through the process of the Git Workflow of pulling the repository for changes, editing a file, adding a file (aka staging), committing the changes and pushing to the remote repository.
Watch out for merge conflicts!
Part 2
Select option A or B or both and follow the Git Workflow to post your solution to our semester repository.
Option A
Create a python script that takes two numbers and prints their sum.
Option B
Enhance your Python script such that it accepts a user-defined floating point number between -180 and 180 and returns three numbers (two integers and one floating point value) based on the following definitions.
a. The integer part of user's number
b. The fractional portion of the user's number expressed in sixtieths and floored (rounded down to the whole number).
c. The fractional portion of (b) above expressed in sixtieths of one sixtieth of the original value.
The user's original number, Y, should be expressed as:
Y = a + (1/60)*b + (1/60^2)*c
Save your Python script to the sandbox folder of this repository and name it with your username (e.g., sb1-dt-woods.py).
The Challenge
In this challenge, you are to practice using Git/GitHub with the semester repository by:
This is also an opportunity to brush up on your Python coding using either the
input
function orsys.argv
list object.Part 1
Add your name to the CONTRIBUTORS document found on this repository.
In this part, practice going through the process of the Git Workflow of pulling the repository for changes, editing a file, adding a file (aka staging), committing the changes and pushing to the remote repository.
Part 2
Select option A or B or both and follow the Git Workflow to post your solution to our semester repository.
Option A
Create a python script that takes two numbers and prints their sum.
Option B
Enhance your Python script such that it accepts a user-defined floating point number between -180 and 180 and returns three numbers (two integers and one floating point value) based on the following definitions.
a. The integer part of user's number b. The fractional portion of the user's number expressed in sixtieths and floored (rounded down to the whole number). c. The fractional portion of (b) above expressed in sixtieths of one sixtieth of the original value.
The user's original number, Y, should be expressed as:
Save your Python script to the sandbox folder of this repository and name it with your username (e.g.,
sb1-dt-woods.py
).