Merge branch 'main' of git.mcssliberia.org:python-team/PythonStudy

August-report
Jeffrey Elkner 1 year ago
commit 3c44f4d608

@ -0,0 +1,68 @@
<p>
Income Distribution Report:
Total Income: $650
Distribution of Income Excluding September:
Six individuals received $100 each, totaling $600
One individual received $50
Explanation:
This report details the distribution of income for a group of seven individuals. The total income was $650, with seven individuals receiving $100 each for a total of $650. The remaining individual received $50. It's worth noting that the distribution of income was not equal among all individuals.
## August and October
| No | Name | Amount | Purpose
|-----|---------|--------|--------
|1. |Spencer | 42.00USD | Transportation
|2. | Freena | 100.00USD | Allowance
|3. | Daniel | 100.00USD | Allowance
|4. | Shallon| 100.00USD | Allowance
|5. | Thomas | 100.00USD | Allowance
|6. | Mulbah | 100.00USD | Allowance
|7 | Janet | 100.00USD | Allowance
|8 | Tariff | 8.00 | Withdrawal
</p>
<p>Beginning Novemeber 2023 we had one person added to the term which happened to be Jallah Kolleah, due to that I revisited our budget in order to have Jallah fit in.</p>
## November to December
| No | Name | Amount | Purpose
|-----|---------|--------|--------
|1. |Spencer | 35.00USD | Gasoline
|2. | Freena | 80.00USD | Allowance
|3. | Daniel | 80.00USD | Allowance
|4. | Shallon| 80.00USD | Allowance
|5. | Thomas | 80.00USD | Allowance
|6. | Mulbah | 80.00USD | Allowance
|7 | Janet | 80.00USD | Allowance
|8 | Jallah| 80.00USD | Allowance
|9 | Spencer| 42.00USD | Transportation
|10 | Tariff | 8.00USD | Withdrawal fees
|11 | Misscellaneou| 5.00| 5.00
11 | Total Cost| 650.00USD| Six Hundred Fifty USD
# January to Present
| No | Name | Amount | Purpose
|-----|---------|--------|--------
|1. | Activities fees | 70.00USD | Gasoline & Internet
|2. | Freena | 40.00USD | Allowance
|3. | Daniel | 40.00USD | Allowance
|4. | Shallon| 40.00USD | Allowance
|5. | Thomas | 40.00USD | Allowance
|6. | Mulbah | 40.00USD | Allowance
|7 | Janet | 40.00USD | Allowance
|8 | Jallah| 40.00USD | Allowance
|9 | Spencer| 42.00USD | Transportation
|10 | Tariff | 8.00USD | Withdrawal fees
|11 | Genenator repair| 100.00USD| Spare parts and workmanship
11 | Total Cost| 650.00USD| Six Hundred Fifty USD
## Note
### Allowance for interns reduced to 50 percent because of tuition and miscellaneous that were being included in the above budget.
### Faithfully submitted
### Spencer Cooper

@ -0,0 +1,28 @@
<p>
This exercise include some programming concept we had encountered from chapter one to eight:
line one is a global variable the hash sign before the value in our function
body represent comment..."which mean the program should ignore and execute the
follow code.
in python each variable belong to a particular data type. "Note"
it key to understand type data because some operator don't work with all data type, Note line one is a integer and also a global variable that can be called from any part of the program
line four in our function body is a string data type and consider as a local variable because it defined in the function.
line two: is a function and in python to declare a funcntion we use the reserve keyword "def" The name of the function is called (user_request) the value in the open and closed parenthesis is called parameter.
So in this exercise I created a function that will validate the user input. To do so we need to
understand operators in python and their function. some operator use in this program are
assignment operator =
condition operator if, elif
arithemtic operator *
comparison operator ==
This program is only build to accept numerical value if I enter letter or special character the program will crash....
Which is not a good sound for our program. In the next step we need to add validation to our program to prevent our program from crashing. But for now use only number... In the next present we will talk about nested condition and in build function that can be use to prevent the program from crashing.
Questions
##
</p>

@ -0,0 +1,12 @@
value_of_day = 24
def user_request(take_and_transfer):
if take_and_transfer > 0:
#value_for_day = 24
value_for_time = "hours"
return f"{take_and_transfer} day is equal to {take_and_transfer * value_for_day} hours"
else:
return (take_and_transfer, "is not allow in this program")
enter_a_value = int(input("Enter a valid number to know how many minutes in a give day\n"))
print(user_request(enter_a_value))

@ -1,3 +1,14 @@
# PythonStudy # PythonStudy
Examples and exercises for our study of Python programming. Examples and exercises for our study of Python programming.
## Planning Our Study
Spencer Cooper and Jeff Elkner will be the first of our group to use this
repo together. Spencer can then bring in the rest of the team. We're super
excited to have Sahnun join us, since he has more time over the next several
weeks than Jeff does.
## Testing our plan
As initially stated by Jeff this will help us learn how to collaborate on project remotely if all necessary skill are acquired.

Loading…
Cancel
Save