Python

Search for question

Questions & Answers

Question 2. (15 pts) What is the asymptotic complexity of the following functions?


Problem 7.6 Using the two functions above, write a function day_add () that helps answer questions like **Today is Wednesday. I leave for a vacation in 19 days time. What day will that be?" So the function must take a day name and a delta argument - the number of days to add-and should return the resulting day name: • day_add("Monday", 4) should return "Friday" • day_add("Tuesday", 0) should return "Tuesday" • day_add("Tuesday", 14) should return "Tuesday" • day_add("Sunday", 100) should return "Tuesday"


For this programming assignment you will implement the Lenet 5 CNN using either pytorch or tensorflow, but not Keras. You can take a look to other implementations in internet but please, when coding use your personal coding style and add references to your sources. The goal of this implementation is that you completely understand what happens in the code because our TA will ask you questions about it when reviewing your assignment (you need to make an appointment with your TA for this). Here is an implementation in PytorCH Tutorial Github Here is an implementation in Tensorflow (careful: the tutorial and implementation don't match, I couldn't find the pair from the same author)! - Tutorial - Github Test your implementation with the MNIST dataset from Kaggle.


Payroll management system is the process where the employers' pay salaries to their employees. You are required to develop one Payroll Management System to generate employee salary and payslip.


For final project, you will develop an automated web crawler to collect data from a website of your choice, store them in a database, and perform data analytics using Python. 1) First, identify a website as your data source, then identify target data fields your team plans to collect. You should aim to collect as much data as possible, even if you do not initially expect to use some data fields for analysis. This is because retroactive collection could be time-consuming if you find that you are missing some needed data later on. 2) Set up a database to store your data. a) You can use any database, including sqlite3, MS SQL Server, MySQL, MongoDB, etc. But note that Excel or a csv file is not a database. b) Based on the data fields you identified from the website, design and create one or more tables that host your dataset to be collected. c) After finalizing your database tables, develop the web crawler so that it directly inserts data into your database (instead of, for example, downloading files as a csv file first, then importing the csv file into the database). 3) Based on collected data in the database, perform some analyses to obtain insights. The types of analyses can include at least two of the following (but not limited to): a) Descriptive analysis b) Visualization c) Regression d) Sentiment analysis e) Other text mining analysis 4) Present your work in a video presentation.


The LALA Shaleh wants to develop a python application which would help to compute the price for its Vilas' reservations and print the receipt. Write a python program would prompts the user to select the type of villa: Standard or VIP. Each villa costs as follows: Standard: 450KD, and 500KD with breakfast for 4 people. VIP: 800 with free breakfast for 7 people. Next, the program should prompt the user to enter the number of nights. In case the number of nights is greater than 3 and the selected villa is VIP, then LALA Shaleh offers the visitors a free dinner at the "Boom luxury restaurant". Then the program should ask the user whether the visitors would like to add room cleaning as a service. A standard villa costs 20KD per day, while VIP costs 40KD.


Problem 11.2 Add a method slope_from_origin() which returns the slope of the line joining the origin to the point.


Using the following limited string of characters "abc123&" Create a "dynamic" rainbow table of all password 4-7 characters in length, along with the md5 hash of each password . Display the first 5 and last 5 entries in the dictionary along with the length of the dictionary. You will submit 2 files. Submit: 1) Your final script 2) Screenshot (JPEG) of your output in WingIDE Naming Conventions: Last-Name- FirstName-WK-5.py. Last-Name-FirstName-WK-5.jpg


11HW Object Oriented Programming Problem 11.1 Add a method reflect_y to the Point class (the one we built in the lecture) which returns a new Point, one which is the reflection of the point about the y-axis.


1. [33 points] Create a file called, hw1_1_bd_flow.xxx, where the extension (xxx) is one of .jpg, .jpeg, png, gif, or .pdf. You can create this file by drawing a flowchart on a piece of paper, if neatly done, and then just taking a picture of it with your phone. Or, if you prefer, you may use a free online tool such as LucidChart and export your work to one of the desired formats. Whether or not you use a software tool, please limit yourself to the basics: ovals for start/stop, rectangles for processing steps, parallelograms for input/output, diamonds for decisions, and arrows to show the flow of control. Create a flowchart that describes the following steps: • Create a variable named, current_year, with the integer value 2021. • Print "Welcome! What is your name?" • On the same line, read the name of the user and store it into a variable called, user_name. Print "Hi, " followed by the user's name, on the same line, followed by a period. • Prompt the user with "How old are you?" and input their response (a string of digits). • Convert their response to an integer and store it in a variable called, user_age. • Calculate the user's year of birth and save it in a variable called, user_birth. • Print "You were born in ", followed by the user's year of birth, followed by a period, all on the same line.


No Question Found forPython

we will make sure available to you as soon as possible.