This assignment will assess your skills and knowledge in developing a function t

This assignment will assess your skills and knowledge in developing a function t

This assignment will assess your skills and knowledge in developing a function through an incremental development process such that the debugging becomes fast. There are two parts of this assignment, and you must submit both parts.
Part 1
You work as a software developer in a company that creates custom software solutions for various clients. Your company has been approached by an educational client who wants to develop a function that calculates the length of the hypotenuse of a right triangle given the lengths of the other two legs as arguments. Your manager has instructed you to use incremental development to create the necessary function and document each stage of the development process. After completing the final stage of development, you have to test the function with different arguments and record the outputs in your Learning Journal.
Tasks Include all of the following in your submission:
An explanation of each stage of development, including code and any test input and output.
The output of hypotenuse(3,4).
The output of two additional calls to hypotenuse with different arguments.
Part 2
You are a software developer who wants to establish yourself as a skilled and versatile programmer. To achieve this, you have decided to create a work portfolio that showcases your ability to develop custom software solutions. This portfolio will be your gateway to attract potential clients and establish yourself as a freelancer.
As part of your portfolio, you plan to create your own function that does some useful computation using an incremental development approach that will demonstrate your programming skills and problem-solving abilities. You will document each stage of the development process, including the code and any test input and output in your Programming Assignment.
Submission Instruction Submit your answer in one document. Clearly write part 1 and part 2 before your answer.
Include the following in your submission: An explanation of each stage of development, including code and any test input and output.
The output of three calls to your function with different arguments.
The code and its output must be explained technically. The explanation can be provided before or after the code, or in the form of comments within the code. For code modification type of questions, always mention or clearly highlight the part, which is modified, along with the reason stated, as a code comment.
The descriptive part of your response must be at least 200 words.
If you use an informational source, be sure to identify the source and share the link to the source you used.

In this assignment, you will use Python’s mlxtend.frequent_patterns to find the

In this assignment, you will use Python’s mlxtend.frequent_patterns to find the

In this assignment, you will use Python’s mlxtend.frequent_patterns to find the association rules satisfying given lift, confidence and support threshold for the list of transactions available at ‘online_retail.csv’ file.
Step 1 (35 points): Clean the data byremoving rows whose StockCode or Invoice values contain non-digit characters
removing rows whose Price values are less than 10
removing rows whose country values are not equal to “United Kingdom”, “Italy”, “France”, “Germany”, “Norway”, “Finland”, “Austria”, “Belgium”, “European Community”, “Cyprus”, “Greece”, “Iceland”, “Malta”, “Netherlands”, “Portugal”, “Spain”, “Sweden”, or “Switzerland”.
removing rows whose quantity values are negative.
trimming the description using string.strip function
Step 2 (30 points) Find the frequent itemsets with min_support = 0.01
Step 3 (35 points) Find the association rules with confidence greater than 10%. Among them, which rule(s) has the highest value of lift?
Deliverables
Submit a zip file containing your Python code and a “report.pdf” answering the question asked in step 3.

Instructions: In one file, write programs for the tasks below and upload the fil

Instructions: In one file, write programs for the tasks below and upload the fil

Instructions: In one file, write programs for the tasks below and upload the file (.py) to Blackboard. In the top comments section of the file, please include your name, the date, and the assignment number. While you do not have to add comments for every line of code, please include comments to tell a reader what you are doing. Commenting your code also suggests to me that you know what you are doing.
While there is no one way to do things, your code should only use commands and methods from class. I do not want you using other commands that you got from the internet.
Also use the #%% command to divide each answer into its own cell. Note also include #%% after the last line of code in the program. The assignment is on word document ” assignment 3 updated” , attached power point slide for your reference. please don’t use chatgpt or any other internet source. beginner way. thanks

Good news! The multi-national corporation where you work is going to give each e

Good news! The multi-national corporation where you work is going to give each e

Good news! The multi-national corporation where you work is going to give each engineer a nicer office one level higher than his or her current office.
At this particular corporation, everybody’s office number looks something like “KEC 3047” or “KERR 43”. You can tell which offices are engineering offices because the engineers are all located in buildings that have 3 letters and 4 digits. Their offices are going to be one level higher.
So somebody with an office like “KEC 3047” will get to move into “KEC 4047” while people with offices like “KERR 43” will keep the current office.
Your job is to write a program that, given an old office number, can compute the new office number–testing your ability to translate a problem into a computational solution on strings.
Using your text editor, create a Python program that contains a single function called compute_new_office(current_office) that takes a single parameter named current_office.
The function should check if the current_office has a 3-letter building abbreviation (consisting only of uppercase letters) followed by a space and finally by a 4-digit number. This is an engineering office, and in this case your function should return the same building name followed by a space and followed then by a number equal to 1000 plus the original office number.
If the current_office is not an engineering office, then your function should return the current_office unaltered.
As some examples of what your function should return…
compute_new_office(“KEC 3047”) should return “KEC 4047” because it is an engineering office
compute_new_office(“MER 8888”) should return “MER 9888” because it is an engineering office
compute_new_office(“KEC 111”) should return “KEC 111” because it is not an engineering office
compute_new_office(“KX 3047”) should return “KX 3047” because it is not an engineering office
compute_new_office(“KERR 3047”) should return “KERR 3047” because it is not an engineering office
compute_new_office(“kec 3047”) should return “kec 3047” because it is not an engineering office
compute_new_office(“/KEC 3047/”) should return “/KEC 3047/” because it is not an engineering office
compute_new_office(“KEC-3047”) should return “KEC-3047” because it is not an engineering office

ابدأ باستخدام Python! تعلم كيفية إنشاء البرامج والمشاريع في Python. العمل مع الس

ابدأ باستخدام Python! تعلم كيفية إنشاء البرامج والمشاريع في Python. العمل مع الس

ابدأ باستخدام Python! تعلم كيفية إنشاء البرامج والمشاريع في Python. العمل مع السلاسل والقوائم والتكرارات الحلقية والقواميس والوظائف.

Create 2 Simple web / screen scraper programs (preferably using 2 different webs

Create 2 Simple web / screen scraper programs (preferably using 2 different webs

Create 2 Simple web / screen scraper programs (preferably using 2 different websites or try to extract 2 different pieces of information from 1 website).
Be sure to submit your files as python files (.py) AND include Screenshots showing that they run (showing your sample output)
Your programs need to display some meaningful information to receive full points (for example, just displaying an entire website or just displaying random symbols / tags / parts or words will result in loss of points)
You can download a copy on your system by going to python.org. only have python version 3 installed, so if you find any notes or tips online, make sure you are using that version. I would suggest using version 3 if you download (any version of 3 should work fine).
Be sure to use the Python – GUI IDLE program to use the interactive window. You can create a python script by using file–> new script… and to run, use run -> run module. Several resources are posted in the week 3 folder, but feel free to use other sources if it’s helpful. If you end up following a particular tutorial, be sure to cite the source and modify it a bit to make it your own program. Feel free to search YouTube or other places online. You are free to use additional libraries if you are comfortable installing them (or use my example that is library free).
Alternatively, there are also online Python IDEs like replit.com that do not require installation and will automatically install libraries if you are having a hard time with your system.
For this week:
Create 2 Simple Web / Screen Scraper programs (preferably using 2 different websites or try to extract 2 different pieces of information from 1 website) due You can submit your (.py) files in the “Labs and Project” Tab. I am allowing a bit more time for this assignment, but it’s better to start early as issues may come up, and it will start to overlap with next week’s assignment. Also submit screenshots of your script’s output to show what it is doing.
There are other simple examples online you can search for if you don’t like the one posted. Many are using other libraries that you may need to install and setup. You can try to extract information from websites like uszip.com or simple news sites. My attached script is not using any libraries for simplicity, but it’s not efficient. You might want to use that sample file as an example.