👋👋👋 Are you looking for the answer to the posted question or or any other quality academic essay? Then look no further. Our research paper writing service is what you require. Our team of experienced writers is on standby to deliver to you an original paper as per your specified instructions with zero plagiarism guaranteed. This is the perfect way you can prepare your own unique academic paper and score the grades you deserve. Contact our live support team for any assistance or inquiry.
- Define “precondition” and “postcondition”. Create an example of each possibility in Python code. List the code for each example, along with sample output from trying to run it.
- Hello there, I need help with an assignment for programming regarding heroes and villains. Here is the assignment overview below. Please have a read as it is similar to the questions I’m following. ht…
- I wrote the code to solve the problem indicated below in the picture. However, my code won’t compile. Can you please look over it and tell me what’s wrong? Here’s the code: def cut_rod(p, n, c): r…
- I need help solving these python codes along with the question, I have included everything 4.12 is at the bottom. 4.4. Further Examples of Recursion 173 def power(x, n): "" Compute the value…
- Question 11A (8 points) A stair (like the one we use to go from floor to floor) consists of two parts: a tread and a riser. Write a function named stair that uses turtle graphics to draw a stair of sp…
- Consider the following code snippet: 1. list = [ [ ] ] * 5 2. list # output? 3. list[0].append(10) 4. list # output? 5. list[1].append(20) 6. list # output? 7. list.append(30) 8. list # output? What w…
- Some Python built-in datatypes are implemented using hashtables. These data types are suited for applications where we prioritize: Please choose the best answer 1. User input and output 2. me…
- Question 1 (80% of total points) Using the dataset from Eugene Fama and Kenneth French’s 2013 paper “A Five-Factor Asset Pricing Model”, Visually analyze the covariance between various factors and ide…
- # Program the recurrence for longest stable subsequence # 0 <= i <= len(a) # Note that if j == -1, then take aj = None # else aj = a[j] def lssLength(a, i, j): aj = a[j] if 0 <= j < …
- Define a function called sort3 that accepts three integer arguments a, b, and c and returns a tuple with three elements, which should be the three input argument values but in increasing order.
- Come up with a text-based version of the game Memory. The game should generate a 5 × 5 board. Initially the program should display the board as a 5 × 5 grid of asterisks. The user then enters the co…
- please don’t copy from chegg because there are worng. In python. To create a list use import random and for timer import time def quicksort(alist): quciksortHelper(alist, 0 ,len(alist)-1) d…
- python 3 Problem1) Exceptions Use exceptions to validate information while instantiating object of class Person, student, Employee, Faculty, and Staff from assignment_day3 problem. Validate the …
- Hello everyone and Thank you for your time and help. The Task at hand is to write a Python Code Programm containing 4 functions. What these functions have to do is written in the red coloured Descript…
- The Soundex algorithm is used to encode strings. The result of the algorithm is a letter followed by three digits. Similar words will have the same code. For example, Adams and Addams would have t…
- Use Python Use a threshold-based method and a fixed size window to find anomaly events. The window step size is 1. Use numpy.percentile linear method to calculate percentiles of the Nitrate data whi…
- Python Scanner (Tokens/Lexemes) I have written a Python program that works well, but still seems to have some issues. The program is a Lexical Analyzer/Scanner and lists the tokens and assigns le…
- Output values in a list below a user defined amount program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Then, get the…
- Explore the dataset to identify differences between the customers of each product. You can also explore relationships between the different attributes of the customers. You can approach it from any ot…
- please help me asap 4. Compute d > 25 in the range 1 < d < n such that d*e = 1 mod I: thetan ) == e*d – 1 == *thetan This statement can be computed as follows: Find a d (an integer! such that…
- Modify the binary search function so that, instead of returning -1 when the target value is not in the list, raises a TargetNotFound exception (you’ll need to define this exception class). Otherwise, …
- The always fun palindrome question! Write a Python script to check if a given string is the same when read backwards or forwards. Input string Expected output of script Enter a word or sentence: …
- Using the IDLE development environment, create a Python script named tryme4.py. (Note: an alternative to IDLE is to use a free account on the pythonanywhere website: https://www.pythonanywhere.com/) I…
- A python program that utilizes a loop to read a set of five floating-point values from user input. Ask the user to enter the values, then print the following data: Total Average Maximum Minimum Intere…
- Best subsets, stepwise, lasso, ridge, and ElasticNet models each have advantages and disadvantages. Pick one of these models and discuss those considerations. Program the model of your choice manually…
- PYTHON – USING LINKED LIST Bob has a drinking problem … not that kind of a problem. Bob drinks Gatorade, but he likes to have several glasses of Gatorade in front of him. He also has developed the p…
- Write a function graph_regression(data) that takes the input data (type: list). The function graph_regression(data) creates a scatter chart using the input data and after that, linear regress…
- Hello, can I please get some help making this program? I do not even know where to start. Thank you for any help in advance! Assignment: A Harris number is a number that is divisible by the sum of …
- how can I define there are consecutive letter in the worl d . Write a boolean function called has_consecutive that takes a string as its only argument and returns True if the string contains at least …
- Please provide reasoning for each question below, Thank you!! 1. What will be the output of the following Python code? def mk(x): def mk1(): print(“Decorated”) x() return mk1 d…
- Questions on Python3 coords.txt file attached. Exercise 1: Load Data The dataset containing the x-y coordinates for this lab are stored in a text file called ‘coords.txt’ which you should put…
- I am reaching out to you as suggested by our TA regarding CS 767 assignment 2. I would be thankful for any suggestion on how to approach the following problem: So far I managed to define the sigmoid a…
- “` from tkinter import * import shutil import os from pathlib import Path # when the code is executed it will automatically create our working directories os.makedirs( r’C:\Test\\files’ , exist_ok= T…
- please explain with comments for each below: # GIVEN: list ‘sequence’, int ‘b’ # PRECONDITION: b >= 2, sequence is a non-empty list of integers in range 0 to b-1 # RETURN: Integer represented by se…
- write a multi-threaded program called print_stats.py that calculates various statistical values for a list of numbers. This program will be passed a series of numbers on the command line via a –num…
- A function create_seating(file_name, rows, columns) that takes in a string which acts as a file name and two integers, the rows and columns of a resulting 2D list that you should return. The file cont…
- a In cold weather, meteorologists report an index called the \textit{wind chill factor}, which takes into account the wind speed and the temperature. The index provides a measure of the chilling ef…
- Using this machine-learning-online-2018/Seaborn/Seaborn.ipynb adjust for the dataset you can find the data file here (https://github.com/coding-blocks-archives/machine-learning-online-2018/blob/master…
- Find the top frequently used words in the book of “Sense and Sensibility”. The book is in the sense_andsensibility.txt file. The words should not be case sensitive, meaning “Mother” and “mother” are c…
- The code listed below is an example of how far we have reached, our class only uses the pep8 style and we only do imports from tkinter, tkinter.tix and sys # Description: This lab’s purpos…
- KNN Algorithm Implementation 1\. Implement a function euclidean_dist(p1,p2) that returns the euclidean distance between two numpy arrays, p1 and p2. 2\. Implement a function?…
- Pandas provide various methods that can be used to handle data more efficiently. In this task, you should convert NumPy array data into Pandas dataframe type. Write a function convert_to_dataframe (da…
- I need a road map and materials for becoming a python backend developer for working with REST API, Mongo DB, Django
- my json file is not loading even though its in my juypterhub account and it ‘s saying that there is “No such file or directory”
- Selects two industries and chooses five stocks from each industry. Download 3 years (January. 2018-December. 2020) data of the U.S. stocks of your choice. Instruction on how to retrieve historical pri…
- What do I put into the ipynb file in the Jupyter Notebook in order to run it and get that Python testing script that imports my CRUD Python module to call and test the ccreate and read instances of CR…
- Create your own module (20 points) Create one Python module: arithmetic which has two functions: add(x, y) and get_length(x). The description of two functions are below: def add(x, y): # add two n…
- Solving this python class car problem. Please help me solve it. 1- define a class Car that – has a “brand”, “model” and a “year” all defined with type hints making them of st…
- ANSWER THE QUESTION IN PYTHON LAST QUESTION #!/usr/bin/python3 import unittest # ————————————————————– class TrafficJam: ”’ A TrafficJam is a list…
- Please refer to the attachment to answer this question. This question was created from CIS115_Week 7_Lab.docx. Additional comments: “Help me understand this and how to run the code so it follows the r
- write program to ask the user to keep entering as many numbers as she/he wants. • When the user finishes, your program should report: • How many positive numbers…
- Write a function printTwoLargest() that inputs an arbitrary number of positive numbers from the user. The input of numbers stops when the first negative or zero value is entered by the user. The…
- given a dictionary of characters with their favorite foods. sort the characters and their favorite foods. return a dictionary where the keys are characters and the values are the friends who like the …
- Write a code segment to create and print a two-dimensional 5×4 array (i.e. grid). The elements of the grid should be randomly selected from the inclusive interval [-50, 50]. [ ]: #INSERT YOUR ANS…
- Network UDP pinging program may be in Python: To measure the average Round Trip Time (RTT) between your client and my server To estimate the amount of segment loss over some testing interval The UDP c…
- Programming with Python – Focus on Repetition Structures This week we are going to write Python code and execute the code using a Python interpreter IDLE. Use the same setup you did last week (either …
- A company is transmitting data to another server. The data is in the from of numbers. To secure the data during transmission, They plan to obtain a security key that will be sent along with the sata. …
- Write program that asks the user to input a set of floating-point values. When the user enters a value that is not a number, give the user a second chance to enter the value. After two c…
- need python code. Problem 3 Write a program in Python that prompts the user to enter a number of integer values. The program stores the integers, counts the frequency of each integer and displays the …
- I have a wrong amount due “amtDue,” but I cannot find where I did wrong. Can you please take a look? import sys ”’ Section 1: Collect customer input ”’ #Assign input for variable rentalCode #to dete…
- Please help me on 3.4 3.5 & 3.6. In [1]: # Don’t change this cell; just run it. import babypandas as bod import numpy as np import matplotlib. pyplot as plt pit . style . use( ‘ fivethirtyeight&qu…
- Which of the following is an example of multiclass classification?
- import numpy as np import pandas as pd import pymysql import matplotlib.pyplot as plt pd.read_csv(‘apcdata_week.csv’) PYTHON CSV graphic display that would clearly present the information. Sys…
- program that reads the contents of the attached file i_have_a_dream.txt * . Split it into words (where any space is considered a word boundary), and case-insensitively builds a list that stores eac…
- Hello- please help me with a script that would count numbers select the prime numbers from a count of 1-50. Please provide explanation as to how code works and why it was used.
- plz be quick In a data science activity. it is important to ensure that you work with good quality data. Write an explanation, intended for a student who plans to study data 1002 next yea r, about wha…
- Show a Python dictionary that returns a list of values for each key . The key can be whatever type you want. Design the dictionary so that it could be useful for something meaningful to y…
- Write a python script called vmarchiver.py to create a complete backup of a single VM the user specifies. The specific details of how it works are below: When this script is run, it will present t…
- Make a project on “Tic- Tac-Toe game with timer” and write a code for full game
- please use this web linnk to get the data set.: http ://archive.ics.uci.edu/ml/machine-learning- databases /wine-quality/winequality-red.csv # In[1]: import pandas as pd import numpy as np import matp…
- PLEASE HELP ASAP! What am I doing wrong here? What is the correct sql query?. Markdown An analyst looking at the results of the previous exercise realizes that she needs you to perform two more cleani…
- Hello I need a help on my assignment as I’m struggling. Create a new branch in Git. Start by selecting the “Git” menu in Android Studio and select “Branches”. In the resulting dialog click “New bra…
- In this questions, you will design a visualization for a small data set and provide a rigorous rationale for your design choices. Every 10 years, the census bureau documents the demographic make-up of…
- . _._ ______r _-_- _ Consider an RWA problem instance with network given in Figure 5 (where every bidirec- tional line again represents two links in opposite directions) and the following data: 0212…
- For this project you will create a program that populates a list of 8 car manufacturers. You can have the user populate the list or you can have it predefined. Example: cars = [‘Ford’, ‘BMW’, ‘Volvo’]…
- 1 def d_day(d1,d2): 2 ”’ 3 d1 – a given date in YYYYMMDD string format 4 d2 – a given date in YYYYMMDD string format 5 ?…
- This problem involves using numpy and arrays to create python code.
- def return_ten(4,8): return 10 print(return_ten()) x = return_ten() print(x + 1)
- . _._ ______r _-_- _ Consider an RWA problem instance with network given in Figure 5 (where every bidirec- tional line again represents two links in opposite directions) and the following data: 0212…
- Please keep your answers to a few sentences (2 or 3). I’m uploading the Python code here for you to get help from it: PI = 3.1415926535 def computersAreStupid(): mystery = .1 + .1 + .1 pr…
- (2 pts) Suppose Mr. and Ms. J share the same bank account which has a net balance of $0. On the day they get their paychecks of, respectively, $2000 and $3000 they walk up to two different ATMs at…
- I need help with a homework assignment using the decimal method def decimal_module(): ## Decimal Module #print(“##### DECIMAL MODULE #####”) from decimal import Decimal from decima…
- add(self, value: object) -> None: This method adds a new element to the bag. It must be implemented with O(1) amortized runtime complexity. Example #1: bag = Bag () print (bag) values = [10, 20, 30…
- Write program to do the following. Ask user to enter time in the format of hh:mm:ss. For example, 11:07:28. Hour must be a two-digit number between 0 and 23, inclusive. Minute and second must be two…
- I can’t figure out what I’m doing wrong: Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to the power of z), the absolute value of (x minus y), and the…
- Write a program whose input is two integers and whose output is the two integers swapped. Ex: If the input is: 3 8 the output is: 8 3 Your program must define and call the following function. swap_val…
- I need 3 possibilities in python code debugging to consider when a function is not working
- Q3) Write a function called get_words that takes a dictionary of words and a letter, and returns a new list , which only contains the dictionary keys start with the given letter. For example…
- Question 9 library(readr) library(ggformula) library(AER) library(tibble) library(tidyverse) data(STAR) set.seed(3457) #do not change! STAR_80_averages <- rerun(1000,STAR %>% slice_samp…
- how to read a dataset with integers, floats and images in python for deep learning?
- I have a worksheet I need completed for an assignment. attached you will find the whole sheet with the data set included in the screen shots. please help me 🙂 ?…
- The data set on below links please develop python machine learning Data: https://archive.ics.uci.edu/ml/datasets/ElectricityLoadDiagrams20112014# Electric Demand: http://www.think-e…
- I need it in 3-4 hours. Its a python based task and the description is in picture 2. . Write a Python code that asks the user to input the masses (in amu} of two reactants in a nuclear reaction and …
- QUESTION 4 Frank is inviting six friends to dinner. He has 30 close friends, 20 are woman and 10 are men. How many ways can he invite an equal number of men and women? (Leave answers in Combinatorics …
- Hello, I need help from someone who is expert at Jupyter notebook. I got reject my project, I need help from someone rewrite from what I have and fix these error (when I submit was no error, but now s…
- Week 7 Deliverables Overview : This week, you studied additional Flask functionality for creating a secure login form and associated files for a web site. The Lab for this week demonstrates your knowl…
- I have question on simulation coin toss. coin = make_array(‘heads’, ‘tails’) coin = (‘heads’,’tails’) hundred_tosses = np.random.choice(coin, 100) hundred_tosses The above is my coin toss comm…
- In this project, you will work individually to write programs which demonstrate your understanding of Decision and Repetition Structures, Boolean Logic in Python programs. Content and Structure: You …
- I am not sure if the data attached, but I tried to download the data.
- Only perfect answers required, or will rate unhelpful INSTRUCTIONS : 1) Python Programming. 2) No use use of built in libraries and built in functions 3) Use comment out for understanding better. 4) U…
- Create a function in python to find the mode of a list of numbers. Do this without using .mode, .count, or .max function calls. Basically only using either ‘for’ or ‘while’ loop. Possible Approach:…
- Create a list, mylist. Add 5 values of your choice in it. Demonstrate your knowledge of how you will create a. A dictionary, mydictionary, which has this list as a value. b. Access the second membe…
- a list called nlist (that contains numbers), program to compute the sum and the average of numbers in the list.
- Write a program that identifies an increasing or decreasing trend in a sequence of positive numbers. The program will prompt the user for the first two numbers and establish an increasing or decreasin…
- Coding problem: circular array-backed queue `drop` Implement the circular, array-backed queue method drop, which takes an integer n as an argument and removes and returns the value from the queue n po…
- Write the python code to calculate value of each element in the sequence. Using the following recursion: C n = C n-1 – 3C n-2 + 2C n-3 with C 1 = 2, C 2 = -3, C 3 = 4.
- We want to compute summary statistics on the nutrients present in each food. While you might be able to find formulas for these statistics and implement them yourselves – there is no need to reinvent …
- 6 . 1 . 5 . Function append Parity Column This function accepts a frame ( a list of bit lists ) and a desired parity . It appends a parity bit to each list in the frame . Use the append Parity functi…
- The Task: The full file can be found on Kaggle : https://www.kaggle.com/AnalyzeBoston/crimes-in-boston Your job is to code a Python 3 program that uses the provided file and answers the following ques…
- Cant figure out why this keeps failing can someone please help me thank you
- A minivan has two sliding doors. Each door can be opened by either a dashboard switch, its inside handle, or its outside handle. However, the inside handles do not work if a child lock swi…
- Hello, please help correct and finish the code below, according to the question at the bottom. Thank you so much! Unfinished code: import math x= input().split() n= int(x[0]) d= int(x[1]) nx= [] ny= […
- Attempting to run the Genetic Algorithm from mlrose on the Four Peaks problem, but it converges very fast and not sure if this is normal. I’ve used 7 different seeds and a population size of 600, and …
- Assume a function for a bank account named, withdrawal(amount, balance) is already defined. Furthermore, assume that the function returns the update balance when the function succeeds, and the origina…
- Include comment block on line1 of your code with the following information: “” “”” Your Name Course Name, Section (example: ENTD200 B002 Spr18) Instructor name Week # Date c…
- answer below: 1)write function that determines the minimum and the maximum element in an input list of comparable elements. This function should be as efficient as possible in terms of its worst-case …
- why am i getting this error , please correct me if i did wrong coding.. # Use the strip(), Istrip() and rstrip() string methods to remove whitespaces in the given string # Print the result of all thre…
- The question is shown below : Write a recursive function, displayFiles, that expects a pathname as an argument. The path name can be either the name of a file or the name of a directory. If the pathn…
- 2 Write python program that uses input to prompt a user for their name and then welcomes them. Note that input will pop up a dialog box. Enter Sarah in the pop-up box when you are prom…
- I have written a program that will calculate the problem and stop after the condition has been met. a=number of loops (start with zero) b=a+1 c=a+b Condition: If c is less than 5, then the loo…
- A car’s fuel consumption may be expressed in many different ways. For example, in Europe, it is shown as the amount of fuel consumed per 100 kilometers. In the USA, it is shown as the number of miles …
- Snack Bar Menu need to write a program that allows the user to choose from the following menu until he/she chooses to exit. The program should keep a running total of the charges and then add 6% sales…
- Hello, I need help filtering CSV files. The “origin” column should be filtered to display “MIA” and “FLL”. The “destination” column should be filtered to display “LGA”, “JFK”, and “EWR”. Essentially, …
- Problem 1 Write a class named Employee that holds the following data: name, salary, and years of service. Create private instance variables to store these data. Do the following in the Employee cla…
- In python, build a ROC for predicting transmission(‘am’) and construct confusion matrix and Classification report for the mtcars.csv data . mpg cyl hp wt qsec am gear 21 6 110 2.62 16.46 4 21 …
- Write a Python program to create a dictionary from two lists without losing duplicate values. If there is more values in the key list, then provided key should return an empty set if there is no match…
- Section 6.9 of your textbook (“Debugging”) lists three possibilities to consider if a function is not working. Describe each possibility Define “precondition” and “postcondition” as part of your descr…
- . E . Q | E . 1. For each legal expression, solve the expression and state Its value. For each lnvalld expression, state the reason why it is invalid. 3—5— 2. This is one continuous program. Wha…
- Read the script below and answer the following question. Qusetion1. What is the meaning of the line t1 – 1 ? What method does it call? Question2. Which operator is being overloaded? Question3. Writ…
- Python Code: import random target_num, guess_num = random.randint(1, 10), 0 while target_num != guess_num: guess_num = int(input(‘Guess a number between 1 and 10 until you get it right :…
- Write a recursive function reverseString(s) that receives an input string s and returns the reversed string. Call and display your function (20 pts). Test case: print(reverseString(‘Hello World’)) dlr…
- Write a program that extracts the last three items in the list sports and assigns it to the variable last. Make sure to write your code so that it works no matter how many items are in the list.
- Hello, I need help with a python program. Here are the restrictions: You CANNOT use: recursion break/continue imports (except csv, which has been provided) dictionaries try/except. N LAB RESTRICTIONS,…
- In this practice, you are expected to play around Pandas and get familiar with it. The dataset is quarterly dataset downloading from WRDS. Please remember that you need to do data transformation based…
- How do i add data labels on top of each column?. df . groupby(by="Country") . agg("mean") [‘ SalaryUSD’ ] . sort_values(ascending=True) . iloc[-10:]. plot\ (kind="bar" , …
- Given an array of n distinct integers, d = [d[0], d[1], …, d[n−1]], and an integer threshold, t, how many (a, b, c) index triplets exist that satisfy both of the following conditions? • d[a] <…
- I’m stuck on a lab and need help import random seedVal = int(input(“What seed should be used? “)) random.seed(seedVal) while True: lower = int(input(“Lower Bound: “)) upper = int(input(…
- Hello, I need a help for my assignment 3 as follow: Upload your assignment to the Learning Hub at learn.bcit.ca before the start of lesson 12 into the ActivitiesàAssignmentsàAssignment3 dropbox. Ens…
- class CipherTest: def __init__(self, shift=0, direction=0,text = “Testing”) : self.shift = shift self.direction = direction self.text = text #Shift to right function def shift_to_ri…
- Create a class car with attributes:. plate number, car type, liter per kilo(LPK), car price. Create a method that gets a distance and finds how many liters that car needs to cross that distance. which…
- Find the values of a , b , c , and d so that the cubic polynomial y = ax 3 + bx 2 + cx + d provides the best fit to the following ( x , y ) pairs in the least squares sense: (-3, -9), (-2, …
- make a python code Input: Type of Letter (O, V, O) Size of Letter: small, medium, large Example: Input type ( A – O, B – V, C -…
- EastWest Airlines – Marketing to Frequent Fliers Amol R Kulkarni July 8, 2017 Data The data used for this analysis contains information on 4,000 passengers who belong to an airline’s frequent flier…
- I have downloaded a file of Google stock data for specific dates for a particular year. The name of the file is google.csv. The file can be opened by notepad or similar text editor. Viewing the file i…
- write the Python program to compute the solutions(roots or zeros) of a given quadratic equation, A x 2 + B x + C = 0, where A, B, C are integers. As you know, the formula to solve for x …
- How to know the multiple when user input two different number Build an algorithm that takes in two numbers and indicates whether or not the first number is a multiple of the second. If so, it also dis…
- Hi please, I need the correct and final python code for this, there is no rush. I will give an overview of my game manual later so you have a better understanding of the question below. I have also …
- the second picture is the test-file, i tried part A but it only works for empty and simple_graph, and Part B i have no idea how to do it. Please help, thanks a lot Task 2: Using Graphs Part A – Degree…
- # q8 – create function writeEvenNumbers() to meet the conditions below # – accept two parameters: a string (name of a file) # an integer value # ?…
- I need to make Wizard Inventory in Python the program keeps track of the items that a wizard can carry. The Wizard Inventory program COMMAND MENU walk – Walk down the path show – Show all items drop -…
- Background: You are recently promoted from a Cloud Engineer to a Cloud Architect and assigned a project to prepare new environment in the cloud, to which your team will later migrate their application…
- Is it possible to summarize two function? my professor is asking me to summarize the first two function. every time I run my program it said that “NameError: name ‘sporting_monthly’ is not defined”. I…
- Application of Functional Programming Assignment Task :: Data Exploration Given the dataset and the starting code answer the questions stated on this task. Read the article: The Ultimate Halloween Can…
- Do you suggest otherwise?. Let’s say Beth is working for Air Canada and she is asked to updated the company website by using her amazing python skill. Currently, the web is experiencing huge amount of…
- # Complete the function to return the number of leap years in the list def countLeapYears(yearList): # Student code goes here # expected output: 2 print(countLeapYears([2001, 2018, 2020, 2090, 2233, 2…
- There are n people who wish to cross a bridge at night. At most two people can cross the bridge at the same time. There is only one flashlight and they need the flashlight to cross the bridge. So …
- In Python3 how do I write out in code: print 3.78 in scientific notation and print character A by using appropriate ASCII Code?
- What is the point of https://xkcd.com/2048/ (Links to an external site.) ? How is it connected to anything we discussed in this class?
- method headers below In this project, we will discover the basics of image processing, a key area in the computer science field. In the digital world, images are defined as 3-dimensional matri…
- 1) The question screenshots are down below and Scale.java, Temperature.java, SimpleTemperatureProgram.java, Shape.java, XYCoord.java and ShapeExampleApp.java copy-pasted down below: Scale.Java co…
- Upload your lecture notesl to see Premium content Online Education Strategies
- #I just need the four functionalities added to the code. import turtle import random def drawSquare(t): for i in range(4): t.forward(1) t.left(90) def drawBoard(…
- Write a brief explanation of copyright requirements as they apply to code ( minimum 50 maximum 150 words ). Are you allowed to copy code? Why or why not? Give one example each of when you can and can’…
- Create an Energy Calculator Application that solves mass, velocity, and energy in any variety of units that the user will choose. Use the following: 1. GUI (Graphic User Interface) App Using …
- What is the missing lines of code for zyBooks IT 140 : Introduction to Scripting : Chapter 4.8.1 Nested loops: Print rectangle?
- Each row in this dataset is a 20 × 20 image patch represented as a 400-dimensional vector. use the L1 distance metric (see https://en.wikipedia.org/wiki/Taxicab_geometry for a definition) on R400 to …
- I believe the worst case is from 15 down to 1, while the best case is 8,4,12,2,6,10,14,1,3,5,7,9,11,13,15. Is that correct? Thought I’m stuck on drawing the tree part. Your sequence is number 1 th…
- Write a program that prints out a hollow square, with the edges made of asterisks (*s). Specifically, you must create a function named print_square() that takes the square’s side length as the sin…
- Please code in Python, an algorithm which uses the Golden Section Search optimizing method. . In this task, you will implement your very own one-dimensional optimization method based on the golden…
- #This one is a challenge. There’s a lot going on: splitting #up strings, removing unnecessary characters, converting to #integers, and running a big conditional. Our solution to #this is 34 lines — y…
- Create a sub class MultiChoiceQuestion to the question hierarchy of Section 10.1 that allows multiple correct choices. The respondent should provide all correct choices, separated by spaces. Provi…
- . Figure 2: Step by step solutions to the above game Figure 3: Unsolveable game: [3, 4, 1, 2, 0]. Module 5 Homework — Recursion Many of the problems used to teach recursion are not e’li"’1c…
- Sample output: ————————————— Starting new Numerical Tic Tac Toe game ————————————— 0 1 2 0 | | ———– 1 | | ———– 2 | | Pl…
- If you ran the following SAS code to create the dataset cereal_2. How many observations will cereal_2 contain with a cereal type of ‘C’? data cereal_2; set cereal; WHERE type = ‘H…
- Template MadLib Sentences Rubric. Instructions Complete the following prompt for this project. The prompt requires you to use at least conditionals, loops, functions, lists, and files. Please …
- write a function, named roundOff, that takes an amount of money in dollars, and rounds it off to the nearest 5 cents and returns the result. The amount is entered as a decimal number with 0, 1 or 2 de…
- has to be written in C programming Assume you are the CIO of an organization with three different IT department locations with separate costs. You want a program to perform simple IT expenditure calcu…
- I need to change how I validate the height and weight. It needs to be in a loop format. def get_name_height_weight(): #lists for name and bmi name_list = [] bmi_list = [] for i in …
- Setup and Explore 1. Calculate mean IsCorrect by gender and premiumpupil. comment 2. Make a variable for the absolute deviation between correct answer and answer value. histogram + comment 3. Add answ…
- Coding Questions: 1. Add a doctest test for your function custom_add with two different numbers to add than the numbers given in the examples 2. A function, custom_mult that multiplies two numbers…
- Language – Python with database connectivity. commented code required. use Object Oriented Programming including inheritance and polymorphism and exception handling. . The Business: Smart-Mart is a…
- x = 2 y = 3 def add ( x = 10 , y = 20 ) return x + y z = add ( y = x ) what Is the value of z? Consider the following and cal…
- which Big-O efficiency do I use with _append_queue method
- Question in the attachments. Please answer in the format of the third image. Part 3: Plotting Here we explore plotting using matplotlib and numpy . Question 4 Consider the function f(x) = x2 for -co &…
- You are the head programmer at Python Inc. You are tasked with writing a program to take input for an employee. Prompt the user for a name, hours worked, and hourly rate. If the employee works over 40…
- Task 3: Triangular Numbers <§2.2.1 While-loops> A triangular number is any number from the series of numbers (1, 3, 6, 10, 15, etc.) obtained by continued summation of the natural numbers 1, 2,…
- Write a Python function that swaps the top of the stack with the element below it. If the given stack contains less than two elements, the function raises an exception with a proper error message,
- I need help with writing these programs. ICS3U Python Selection Test – Practical – Group D 1. When you take a Taxi they charge you a set fee as soon as you get into the cab and an additional fee per k…
- Write a function that takes a list li, and returns a list of the items that appear only once in li, in sorted order. You can assume the list contains simple objects of the same type, such as a list of…
- make text file based on the receipt box. Save the receipt as a text file. Open and Read a text file and import its contents in the receipt box. from tkinter import * import random import time; import …
- Update the PA14_Numpy file by writing the appropriate code to answer the questions found in the file. Do not delete the comments related to each question or code found in the PA14_Numpy file. Plac…
- How would I go about defining the function, keeping in mind the restrictions? I’m not used to the syntax and as a result confused. RESTRICTIONS
- Question 2 [40 pts] : The data file used in this question is downloaded from https://www.kaggle.com/arjunprasadsarkhel/2021-olympics-in-tokyo and converted to a csv file. a) [15 pts] The Medals.csv…
- Import csv to allow the functions defined in this file access to the functions needed to write to a CSV file. 2) Define a function log_transactions( ) that accepts a data structure containing a…
- Question 3 (2 points) Given the following nested dictionary, show how you would retrieve 1. the population of Alberta 2. the largest city in Quebec provinces = { "alberta" : { "capital&…
- Here is the content of randogen.py #!/usr/bin/env python3 ”’ generate a list of random numbers and letters ”’ import sys import random as r import os names = [‘alpha’, ‘beta’, ‘gamma’, ‘test’, …
- Assume a text file named “myNumbers.txt” contains integers separated by a new line. Using Repl.it, create a Python program that opens the “myNumbers.txt” file and provides descriptive statistics of …
- Hello, I’m working with a dataset in Jupyter. I need to address missing values in each of the columns I was able to identify null values under “education” and under “previous year rating”. I’m…
- accompanying python file — py For each of the programming tasks, you are to • produce the figure as stated in the question using matplotlib. • report and explain how your Python co…
- Question: Use an image, dogs.jpeg and implement k-means clustering for image segmentation and identify dominant color in the image. Relevant data is provided below: Objective: •Use k-means clusterin…
- I’m not sure how to solve this problem using python. The population of a country reached 1 billion people by the end of 2019, and was growing at the rate of 1.1% each year. Assuming that the populatio…
- Please check the image attached. Also ignore every part of kivy GUI. I’m just in need of CLI script. Thanks if you can help 🙂 7:37 11.0 46 KB/S 25 requirements – Read-only . . . Sign in to edit and s…
- Hello please see below are homework questions I am working on for this week. This is my first time working with Python. The first 2 questions I have supplied my code which just needs to be fixed. The …
- Create a Python function called productOfPowersOf2 which takes two arguments, both of which are non-negative integers. For purposes of this problem, let’s call the first argument exp1 and the second a…
- USE PYTHON Write a script using turtle to simulate a simple archery match between Archer A and Archer B. The match will be scored based on the point values of the target rings. If there is a tie, t…
- Write a function that computes the following recursive relation for a given n : A (n) = ( 2 * A (n -1 ) + A (n -2 ) ) /2 where A ( 0 ) = 1 and A ( 1 ) = 2 “”” def A (n) :
- IEEE floating point numbers will occasionally yield incorrect math results when used in computer programs. Using your Raspberry Pi, open the interpreter by typing the word python in the command line. …
- # Complete the function to print the full name of the month using the calendar library import calendar def printMonthName (monthNum) : # expected output: March printMonthName( 3 ) # expected output: N…
- A program that generates a random list of numbers. (start with an empty list and use append() ) The length of the list X can be a random number between 15 to 20. Each of the random numbers on the list…
- In Homework 4b, we plotted least squares fits to some existing data using both linear and cubic polynomials. This program has been put in object-oriented form and given significant functionality to o…
- You may use Google Colab or Anaconda – Spyder to do this task. .. 1. Draw circles around the eyes 2. Draw a triangle around the noise 3. Draw an ellipse around the mouth 4. Draw a rectangle arou…
- Create your own Python code examples that demonstrate each of the following. Do not copy examples from the book or any other source. Try to be creative with your examples to demonstrate that you inven…
- Please Solve The Above Question And Share The Answers Below. b. [4 pts] You will be modifying the function common_pair. Return the top 10 pickup-dropoff location pairs having the highest number of tri…
- Assume a dataset A of n points in a metric space with distance metric d(·, ·). Let c be a constant greater than 1. Then, the (c, λ)-Approximate Near Neighbor (ANN) problem is defined as follows: Gi…
- How do you increment counter variable while using += 1 to keep counting until you hit a certain number, then resets the counter back.
- In Python A cookie recipe calls for the following ingredients: • 1.5 cups of sugar • 1 cup of butter • 2.75 cups of flour The recipe produces 48 cookies with this amount of ingredients. Write…
- There is no specific data related to this question but an example map <m> could look like this The question here is asking how we could program any given map like [1, 2] ?…
- Could you please help me answer these? Week 09Assignment Chapter 07 (Files and Exceptions) Before you complete each of the following exercises, print this page out and use it to keep notes about your …
- “”” ——————————————————- Array version of the Stack ADT. ——————————————————- Author: David Brown ID: 999999999 Email: d..n@wlu.ca…
- pls help as soon as possible 🙂 edited already. Q2: function: percent_to_numeric ( ) (2.25 pts) Now, define a function percent_to_numeric that takes in two parameters df (the DataFrame it will oper…
- import wikipedia from pprint import pprint print(wikipedia.search(“COVID-19 pandemic by country and territory”)) print(wikipedia.summary(“COVID-19 pandemic by country and territory”)) How do I s…
- CS160 Computer Science Lab 11 Objectives Work with dictionaries Work with functions Work with files Overview This lab will have you store the birthdays for a group of people. This program will store t…
- . QUESTION 33 1 points Save Answer Which of the following statements produces an error? Assume string_1 = ‘abc’ and string_2 = ‘123’. O a. string_2 = string_1 O b. string_1 = string_2 + "456&qu…
- We’ll consider it a score if and only if: 48 <3 X < 5G The strict mequality is in case it bounces ofl the hoop. Inside your For-loop, inside the thm_bfl11() method, find the starter-code: # …
- Question-Based on Privacy and Security in Online Social Media. Jupyter Notebooks / Google Colab is strongly recommended for doing this Question and showing analysis, graphs, and code. Link for Parler …
- Python computations needed: Generate i.i.d. Sample (Y i ,X i ) n i=1 of sample size n=400 such that: Y i = 0.5 +1.5X i + U i Compute the fraction out of 1000 times that the true parameter ß 1 is insi…
- Task 2 Task 3 Task 4 I need help with Task 2,3,4, it also needs to be in python TO 44 45 # TASK2 46 # Complete this function 47 def ZBasisMeasure(state) : 48 49 This function performs a simulated Z Ba…
- I want to combine the def function and merge all data frames for the following : from bs4 import BeautifulSoup import requests import pandas as pd def create_dataframe(names,heights): df =…
- def gameManager(games): res = {} for game in games: info = game.split(“||”) title, publisher, year = info[0], info[1], int(info[2]) if year in res: res[year…
- Need help with a program that allows to players to play the marble game using combinations of loop and conditional statements. In the marble game, you ask the user to enter how many marbles to start w…
- explanation for solving this python expression: 16 – 3 * 7 // 4 % 2 I do not understand how the answer is 15
- Must include a custom function and needs to meet all criteria set out in problem include instructions in the hint area. If someone could also explain how they got to the code that would be great as i …
- The input/output is flexible. I need help creating python code for this problem.. Create a function that takes in a body of text and returns a dictionary of each sentence in the text followed by the c…
- Method: multiplicationPractice(): Points – 10 This method is to practice simple multiplication problems. The program should randomly generate two numbers from 1-10 for the user to multiply. It should …
- 1 Return all row and column values from the CUSTOMERS table. CUSTOMER_ID CUSTOMER_NAME DISCOUNT ———– —————————— ——– 133568 Smith Mfg.?…
- I need help solving these python questions, I have also included all the items needed which will be below the question.
- How do I format this code so that it looks like: Red 656,087 (13.12%) Green 336,296 (6.73%) Blue 335,014 (6.70%) Grey 56,941 (1.14%) Yellow …
- user to type an integer. The script should continue to prompt the user for a number until the user types a valid integer. Using the modulo operation (%), calculates the modulus of the user’s integer d…
- Write a Python program in Wing. Save your file as "MP308_initials. py". When finished, upload your file as an attachment for this question within Blackboard. Your program should include your…
- Task You are to write two source files as described below: · The first file named stockApp.py , should contain the following two classes: · The first is a class called St…
- a program to read through the mbox-short.txt and figure out who has sent the greatest number of mail messages. The program looks for ‘From ‘ lines and takes the second word of those lines as the p…
- Megan owns a small neighborhood coffee shop, and she has fifteen employees who work as baristas. All of the employees have the same hourly pay rate. Megan has asked you to design a program that will a…
- Sample output: ————————————— Starting new Numerical Tic Tac Toe game ————————————— 0 1 2 0 | | ———– 1 | | …
- I need help with an assignment. I need to start with the Python code below. alphabet = “abcdefghijklmnopqrstuvwxyz” test_dups = [“zzz”,”dog”,”bookkeeper”,”subdermatoglyphic”,”subdermatogl…
- Discussion Suppose that you are Vice President of Operations for one of the carriers, responsible for on-time performance. What insights do you get from your analysis about flight delays with respect …
- Missing information. Perform an analysis of the given data to determine how different features are related to the app popularity. Build a machine learning model that can predict popularity. For each r…
- You’ve been hired by a large telecommunications company to write a program to help people add and remove apps from their smartphone. To do this you should write a CLASS that models a smartphone. Y…
- In jupyter. how can we examine the ‘tips’ dataset recording the tips given to servers? The dataset can be loaded from internal datasets provided by the seaborn library tips = sns.load_dataset( ‘tips’ …
- Music data in format Song #1 Name Song #1 Genre Song #1 Artist Song #2 Name Song #2 Genre Song #2 Artist Music data Stitches Pop Shawn Mendes Bohemian Rhapsody Rock Queen Giant…
- Need help with python code along with the output. In this assignment you are asked to write a Python program to create a class called ‘BankAccount’ and define three methods called ‘withdraw’,…
- I had an exam today and got this lowest mark. So I need a tutor to help me to understand why did I got this wrong. Both collaboration and plagiarism are prohibited during the test. All suspected ca…
- #2. Write a function that calculates the factorial of an integer n, where n >= 1. A factorial is found by taking the product of all positive integers less than or equal to a given positive integer….
- Q2: Data get from: https://archive.ics.uci.edu/ml/machine-learning-databases/00350/default%20of%20credit%20card%20clients.xls Cleaning data and dealing with categorical features: a) Print value_c…
- Start and use Jupyter Notebooks for the following: In Jupyter Notebooks clean both ‘COVIDfatality_rate.csv’ and ObesityData.csv which will be uploaded in the same folder(links below) https://drive.goo…
- Thank you, please Modify the code for me… test2f . py: Simulate spread of disease through a population using SIR model Based on SIR model: Shiflet&Shiflet Module 4.3 Modeling the Spread of SARS …
- Missing data in a dataset is the most common problems faced by analysts before they start their analysis. The common ways of handle missing data are: • delete the missing data • fill the missing d…
- First of all, make sure your routine to load the sensor list and active sensor list, and your recursive_sort() function are all brought in to your project. The recursive_sort() function definition sh…
- Compulsory Task Part 1 Follow these steps: ● In this task, you will be creating a program for a small business that can help it to manage tasks assigned to each member of the team. Copy the templa…
- This revision question is hard can you help. The program must follow this order . Wrapped in a tryfexcept block, attempt to open the file “information.txt". Print out that the file is not found…
- Create a Python dictionary that returns a list of values for each key . The key can be whatever type you want. Design the dictionary so that it could be useful for something meaningful to you…
- Could I please get some help writing this program in Python? Thank you! My task is to form a program that incorporates a list of integers. The program will have the following functionality: Yo…
- Create Dog class Create Dog class which has the following specification: Dogs consume their energy by barking and gain energy by sleeping A fresh Dog instance has 10 units of energy Dog has a metho…
- Find out the relationship between the following. 2. Answer the following questions. (a) What is the relationship between chemical potential and mass transfer phenomenon? (4 points) (b) Is the Schimdt …
- Find the dimension of Myopia data. b) Write down the equation for the linear regression model of MYOPIC on SPHEQ. c) Write down the equation for the logistic regression model of MYOPIC on SPHEQ. d)…
- (5 pts) Design an OOP System for a Calculator. Your design that you submit should at least 3 classes / entities that you would define. Tips: 1- Think of high-level abstraction of a behavior or functio…
- I need real help trying to figure out how to do this assignment please. Project 6-3: Contact Manager Create a program that a user can use to manage the primary email address and phone number for a con…
- Here is the python exercise and the exercises’s situation. ——————————————————————————– Exercise (1) Lab Exercises Situation: Hints of Exercise (1) …
- You may often see some people use an extra step called pre-train prior to actual training of the model. Submit a report about what the pre-train in CNN is and why we do it.
- Try to remove repetition in the most basic python coding, please. . Number 2 Function Description Write a function wrong_positions that takes as input two strings of length 5, a guess and the answer …
- I’d like some code to help me answer these questions Exercise 2 [25%] Part A 5 marks Create a file that has the following sentences in each line: Hello my name is John Weather is hot today My cat is c…
- ******** PASTY 1 ATTACHED AND DONE. ************* ********START FROM PASTY 2. *********** REFERENCE BELLOW. print(‘Welcome to Bryan\’s Cornish Pasties!’) print() # Define variables PO_amount …
- Question on Morse Code CODE_LIST = [[‘ ‘, ‘/’], [‘A’, ‘.-‘], [‘B’, ‘-…’], [‘C’, ‘-.-.’], [‘D’, ‘-..’], [‘E’, ‘.’], [‘F’, ‘..-.’], [‘G’, ‘–.’], [‘H’, ‘….’], [‘I’, ‘..’], [‘J’, ‘.—‘], [‘K’, ‘…
- . ODE Assignment3-COMP1012-Winter X + X G File | C:/Users/LAMBE%20JOSEPH%20AYOMIDE/Downloads/Assignment3-COMP1012-Winter2022.pdf Initially, we’ll make an empty 3×3 array game board as follows: – ASS…
- Maze Introduction A n×n maze is a collection of paths among interconnected cells in a grid, where n is the number of rows and/or the number of columns. The classic maze path-finding problem tries to …
- Please solve the python question. When working with data sets, it is useful to be able to categorize, for instance, a list of words by their first letters as a dictionary of lists, as outlined in our …
- Single Payment Prediction Challenge – Python Programming Assignment The government of South Amricandzia will impose a “single payer, single payment” system in order to cover the cost of health care fo…
- Can someone help me on Recursive Factorial? like the sample below . Task description: The factorial of a nonnegative integer n, written n! (pronounced " n factorial " ), is the product of …
- Calculating final score Score of Assignment on 100 each =(88, 90, 100,100, 90, 99, 89, 100, 55, 90, 80, 90, 89, 100, 100, 100, 100, 98, 97, 95,99, 99) quiz1 = 30/40 quiz2=60/70 Score of 3 projects on …
- How would I design a code that will read three numbers from user input. Then, print the product of those numbers. Ex: If input is 2 3 5, output is 30.
- . Bb Welcome, Justice – Bla X Bb Week 8 – Computer P X zy Section 8.6 – CIS 110: X Homework Help – Q& x Claimant eServices X ESDWAGOV – Benefit x Benefits-Appeal-Form X + V X C D learn.zybooks.c…
- Python Programming Please someone help me to write these two functions in python Link to hobbit-family.txt file ——> https://gofile.io/d/1AT6JV WHAT HAS BEEN DONE: def read_family(filename): …
- Need help with this python assignment. *Web Scraping, Data Frames, Numpy* https://docs.google.com/document/d/1Otn6UOlj1TPwDbFgxAa7gSEvgFGxw620nSw1K4sBUG0/edit?usp=sharing – Assignment can be found usi…
- Background: Using the logic designed for Assignment Six, create a sequential text file that contains the test data defined in assignment six. Read this file into the two arrays used to create a line…
- How can I figure out this programm Part 3.2: Classification (5 Points) . Write a function called classify_sentiment that takes two arguments: 1. a 2-tuple in which the first element is the number of p…
- My code doesnt seem to pass an error message I need. If the password is inside the commonpassword.txt file, it should render the error message “error=” Please choose another password. This password is…
- I have to find the incorrect ways of handling exceptions in the following code (we are not looking for syntax errors. We are looking for an error in the design level). What are the problems, and how d…
- Solve the following question using Python:. lnfix expression evaluation: 6.3333 Postfix version of the infix expression: 345*6/+ Question: Define a class lnfixExpression I Assume for this question t…
- Question 1: Draw flowchart and write a program (Flowchart, Pseudocode, Python) Create a program that allows the user to input a list of first names into one array and last names into a parallel array…
- Hi, can I have an answer to this? Been going at it for a day, still cant manage to do it, thanks! Apply forward elimination to this system of linear equations to put it into the upper triangular form….
- Description In this project you are responsible for analyzing traces of Azure VM workload in some geographical region and represent them in a meaningful way. At the end of this project you have to…
- For each function, describe what it actually does when called with a string argument. If it does not correctly check for lowercase letters, give an example argument that produces incorrect resul…
- Please help write the code below using python.. Practice Problem #3 Change Machine Marking Checklist Ask the user to input the cost of some item, and then ask for how much 1 K/U Runs without error mon…
- Acquire power data (source) for at least 10 days and not more than 40 days. Load the data into a Jupyter Notebook. Create two bar graphs of the power consumption per hour. One bar graph has 24 bars…
- shirt = { “brand”:”Gucci”, “size”:”Large”, “price”: 200.00 } Add an item to the above dictionary called “color”, set it to yellow.
- Based on score.txt raw data set, write program that will · create temporary data set FScore. · remove observations from score data set when the age is missing. · …
- Create a program that: a. Creates the following tuples: tuple_a = (2,2,2,2) and tuple_b = (2,4,6,8,2,4,4) b. Copies the elements 6 and 8 from tuple_b into a new tuple with an optional name and pri…
- Please use a while loop. Never use for loop.. Question 5 (10 points) : The Fibonacci sequence is a sequence of numbers: 1, 1, 2, 3, 5, 8, 13, 21… where every number is equal to the sum of two number…
- def add(f1,f2): n1 = num(f1) d1 = den(f1) n2 = num(f2) d2 = den(f2) n = n1*d2+d1*n2 # the numerator of the sum d = d1*d2 # the denominator of the sum f = reduce( st…
- What are two functions required to implement a Dictionary compound data type, for manipulating the data. Give the pseudo code for implementing a key search using a Linked List structure where the key …
- #EXAMPLE DATA (THIS IS AN EXAMPLE. There may be many segments in a route and many routes) trip_data_geojson = “”” {“type”: “FeatureCollection”, “features”: [{“type”:”Feature”, …
- In python, you will develop a function to sort the dataset and store it in a format of lists, sets, tuples, and dictionaries. The function will sort the dictionary books using specific criteria and wi…
- Need help as soon as possible. Question 1: Question 2: Create a python program for the given problem. Part 1: Sort Analysis Program A: Bubble Sort Suppose you have the following list of numbers to sor…
- You have a drone that can fly for a distance of D before it runs out of battery. There are N charging stations that can fully charge up a drone. a program to determine whether there is a way to fly a …
- what is the answer What would be the output of the following program? Please note that the operation x % 10 (1.e., x modulo 10) is always the same as the rightmost digit of x (e.g., 123 % 10 = 3) ff =…
- Part 2 – COVID-19 Quarantine States The NY State COVID-19 Travel Advisory at https://coronavirus.health.ny . gov/covid-19-travel-advisory requires that individuals who travel to New York from states t…
- Observation 1-B: A failing vote. Let’s take a look at a vote with a different result, votes_subset[8]: In [6]: inspect_data(votes_subset[8]) { “congress” : 106 , “chamber” : “House” , “session…
- Assign doThingLambda to be a lambda function that does the same thing as the function below: def do Thing(a, b): c = a.split() d=c+b e = len(d) return e Hint: Try to think of a way that you could …
- Hey this is a project that I need to create the game 21 card game. In the past, students have built a python version of King’s Cup, a recruiting web scraper for LinkedIn, a Magic 8 Ball game, and …
- Please help with python question. Please don’t make code too complex because we have just learned basics of python programming right now. Thanks.. Question 3 (8 points): Purpose: Practice using variab…
- need help with the lambda function in python I made an AI-powered hotel reservation chatbot using Amazon LEX V2 it has two intents (greeting and reservation), how do I write the lambda function in p…
- I have applied K-Means clustering for the below scaled data however can you help determine optimum clusters. Also note silhouette score is advised below from sklearn.cluster import KMeans In [30]: k_…
- # Given a list strings containing # department code, course number, course title, enrollment # Print a series of tables in different formats # Unfortunately, the spacing between each of these items wa…
- Exercise : Bringing Things Together (5 Marks) In the previous lab, we used variables to hold single values for speed, time and distance in our projectile motion scenario. In that sense we used Python …
- Hello, I’m not sure how to Add menu items to write to a file and to read from a file to my code below. Can you help me please. class calculate: “”” Class calculate takes in operands and performs t…
- Referring to the picture, how does this python programm works, why does it stopped at 6 and how come 5 isprime is true? Explain in details please. 21. What is the output of this program? 1 number = 25…
- . 8.20 LAB: Car wash Write a program to calculate the total price for car wash services. A base car wash is $10. A dictionary with each additional service and the corresponding cost has been provide…
- can someone help find the python code solution to this without using numpy for questions A, B, C , D?
- Please help me with the following code Modify the Python script to: 1. Have labels on the x and y axes, and a plot title that include the values for r and a (the key parameters of the SIR model). 2. S…
- Hello, I need help solving this Lab simulation, It uses Format temperature output for String and Files statements and I am very new at python on so I need help solving it. It is very difficult. It is …
- I am writing a program in Python that rates movies with star ratings from 0 to 4. After getting a few ratings for the movie, I should get an average of the ratings. I am not getting an average, instea…
- In main, add a loop to enable the user to run the Python program all day without having to restart the program. Make a question to the user control this loop (this question should NOT ask how many tim…
- Database Design and Analysis The following database project will create educational attainment “demand” forecast for the state of California for years greater than 2010. The demand forecast is the exp…
- i am facing difficult in returning the set output list=[1,1,2,2,3,4,5] set={} def list_to _set (list): for i in range (len(list)): set= set.append(list) return set; x = list_to_set(list) print(x) i am…
- PART A The code below produces a microscopic image of a bacteria that are overlapping Run the following: >>> import numpy as np >>> import scipy as sp >>> import mat…
- int main(){ float radius; cout<<”Enter the radius of the sphere: “; cin>>radius; float diameter = 2*radius; float circumference = diameter * 3.14; fl…
- Here is the python exercise situation and try to use the attached link Python source code example to revise the code. ——————————————————————————– E…
- How to use 1D Covnets for spelling correction? Please described
- follow the intructions on the paper. can use any name, address, phone number, email, account number, number of accouts and balance.. There will be five outputs, 1: Print all clients 2: Add a cli…
- Python What is difference between floating point division and integer division
- I am very confused on this problem, can someone please help me? Below are three files, BSTMap is already solved, the functions that I need help with are on myBTSMap file. There is also a test file whi…
- i am having very much difficult running this code to get the correct output, it is suppose to output a list of the words that is in an input file that i have to create….what am i missing? and als…
- Python, KMeans Clustering. I need to visualize the KMeans Clustering result on a dataset having 10 attributes. My Google search so far only suggest doing a PCA to reduce the dataset into 2 dimen…
- Can somebody help me with this… Convert this java program to python program using this online ide: https://www.jdoodle.com/python3-programming-online Screenshot the codes and output. . import java…
- Im having trouble writing these programs.. 2 of 2 + 80% Write a program that displays a nice looking menu of items sold on Amazon. The last option should be exit. Your program will calculate the total…
- Please create program to find the largest value. Ask the user to enter three numbers. Compare them and report the largest one. [Hint: The user is free to enter any three numbers. Some or all of th…
- I need help with this assignment. Please help. Thank You. Program 6 – Repetition Structures Write a program that calculates the occupancy rate for a hotel. The program should start by asking the user …
- Exercice 3- Tri par insertion . Un algorithme efficace s’appelle < tri par insertion > (Insertion Sort): Inserer une valeur dans la bonne position dans la liste deja triee a la gauche. Le premie…
- Write a script that inputs a line of plaintext and a distance value and outputs an encrypted text using a Caesar cipher. The script should work for any printable characters.
- Complete the following multiple-choice questions: 1) Why is the network layer broken into multiple layers to solve the networking problem? a) Breaking problems into subproblems and solving eac…
- Hi, can anyone explain the following code on computing the sum of the first n square numbers (recursive)? def sum_n_squares(n): while n**2 <=1: return n**2 return n ** 2 + sum_n…
- How can get the belowto print table def managementCounts(df): return df.pivot_table(index=[‘ManagerID’], aggfunc=’size’)
- def maxSubArray(a): n = len(a) if n == 1: return 0 # your code here from random import randint assert(maxSubArray([100, -2, 5, 10, 11, -4, 15, 9, 18, -2, 21, -11]) == 25), ‘Test 1 failed’ assert…
- First, take a set of 6 grades from a user and average them. Provide the average to the user. You need to check to make sure the grades are within the normal range. If the grade is less than 0 or more …
- Question: Design a Bird class so that the following output is produced upon executing the following code: Code: You’re not allowed to change the code ostrich = Bird(‘Ostrich’) duck = Bird(“Duck”, T…
- def median (numbers): numbers.sort() midIndex = len(numbers) // 2 if len(numbers) % 2 == 1: return numbers[midIndex] else: …
- Consider the expression (a + b) * c, but with values for a, b, and c. Enter that into the Python shell. What happens? Why?
- Create a class named MyClass with a property named class_size that has a value of 30. Use the “increase indent” button for indentation or ten whitespaces.
- What is the base case for the following recursion: def f(b, q, n): if n == 0: return 0 else: return b*q**(n-1) + f(b, q, n-1) print(f(b=2, q=3, n=4)) a. n is 0 b. n is 1 c. n is greater than 1 d…
- I wrote a code that searches mulitple text files and returns potention applicants whose applications match a set of specific skills. My code is mostly doing what I would like it to do. How d…
- In the following dataset, create a decision tree using the Gini Impurity. You are a car seller and have 29 cars in your inventory. Each car has 3 features, and you want to find out how these features …
- Find command Evaluate your find command comprehension by completing the following tasks: In your ~/workspace directory: Find – with a max directory depth of 1 – only the files that begin with the …
- ) Prompt the user to enter a string of their choosing. Store the text in a string. Output the string. (1 pt) Ex: Enter a sample text: we ‘ll continue our quest in space. there will be more shuttle f…
- What is the return value of trunc() in Python lang?
- # Complete the function to remove trailing spaces from the first string # and leading spaces from the second string and return the combined strings def removeSpaces(string1, string2): # Student code g…
- get_movie_credits_for_person(self, person_id:str, vote_avg_threshold:float=None)->list: “”” Using the TMDb API, get the movie credits for a person serving in a cast role documentation url: https://…
- Hi Python Experts Making slight changes to requirement . I was struck when i tried to convert pretty table (tabuler_table) data into csv format ( as i want to attach in email as csv ) . Feel fr…
- The marketing department for an online store recruits a computational team to help guide product development for 2022. The company has a database of customer attributes showing products they liked and…
- Please I need test case. I tried a couple but I keep getting that error message. -mutable-list-fun Settings () ServiceNow O Cornell Python O Cornell Portal Python Library Introcs document.. ( Python T…
- Assume there is a 2D numpy array of integers named y. (a) Write a loop that will calculate the average of all values in the row with an index of 3 by summing the items. (len is the only method that ca…
- I have to make a project, in Python with the following requirements: I have to create a record object (also known as entity object, data-transfer object) that uses the column names from the dataset as…
- CAN YOU THIS PROGRAM WITHOUT DEF FUNCTIONS. Chapter 3 PROGRAM DEVELOPMENT PROBLEMS D1. page 123. This program should let the user convert Ounces to Grams, Grams to Ounces, Inches to Centimeters, …
- Write python program to read three numbers in three variable and swap first two variables with the sums of first and second, second and third numbers, respectively. 2. Write short p…
- # Complete code # Complete the code Long term short term memory (LSTM) The LSTM cell take a {t}th frame of a input sequence and states tensor from {t-1} step ([{t-1} hidden state, {t-1} cell state]) ?…
- “Ensuring that Your Application Meets Technical Requirements” Developers are often asked to write code in fields where they have no expertise as to the subject matter (e.g., writing code to determine …
- This assignment is based on Exercise 8.4 from your textbook. Each of the following Python functions is supposed to check whether its argument has any lowercase letters. For each function, describe wha…
- How do i solve this Python theory questions provide answers to each of the following questions which all discuss class Widget, defined as follows: class Widget: b: int #type hint for proper…
- Implement this Single Server Queue Using Python: A service facility consists of two servers in series (tandem), each with its own FIFO queue. A customer completing service at server 1 proceeds to serv…
- I need help making a function swap(txt, s1, s2) to swap the contents of the substrings s1 and s2 in the text string txt. Return the result as a new text string. Use the docstring “””Swaps substrings…
- Create a program in Python Eclipse that asks the user for an integer that represent the date in the MMDDYYYY format and then displays the date in the format DD/MM/YYYY. You may assume that the user wi…
- The script Python is to calculate the see temperature i wanna save this data in Geotiff format
- # import the numpy library… import numpy as np ######################################################### # Convert a list of lists (l) to a numpy matrix and # return the matrix. #################…
- program that creates a dictionary containing the U.S. states as keys and their capitals as values. Note: You need to store the capitals and states in a separate file and then read them into your dict…
- Can you help me make a tkinter the below image. Usung the codes below? Im concerned as to what is needed. #declare the class name as required class loan: #constructor declare def __init__(self…
- Please help me with this computer science question. The program can be coded in Java or Python I have attached reference code for both. Thank you for your help. Attached are the details and the code…
- Need help making this program work!! I am confused on how to construct the makesieve() function and how to implement it in the code. I’d appreciate an explanation or code to see how this program shoul…
- Part I Instructions: A simple calculator to accept two numbers and print the addition, subtraction, multiplication and division of the two numbers. You are required to store each input number in a sep…
- I built this class. class Book(): def __init__(self,title,author,publisher,price): self.__title = title self.__author = author self.__publisher = publis…
- I will attempt to write Python function called hypotenuse that returns length of hypotenuse c of right triangle given lengths of two legs (a & b) as arguments. below shown is the mathematics nee…
- You can access the data from here https://docs.google.com/spreadsheets/d/1qkaFavHtqrSSZnCTy8qyHwXECI5WeLyR/edit?usp=sharing&ouid=104971339489862921302&rtpof=true&sd=true – Calculate tra…
- Question 3: Write a program in which you ask user to enter two values using two input statements and save the values in two variables. If both of the values entered by user are valid numbers(see examp…
- 1) Create_read.py Take the two files included in the assignment, names.txt and ID_Numbers.txt. One file contains three names, the other file contains three ID numbers. The goal is to assign the ID …
- Fill up the missing values with their means for columns with numerical data types. After the above steps, show that there are no missing data in the DataFrame. Plot the relationship between Education …
- Math: Create a Python script/file that performs the following computations and outputs the results to the console window. 75 + 40 – 10 a. 24 16 b. 64 * cosine(In(e*/4)) c. Volume of a cylinder i. give…
- Hash Map implementation: Please explain to me what is happening in this code for resizing a hash map? There are no comments and I am trying to understand the steps. def resize_table(self, new_capac…
- How do i find the first iteration? Mock F133: Suppose we are minimizing f(‘.l:) : 3:4 with respect to as. We initialize x to be 2. We perform gradient descent with learning rate 0.1. Afler the first…
- ### CONNECT_N_TEXT ### #! /usr/bin/python3 import sys import connect_n_state def main(simple): game = connect_n_state.Connect_N_State(7,6, 4, [“Red”,”Yellow”]) while True: if not simple: if game.is…
- >>> import random def randomNumberGenerator(a,b): return random.randint(a,b) #Declaring The Name, Number, and Guessed Number variables #Input of Name of User name=” #Input Number you want to…
- this is what i had before and asked was it correct now i can’t get past the first line that i informed to do
- resultat = True rang = 0 while rang < len(m) and result: #ligne5 col = 0 while col < len(m[rang]) and result: #ligne 7 if (rang != col): ?…
- How would you go about doing this? Can’t seem to get the format. It’s suppose to look like this. 54 82 75 72 56 64 57 80 74 79 62 81 71 42 69 Sum of the Random numbers list is 1018 42 54 56 57 62 64 6…
- The output should look like this list: 1 2 3 3 list: 1 3 4 2 list: 3 2 1 0 4 list: 7 1 list: 7 7 2 5 Problem 5 (1 mark) Problem: Write a function that given a list of numbers, returns the length of th…
- What’s the best fit answer! 1) Which of the following is not considered in bag of words (BOW) model representation? 1. Word Sequence 2. Word Importance (e.g. IDF) 3. Word Frequency 2) In a …
- Look at the following Python expression. It has 13 operators. z = a or b + 2 >= c – 2 and b + c < 70 or not x – y > c – 20 You are asked to fully parenthesize the expression to show in what o…
- The problem requires using the function computeScrabbleScore developed in an earlier problem set. Copy the code for the function to the cell below. Write code that repeatedly prompts the user for a wo…
- Satellite Data Processing In this assignment, we have to write utility for people at Pakistan Space & Upper Atmosphere Research Commission (SUPARCO). They have a ton of data received from differen…
- Write a recursive function reverse ( text ) that reverses a string . For example , reverse (" Hello ! " ) returns the string " lolley " . Implement a recursive solution by remo…
- Hello, I need help solving this Lab simulation, It uses Modify a list for Lists and Dictionary statements and I am very new at python on so I need help solving it. It is very difficult. It is very con…
- https://classes.alaska.edu/bbcswebdav/pid-9056306-dt-content-rid-95992744_1/xid-95992744_1
- Activity #2: Constructing your program AFTER doing Activity #1, construct your program and name the file LastName_Lab6a_Act2.py. Your program should ask users for a strain, and report the stress. As y…
- . Write a program that asks the users to guess a random integer number between 2 and 6. For each guess it must inform the user whether the number is greater or smaller. Once that the user finds out…
- Creating a programme about a smart alarm Question 1 • Alarms The program should enable the user to schedule and cancel alarms. The alarm should notify the user when the relevant time is reached. Ala…
- In python. Write function called hourly_employee_input that asks the user for a name (string), hours worked (int) and an hourly pay rate (float) and prints a string including the information. Include …
- Restrictions: • You must use recursion in each function in order to receive full credit. • Loops are banned. You may not use a for loop or a while loop anywhere in your solution • You are …
- Consider course = {131: “Pyyhon”, 231: “Java”, 355: “Pen Testing”, 520: “Data Mining”} 14 [4pts]) The following Python statement adds a new course item. Fill in the blank to add 505 “Foundation”. c…
- Please create a ROC plot curve and Precision Recall Curve based on the numbers below:. Has Covid Has no Covid Test + 600*0.99= 594 400*0.01=4 598 Test – 6 396 402 600 400 1000
- Dictionaries review Like lists, strings, and tuples, dictionaries are a type of collection which can be very helpful in tackling various coding tasks that you may encounter. Similar to how lists are c…
- Question 1 Here is a table of 1-5 star ratings for five movies (M, N, P. Q. R) by three raters (A. B, C). MNPQR A12345 B23253 C55532 Normalize the ratings by subtracting the average for each row and…
- This dataset is stored as fixed-column format file with no header(You need to check the DataDescription.txt file to learn about how the columns are formatted) ** Write Python commands to set the co…
- I need help with Problem 2. Thanks! Problem 1: Kruskel’s Algorithm . Illustrate how Krusltel’s algorithm write on an undirected graph GUY, E} with a weight function to : E —> R starting from ve…
- i need help filling in the TODO , Inventory.dat must be created. import pickle from inventory zten item import Inventorpickle def main () : inventory = load inventory() display inventory (inventory) a…
- Implement the training loop as a function train(alpha, epochs) where alpha is the learning rate, and epochs is the total number of gradient updates. Requirement : You must use the built-in tf.keras.lo…
- https://docs.google.com/document/d/1VhoOK1DRCAMisq8YH-8gtfiQsqPXDJ_VwG9Az4yPRPM/edit?usp=sharing has to be done in python
- Idea needed for python project Project name: Type the name of the project. Please write a short and descriptive project name. Project Description: Mention the main purpose of the project in three or f…
- C sharp. I’m doing C# on visual studio (2012). I would like help in fixing my error or my whole code. I have done the console application but it’s not running I’m getting this error; The name ‘valid’ …
- The objective of this lab is to create the beginnings for a python-based card game. We DO NOT expect a fully functioning card game. What we do expect is that you create a main function and various fun…
- NEED HELP IMPLEMENTING THE FUNCTIONS IN THIS CLASS (DOCSTRING EXPLAINS REQUIREMENTS): from typing import Iterator, Iterable, Tuple, Text, Union import numpy as np from scipy.sparse import spmatrix NDA…
- Design and implement a simple interactive Book database for library users. Use the attached library.txt file as the book catalog. In addition to building the base, the program should be able to search…
- Write a text-based restaurant management system with the following features: A text file with an existing or starting menu including item names, wholesale and retail prices for each item on the menu…
- I need assistance creating at least 5 unit tests, with at least two different assert functions within the 5 unit tests for this program that was written in python. The Unit Tests should be based …
- Need help writing a program for this. Thank you! Practice prompt Write a program that completes the following actions. 1. Ask the user for a positive number. The number can contain a decimal. 2. Add t…
- Question 3 A factorial is the product of all the integers from 1 to N. That is, 5 factorial is 1 x 2 x 3 x 4 x 5 = 120, In mathematics, factorial is usually indicated with an exclamation point, 5! is …
- Look below for the attachment. The goal of this assignment is to practice reading and parsing through files on the web. In order to complete this task, students will need to have an understanding of …
- I’m trying to return a function called expenditure_stats_by_state(data, start, end) where it provides the avg, sum, min and max stats within the provided range of financial years. Could you explain to…
- . For both of these exercises download the file lec20_ex. zip from the Course Materials page on Submitty. It includes a data file and lec20_ex_start. py . You start from the latter for both exercise…
- I was hoping to get some help with Question 3 shown in my screenshot. It refers to question 2, so I included that question within my screenshot as well. The question is more qualitative than quantitat…
- def _shift_left ( self , parent ): “”” ——————————————————- shifts the parent node to its left around its right child. …
- Can you help me coding for this question in google colab. Single parameter 1. Write a function print digit() which takes a single string parameter . prints all characters that are decimal digits, i.e….
- A top SMS client of COMPANY(X) sends at least 45,000 messages a day. During the middle of last month they started sending just 20,000 messages and now at the beginning of this month, they have stopped…
- I have added some points to the map below, I want to name these points and show them on the map. I would be glad if you could help. import pandas as pd import geopandas as gpd import matplotlib.pyplot…
- Simulate a tally counter that can be used to admit a limited number of people. First, the limit is set with a call def setlimit(self, maximum) if the cou…
- Question 1: Part1 We will be implementing various functions relating to music streaming platforms such as Spotify and Tidal . In Spotify , we are able to create playlists with a custom ordering …
- def exercise02(a) : # The function exercise02( ) receives a Python list and converts it to an ndarray . Convert the list to a numpy ndarray called array. # – – – – — Place code below here \/ \/ V –…
- Question 7 (10 points) Each of the code sections below produces an error. For each code section, correct the error, by correcting that line of code, inserting a line of code that is missing, or provid…
- In PYTHON 3- Implement a subclass (described below) of “Word Guess”, a variant of the game Hangman. In this game, a word is first randomly chosen. Initially, the letters in the word are displayed repr…
- Solve Problem 10.6 using LU decomposition Use Python programing and provide code on Jupyter Notebook with the proper explanations.(Code should run without any error).. 10.6 Use LU decomposition to det…
- Tokens/Scanning The original code works as is, but instead of having the user type in a string, I would like for them to be able to search a file to be tokenized such as read.py. (Please try enteri…
- A model uses below decision variables. xi,j,t: Number of product i produced in facility j in month t. i=1, …, 20; j=1, …, 5; t=1,…, 12. Using above variables give algebraic expressions for be…
- . puliva pulivall An equalized array only contains elements less than K. @gmail You can perform two types of operations to convert Arr to an equalized array. vi2001 . Operation 1 takes T1 time. Duri…
- please help with this one use the template I attached and output like one I attached
- luxur travel arranges 1 – week tour to southern egypt. the agency provides 7, 4,7 and 8 rental cars over the next 4 weeks . luxur travel sub contract with a local dealer to supply rental needs the dea…
- #You’ve been sent a list of names. Unfortunately, the names #come in two different formats: # #First Middle Last #Last, First Middle # #You want the entire list to be the same. For this problem, #we’l…
- A screenshot of the CentOS desktop Start the browser using Applications → Internet → Firefox web browser. Submit a screenshot of the browser window showing the default home page of the browser. St…
- Please write the code for these steps in python 3. Import numpy, pandas packages as required. I want this only for practice and learning. Thank you. (10 points) Problem 2. To compare the reviews, you …
- Game 0 For this assignment, you will make an additional dice rolling function called TargetRoller(). Put this in your MyUtilities.py file This function will work similar to our DieRoller, except inste…
- Hey can you possibly answer the test_most_popular_one_item, test_most_popular_mutation and test_underperformers_low_threshold
- Below I copied my code and the error I am getting can you please help me fix it n= int(input(“Please enter a number from 5 to 15: “)) print(n) m=int(input(“Please enter a number from 5 to 15 (again): …
- Write a if/else statement that compares age with 65, adds 1 to senior_citizens if age is greater than or equal to 65, and adds 1 to non_seniors otherwise.
- What am I doing wrong? it is not printing my average. #Welcome message #Add menu options #def menu #1 def batting_menu(): print(“===========================================================…
- Trying to figure this out: Add three methods to the Student class that compare twoStudent objects. One method (__eq__) should test for equality. A second method (__lt__) should test for less than. The…
- 6 Write program that reads a file, one character at a time, and prints out how many uppercase characters it contains and how many lowercase characters it contains.
- Energy consumption is measured in units of kilowatt hours (kWh). The more kWh a household use in a month, the higher the energy bill. A power company charges customers $0.12 per kWh for the first 50…
- make changes to this existing code. take input in a function. In the interactive part, you will write a function to input the temperature and then return that temperature to the calling program…
- PLease solve, thanks The following code is executed: x = floatlinputl"Enter x: ")l y = floatlinputl’Enter y: “)l ¥**BLANK*¥* and the following output is observed in the shell: Enter x: 5…
- Lab 3 Assignment In the exercises, you will still use the same dataset after One-Hot Encoding The dependent variable is “default payment next month” Name: Starting point – Import and Split datas…
- Here is the test case for the function: some_X = np. array ( [ [ 0, 1, 12, 3, 4] , [ 5, 16, 7, 8, 91 , [ 0, 11, 12, 13, 4] , [15, 16, 17, 8, 19], [ 0, 1, 12, 3, 41, [ 5, 16, 7, 8, 13] , [ 4, 15, 0, 5,…
- py class Stack: def __init__(self): self.items = [] def push(self, item): self.items.append(item) # MODIFY: RAISE AN EXCEPTION IF THIS METHOD IS …
- Compare and contrast the functionality for security automation of two of the three programming languages we discussed in class (Bash, PowerShell, and Python). Given the prevalence and severity of cybe…
- letter_number Write an interactive program that prompts users for a letter. It should then tell the user what letter in the alphabet it is. You should accept upper and lower case letters. Your program…
- Problem B. (10 points ) Crewperson and Pretender Construct two additional classes named Crewperson and Pretender, to represent each of the two possible specializations for a Character. The Cr…
- Write a program to compute the frequency of the words from the input. The output should output after sorting the key alphanumerically. Suppose the following input is supplied to the program: New to Py…
- Linux python: please help me with section d and the Add another document part. I already have existing codes. Filename: filename.py Requirements: Generate dummy data and name i…
- Background The authors have developed ten ML models for predicting survival of patients with heart failure and compared their performance. You must read the article to understand the problem, the data…
- Implementation : You will implement and experiment with various feature engineering techniques in the context of Naive Bayes models for Sentiment classification of movie reviews. We will use the …
- A recursive Python function called prodListePos_rec that will take as parameter list and as second parameter the number of elements of the list, and which will return the product of positive elements …
- Scenario You work for a small company that creates text-based games. You have been asked to pitch an idea to your team for a text-based adventure game with a theme and environment of your choice. Your…
- Design a program, using pseudocode, that allows the user to enter 20 names into a String array. Sort the array in ascending (alphabetical) order and display its contents.
- I need some expert in programming. I badly need your help for this. It will help me big time for my written lab report. Thank you for understanding. I already provided my references/instruction in t…
- Python: Bokeh Charts I’m not sure if my code and output are correct: Here is the full code: from bokeh.io import output_notebook, show from bokeh.plotting import figure output_notebook() import …
- write a python program that can be used to edit, as well as to access the information contained in a database called students.dat. Please open the “students.dat” file with notepad or notepad++. This d…
- Write a Python program that will connect to this database( Look at link ) -which should be downloaded and placed in the same folder where your Python program is. The database we will be using is de…
- Please help me to fix the code shown below. These are the requirements: Design a syntactically correct Python program to solve the following problem: Design a program for the local coffee shop owner…
- discover existing tools to extract data from word documents python
- Task Two You are given the task of implementing an IoT service by gathering real-world data from actual IoT sensors. This scenario will be explained further in your tutorial tasks. You have recently b…
- can i get help with functions. im having trouble understanding functions and how to implement them here. #Program // Game for user to enter penies, nickles, dimes, and quarters to reach a dollar #d…
- write a single expression/statement that refers to the specified variables. (You should test them by assigning actual values to those variables and then writing expressions that refer to those variabl…
- The dataset is available at: http:://github. com/mariuszoican/mot443/blob/main/Date/A2_CGBM_Trades. cav?raw=true Data fields: number : trade number ID (each unique trade has two entries, one for buyer…
- . . Write a program that will generate and display a sequence of numbers in the following pattern: first number will be O, second will be 1, third will be the previous 2 numbers added together. Use …
- THIS FOR TURTLE STARTER CODE https://drive.google.com/file/d/1VdoNdNlkNgNJSWeOF6DEs88p_cnQYgls/view?usp=sharing. As a final result, your recursive functions should produce the following image. Pytho…
- The text book section link http://greenteapress.com/thinkpython2/html/thinkpython2012.html#sec134 Question Create Python dictionary that returns a list of values for each key . The key can …
- Task 1 on Key index Searching & Sorting (25 marks) Create a KeyIndex class with the following properties : Fields: int [ ] k; Description An array of integers. Note: You may…
- I can’t figure out the for loop . Instead I have temp = head while temp is not None: print(temp.value) temp = temp.next_node Question 9 is below Thank you Question 3 : 5 points Say a linked list made …
- Write python program to generate and print all possible combinations of the characters present in a given string. Take length of string = 4 e.g. JOHN will have combinations JONH , JNOH…………
- Part 2 of 2 CSC 212 – Data Structures Tree- Sorting Assignment 4- Before performing the Tree sort, you need to generate the list to be sorted randomly. Your tree sort will do the following: a.?…
- Write Program to calculate Mean, Median, Mode , Standard Deviation, and Variance of an array. Coding Import the Packages numpy,statistics Declare a numpy array with values 9.2,10.7,6.8,9,3.4,5.7,5.7 C…
- Task1: #Define a function called show_students which takes 2 parameters students and message #Print out a message, and then the list of students #Next, put the students in alphabetical order and print…
- True or False: You can rewrite any for-loop as a while-loop.
- How to build bootstrap confidence interval for each number with following given list(named statistics) in python (n=1000)(95 % confidence interval)? Thanks statistics = [9.569975284512807, 4.394361684…
- Discuss an example in your own code where user input caused your program to crash or malfunction. How did you fix it? (or should have fixed it?) Create a small function that contains an input validati…
- Introduction to coding python programming last picture should be the output of the code and by using OOP functions . DailyPriceList Class DailyPriceList +prices: Dictionary init_(self, prices) …
- In this assignment you will create and use a database to find meanings and synonyms for given phrases. To do so you will use tables of synsets — sets of one or more synonyms (specific phrases) that s…
- Given the text file ” wellstm.txt” , attached, write a program called triage.py to group the words in the text file by their last letters and count the number of words in each group. For each grou…
- I want to add exceptions to the problem such as this line of code try: string1 = input(“Enter your Higher Range: “) num2 = float(string1) except ValueError: print(“You did not enter a numb…
- Your table does not have the same entries as the solution._Notebook11_Exercise3
- could you help giving me explanations on this R Programming problem ? Thank you Rstudio as software ! BaseR functions only, please follow the instruction and tips . Part 1 Tips: Part 4 Tips : _ I – – …
- . Sometimes Bootstrap may fail and this question provide a simulation study. Suppose our data X,- are i.i.d. from Xi ~ Unif{0,3) and we want to estimate 3 from the data. Suppose H = 1 is the true va…
- # Writing code to sort a list is a good for learning Python syntax, # but if you need to sort a list in a bigger project, please DON’T # use your own sort function! # # If x is a list, this statement …
- the programmer is responsible…. The programmer is responsible for setting up the initial condition, making sure the condition is correct, and that something changes inside the body of to guarantee t…
- 1-Using while loop define a function that calculates the sum of the first n odd numbers, n is given as an argument: 2-The greatest common divisor (CGD) of two values can be computed using Euclid’s …
- . v Completion of the practicums requires a little bit of background information related to finances, which will be discussed below: IMPORTANT: You will be expected to write a series of functions b…
- The Week 4 portion of your Course Project is due this week. Please refer to the Course Project Overview in the Introduction and Resources module for full details. Use this report (Links to an extern…
- What is the output of each of the following blocks of Python code? 1. for i in range (5, 10) : if i – 2 == 0: print (f'{i} is even’) elif i 8 3 == 0: print (f'{i} is a multiple of 3′) else: print (f ‘…
- Python program that reads from a file MyPythonNotes. Display the current content of the file, then prompt the user for an 11th interesting fact about Python (should be a complete sentence format…
- LAB: Leap year – functions A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 yea…
- The output should be a vertical list of each cat name in alphabetical order. I can only seem to produce a horizontal list that repeats as many times as there are names. How do I fix this? catNames …
- Use nested “for” loops Write program to compute and print all possible combinations of change for $1. Denominations to be considered – quarter, dime, nickel, penny Hint: Use nested loops (loops within…
- (7 points) In this assignment you will solve the N Queens problem. The problem is to place N Queens on an N X N chess board so that no 2 queens attack each other. In chess a queen attacks another q…
- as you know we have already converged network socket programming using python. we now move to another opportunity and that is loT of programming. MQTT is a protocol developed for the loT world. It is…
- An object’s momentum is its mass multiplied by its velocity. A program that accepts an object’s mass (in kilograms) and velocity (in meters per second) as inputs, and then outputs its momentum. Below …
- score = 0 score = int(score) print (‘\nQUESTION 1: WHAT DOES STAND FOR ?\n’) print (‘A. Personal Computer’) print (‘B. Private Computer’) print (‘C. Posh Computer’) print (‘D. None of the above’) answ…
- i want to write basic blackjack card game in python
- please write a program the gives a monthly payment for a fixed-rate mortgage. Your inputs must have loan amount, interest rate, and duration of the loan. Use prompts for input to let the user know wh…
- How would I go about defining this function? I’m not familiar with the syntax of python, so as a result I am having trouble. Guidelines I have to follow.
- I am working in AWS Cloud9 and I am trying to get my program to read two .csv files but I keep getting the following error: File “/home/ec2-user/environment/Homework4/Example1.py” , line 24 …
- PYTHON Using regular expression 6. Filter all elements whose first non-whitespace character is not a # character. Any element made up of only whitespace characters should be ignored as well.¶ items =…
- Part 2: Well rated and not so well rated movies … In this section, we are providing you with two data files movies . json and ratings . json in JSON data format. The first data file is movie informa…
- . COSC 4301/5340 Big Data Computer Systems Instructor: Jiangjiang (Jane) Liu Homework 2 Chapter 3 Data Preprocessing . Page 121 Question 3.3 (a) [40 points] . Chi-Square Exercise (Attached file) …
- Write a program and that calculates and displays different suggested tip amounts, much like you see at the bottom of restaurant bills.. HW#4 – CSC 104 KB/NB-Tip Homework Fall 2021 This assignment is t…
- name the function digitalCS that will count all of the digit variables in a string. It will take as an argument the string to search through. It should return the number of digits that are within the …
- plz be quick When doing a data science activity, it is considered important to have metadata for the data one works with. Explain what metadata is, give examples of metadata that you found in relation…
- Hello, I am running into an error with my code. I’m not sure what I need to do> The goal is to have an output like below: However, while attempting to connect Python to my SQL database I have run i…
- Write function max_magnitude() with two integer input parameters that returns the largest magnitude value. Use the function in a program that takes two integer inputs, and outputs the largest magnitud…
- PYTHON 3.4 I have done half of it. the rest needs to be done. You should program a version of the memory game (to be described below). The game is usually played with cards. If you do not know w…
- make a program that allows the user to purchase EXACTLY three items and for each of the items purchased: collects its name collects the quantity purchased collects its price Then, displays each item n…
- Use python to finish the following tasks to Mercedes Used Car dataset. Just need the code that can run in python and some words interpretation. Thanks! Dataset can be downloaded from https://www…
- Python program that accepts at least two values as input, performs some computation and displays at least one value as the result. The computation must involve calling one of the predefined functions …
- i am looking for a complete solutions for the below attached file. Task Inspired by the success of the Mount Panorama Motor Racing Circuit, International Motor Sports Authority (IMSA) has recently …
- Write remote procedure call programs in Python using two virtual machines in a single physical machine. The two virtual machines will emulate separate servers in a local area network. One VM will be c…
- Hey All, needing help with running a script…Im not sure where I messed up..I have attached the assignment, along with script def convertRomNum (romNum) : if romNum == “I”: decNum = 1 elif romNum == …
- How to create a function local_peak( lst ) that takes in a list of numbers, and returns the index of a local peak. Input : a list lst containing two or more numbers, where no number is the same as …
- Write function for the following specification. Function name get_type Parameters There is only one parameter to this function. Return value This function does not return any values. Detailed informat…
- I need someone to rewrite the following code with list comprehension: list1 = [4, 7, 12, 8, 25] list2 = [] for x in list1: if x > 10: list2.append(x*2) Thanks.
- I need to reproduce result for below feature models using python language in order to compare result for following classifiers MCC , F1 score ,Accuracy , TP rate , TN rate ,PR AUC ,ROC AUC Tab…
- python question help please Question 7: We are now in a position to run a hypothesis test to help differentiate between our two hypothesis using our data. Define a function complete_test which takes i…
- python Please provide me the code with proper syntx for both files. This project is based on the topic of classes and objects we covered in class this week. I have attached the scratch file we used in…
- You use your own function from this module to make each image in the wallpaper square before resizing them. To complete Checkpoint 2, show a TA or a Mentor your code and the output of your program. We…
- 6 points) Graphs and Trees a) Draw three small example connected graphs, each of which has n vertices and n-1 edges. Vary the value of n for each example. What kind of graphs are these? b) Is it pos…
- Python programming One important part of the airplane design process is: Choose the size of the wing spar (main structural beam) so that the wing is strong enough to survive the forces imposed on it. …
- Question B1 – Python basics (10 marks) This is a coding question in which you need to write short Python code snippets. Typical questions include: Given a Python dictionary representing the attrib…
- Moving to another question will save this response. Question 45 Write the complete display output of the following code. class RiverList: # def init (self, riverList): # input parameter is expected to…
- Code in python: Given a set of N maps of lists of integers with each element of maps having a key which is a string and value is a list of integer combine all the maps into one result map by comb…
- Function name: sim_dice Parameters: None Return: A dictionary with six elements: keys are integers 1 to 6, values are corresponding number of occurrences. Description: You …
- What kind of errors occur in the following Python program? There may be more than one. Briefly describe the location of each error along with its type, and explain how to fix it. n = float(input (“E…
- Using the above data what is the function to construct bar chart, histogram and box & whisker in anaconda python.
- Long ago, children used to entertain themselves with a fortune telling Magic 8 Ball. The Magic 8 Ball was an oversized black pool ball that would allow the user to ask a yes or no question, shake the …
- What is the output of this code??. for i in range (3,9 : print (i*2+3
- py class DLinkedListNode: # An instance of this class represents a node in Doubly-Linked List def __init__(self,initData,initNext,initPrevious): self.data = initData ?…
- PYTHON PROGRAMMING: At one college, the tuition for a full-time student is $8,000 per semester. It has been announced that the tuition will increase by 3 percent each year for the next 5 years. Writ…
- Task 1 – Part A Using the data from cache files, measure the number of unique advertised prefixes over time. Filter for IPV4 only. Also, for the entire assignment, we consider IPV4 prefixes only. Sort…
- Implement a program that starts by asking the user to enter a login id (i.e., a string). The program then checks whether the id entered by the user is in the list [‘joe’, ‘sue’, ‘hani’, ‘sophie’] of…
- python code. 4.11 H4-1: Toll calculation Toll roads have different fees based on the time of day and on weekends. Write a function calc_toll0 that has three parameters: the current hour of time (int),…
- def word_count(text): counts = dict() #Your code goes here import pandas as pd words = text.split() for word in words: count = counts.get(word, 0) cou…
- Run the cell below to create 20 fasta files with randomly generated DNA sequences. The FASTA files will be used in exercise 1. ”’Run this cell please”’ import random def create_gene(n): ”’Crea…
- graphics import: https://docs.google.com/document/d/e/2PACX-1vTMTRBiIPtImoM1rhvrdomCRkn1RDQSdokGyH2VmpaIN_ReKEOo5xtAEF7dTAsfiofcNVNfIDRyIeaw/pub Lab 4 data that might help with the python program t…
- Run this cell first In [1]: myInts = [i for i in range(1,501) ]myQuote = “The quality of mercy is not strained it dropeth as the gentle rain from heaven” Problem 1 The problem requires th…
- How can I access the last letter in a string in python
- Octal numbers have a base of eight and the digits 0 -7. Write the scripts octalToDecimal.py and decimalToOctal.py, which convert numbers between the octal and decimal representations of integers. can …
- CREATE PYTHON PROGRAM OF THIS QUESTIONS. THANK YOU AND EXPLAIN HOW IT WORKS SO I CAN KNOW THE LOGIC, SHOW THE CODE AND OUTPUT Create a python program for the given problem. Part 1: Sort Algorithm Prog…
- Please provide the correct code only. < > O learn.zybooks.com 4.4. Expectation of a random variable 4.5. Linearity of expectations 4.14. LAB: Count input length without spaces, periods, or co……
- 4) (15 points) Create a scatter plot to visualize the relationship between clump thickness and single epithelial cell size, and color each instance red or blue based on whether it is malignant or ben…
- Create a Python script file (named sum_total.py) that demonstrates how to run a loop that continuously prompts a user for input, which updates a counter value, until a sentinel value is entered. Rubri…
- Write a loop that prints the first 128 ASCII values followed by the corresponding characters (see the section on characters in Chapter 2). Be aware that most of the ASCII values in the range “0..31” b…
- Write a program that computes a student’s average 2. Use a function with 4 parameters (Name, Math, English and Science Grade) 3. Reference the function 3 times with different values Output John’s g…
- Practical Task: Learning as a Search There exists an optimization problem, which is described by the fitness function f(x; y) = 25 * (y + x^2)^2 + (1 + x)^2. In order to find an optimal solutio…
- Could you please look at my code for 7-4? I was able to make it reiterate 10 times, however, the random numbers are not different from each other, and will return every answer as wrong… Help? …
- Package Newton’s method for approximating square roots (Case Study: Approximating Square Roots) in a function named newton. This function expects the input number as an argument and returns the estim…
- def apply_syr(val): if val % 2 == 0: return val//2 else: return (3 * val) + 1 def main(): try: # try block to catch errors f1 = open(‘data.txt’, ‘r’) # opening data.txt in …
- def substring(s: str, sub: str)-> int: start = 0 end = 0 while start < len(s): if s[start+end] != sub[end]: ?…
- You can use any dataset you want for this. No reference is given. Part – 2 (Feedback submission 2): 1. Objectives: a. Scraping of the data and show sample data. b. Use the API to gather the data an…
- https://drive.google.com/file/d/1SnItPZC7CnUWiKBnvl8G3XBKO0YznuRZ/view This is the link for question that you askes me . You should download this samples and complete the exercises. Tell me if there i…
- alphabet = “abcdefghijklmnopqrstuvwxyz” test_dups = [“zzz”,”dog”,”bookkeeper”,”subdermatoglyphic”,”subdermatoglyphics”] test_miss = [“zzz”,”subdermatoglyphic”,”the quick brown fox jumps over the lazy …
- [While loop, 10 pts] 1Write a function nurnLoopsU that requests a positive integer from the user and executes the following algorithm. lfthe number is even, divide it by 2; otherwise, multiply the…
- . 01: function: read_data( ) (3.5 pts) Define afunction read_data with three parameters: file , start _year , and end _year that accomplishes the following, using pandas functions/methods: 1. uses p…
- 10 LAB: Sorting TV Shows (dictionaries and lists) write program that first reads in the name of an input file and then reads the input file using the file.readlines() method. The input file contai…
- Power Method and Inverse Iteration – Can you please write the following code in python instead of MatLab? {a} Implement the Power Method for an arbitrary matrix A E EM” and an initial vector flu E …
- Question 1: Given the PEP9 CPU architecture, assume that the CPU registers, flags and memory locations are in the following initial state: CPU: A-reg 0x0000 X-reg 0x0000 N 0 Z 0 V 0 C 0 Memor…
- Please help write the code below correctly according to the given question. Please make the code longer, lengthier and more comprehensive so that it is more easily understood. Please also give a detai…
- Q4: Students marks dashboard¶ consider the marks list of class students given two lists Students = [‘student1′,’student2′,’student3′,’student4′,’student5′,’student6′,’student7′,’student8′,’student9’,…
- Assume that a credit card company has asked you to write a simulator to generate a credit card statement. This program must allow user to enter required information and the program will then use the i…
- INSTRUCTIONS: Enter the correct codes for PYTHON in between ###. Answer is already given to you, Code must be ran to match answers Question 2 — Multiple IRRs Suppose that instead of receiving $1 mill…
- help writing a program that stores the following list in an array: peroxidase gene protein oxidase hemoglobin
- Write the python program of the recursive function. The description and type contract provided must be respected. It takes as a parameter two lists L1 and L2 and an integer n. Lists L1 and L2 are of t…
- Python programming about the Fourier transform signal and Amplitude modulation. Given a message consists of two triangles: m(t) = A( t + 0.01 0.01 – 4 t – 0.01 0.01 The modulation and demodulation pro…
- Subject Write a complete Python program that: 1) Read a base and size of a geometric series from the keyboard with proper prompt. 2) Use Python for loop to generate individual items of the geometric s…
- In many data science projects, you are required to convert a data frame into a dictionary. Suppose you want to convert “df” into a dictionary such that ‘Click_Id’ will be the key and ‘Count’ will …
- . HW Solve these equations: By Calculator or any kind of programming languages: x2-3x+1=0 > x2 = 3x-1 > x= V3x – 1 x2-3x+1=0 > x2-3x= -1 > x(x-3)= -19 -1 x-3 3x-1 x2-3x+1=0 > x2= 3x-1…
- State the central limit theorem. Give two reasons why we care about it.
- Using the csv file nbaallelo_log.csv and the logit function, construct a logistic regression model to classify whether a team will win or lose a game based on the team’s elo_i score. Read in the file …
- Implement the Backtracking algorithm in Python for the 0-1 Knapsack problem with the pseudocode below and run it on the problem instance below with python Implementation? . void knapsack (in…
- In this exercise, we’ll be using numpy to play with images. Note that for these exercises, you are only allowed to use numpy and basic python (i.e. no scripts that short cut things, unless you want to…
- def one_resampled_percentage (tbl): sample = tbl . sample( ) num_poll = poll . num_rows percentage = (np. count_nonzero( sample . where ( ‘Response’, are . equal_to( ‘Cal Cunningham’ ) ) . column ( ‘R…
- Python please: Write a program to calculate the total calories in a lunch. Each lunch comes with a pickle that is 7 calories. A dictionary with each additional food item and the corresponding calor…
- Can someone write me a python function that returns the name of the file(first four Charakters after >), the index of the LONGEST open reading frame and the length of this sequence(not the peptide …
- Python k-Means Clustering How would I grab the value 0.300000 from the last cell? I’ve tried df.groupby(‘assignment’)[‘x2’].mean().index[:2] and get_groups. " jupyter hw08 Last Checkpoint: an hou…
- . 1) Write code using python that does the simplex method tableau solving and prints out the tables for a 2—dimensional problem. Try it using the example below. Maximize 3361 + x2 Subject to 21:1 …
- Draw a flowchart showing the general logic for totaling the values in an array.
- Hello, Can I get assistance with how to code the below in Python? Thanks for your help! #create function named exampleFive, that will have 3 input parameters: one array and two singular. #return “One”…
- I need help reading and explaining what this python query is doing in words. Thank you . # Problem 1 #Display prompt message to the user print ("Give me an integer and I will tell you if it is …
- How many exchanges in total would have been performed by the selection sort algorithm while sorting a list of 9 data elements to the end of the fourth pass ?
- I have a question about selecting records from .csv in python. Let’s say if we want to see a person’s record on something, but there are two records in the csv file and we only want the first one, how…
- Write a function called getUserInfo() in which you ask the user their name, age, and email address. Output this information into a file called userInfo.txt. You should use a format string to ensure th…
- The purpose of this assignment is to use Python to merge several photographic elements into a single photo. 1. Search for and download a photograph of a jackrabbit. 2. Use the web to sea…
- #ADD COMMENTS TO THE LINES def read_da_file(something): dict1 = {} with open(something, ‘r’) as infile: lines = infile.readlines() for index in range(0, len(lines) – 1, 2): if lines[index].strip() == …
- PROBLEM 2 In Lab 07 we wrote a program to calculate energy bill for residential and business customers. We are going to rewrite that program with value returning functions. Residential customers pay …
- . Lab Exercise 5 This lab exercise is based on the countries and medals example in sec 6.7. The original code and output of the program are shown below This program prints a table of medal winner co…
- The volume of a sphere is 4/3πr 3 , where π has the value of “pi” given in Section 2.1 of your textbook. Write a function called print_volume (r) that takes an argument for the radius of the sphere,…
- Given the (X_train, y_train) pairs denoting input matrix and output vector respectively, Fit a linear regression model using the stochastic gradient descent algorithm you learned in class to obtain th…
- How do you generate random number pairs (x,y) for a list of unique values that do not duplicate. Code Working with: import matplotlib.pyplot as plt import pandas as pd from itertools import combina…
- Create individual flowcharts for each properties. https://colab.research.google.com/drive/11wsxTY7if4Y2s26RVtw5oNGAgnEWftnI?usp=sharing It consists of six properties 1. Does not hold Commut…
- The Pet class Write class named Pet, which should have the following data attributes: _ _name (for the name of a pet) _ _animal_type (for the type of animal that a pet is. Example values are ‘Dog…
- the testing function, you should remove the code that makes a call to test_rnaze{} function and use the actual functions of the maze module as instructed in the assignment description. Also, please no…
- ..below . Python programming in VSCode The city of Crymland is plagued by a syndicate run by Mr. Bigg. Initially, Mr. Bigg supervises 7 thieves. The thieves operate as follows: • Every week …
- Please adjust this code and make it workable. Requirement is to develop ‘Class Main’ below. Bus Booking.py, Bus Book-procedural, Text files and description of already developed classes(.doc file)…
- Write a program that illustrates packet routing at a router. The program should accept as input the following: a. A text file containing a routing table (the five column generic routing table with…
- The store needs to know which items are in the range! Write the function show_prices (inventory, food, text): find which foods are in ‘text’, remove unnecessary characters and words that are not foods…
- please help with this question, i cannot get the program to function Write program named program52.py that uses main and a void function named randnums that takes no arguments and does…
- How would I run logistic regression in R when my independent variables are weight, height, and age , my dependent is Group for a dataset “People” .
- CHALLENGE ACTIVITY 4.4.2: Relational operators. Write an expression that will print "Dollar or more" if the value of num_cents is at least a dollar (100 cents is a dollar). Ex: If num_cents …
- Using hashing algorithm for the above input and output template, programming language: python. Hashing You are given an imput file with multiple lines . On each line there is : ( a ) the size , m , of…
- Problem Main Problem: Put the main problem here Sub-problems 1 Divide or break down the main problem into smaller ones 2 You need to provide at least 3 subproblems 3 You can add more if it’s app…
- Let 𝑋𝑖,𝑖=1…𝑛Xi,i=1…n be 𝑛n independent observations from a Pareto Distribution with shape parameter 𝛼=2α=2 and scale 𝑥𝑚=1xm=1, a distribution with expected value 22. Alice…
- Make a Python program that displays a main menu and sub-menus using while loop, if-else, and menu functions. ● menu module has multiple functions that displays different menus such as main menu, uti…
- Design a program that asks for the data of several people by keyboard and adds them to an initially empty list. Each time a person’s data is read, the program will ask if you want to continue intro…
- Assignment X Course Hero | Make every study | X + X C umindanao.mrooms.net/mod/assign/view.php?id=880827 Due Sunday, November 21, 2021, 12:00 AM Time remaining: 2 days 9 hours Average and Standard Dev…
- def fn1(lon): index = 0 for n in lon: n = n * 2 index += 1 return lon def fn2(lon): index = 0 for n in lon: lon[index] = n * 2 index += 1 def question4(): list1 = [9,8,7]…
- 1 Package Newton’s method for approximating square roots (Case Study: Approximating Square Roots) in a function named newton. This function expects the input number as an argument and returns th…
- compute by using the prime factor decompositions of a and b for the following. -lcm(18,12) -lcm(7,10) -lcm(49,175) -gcd(18,120 -gcd(7,10) -gcd(49,175) Explain in how you used prime factor decompositio…
- def dot(v,w): return sum(v[i]*w[i] for i in range (len(v))) def slope(x,y): return dot(x,y)/ dot(x,x) def mean(x): return sum(x)/len(x) def center(x): m = mean(x) return [x[i]-m fo…
- Start with the following Python code. alphabet = “abcdefghijklmnopqrstuvwxyz” test_dups = [“zzz”,”dog”,”bookkeeper”,”subdermatoglyphic”,”subdermatoglyphics”] test_miss = [“zzz”,”subderm…
- I am trying to plot a loglog graph for the time it takes to counting sort different lists with length 2^i for i = [1,…,10]. My counting sort code works but won’t plot my times because they’re not in…
- Bash script that will print usernames of all users on a Linux system together with their home directories share a crontab entry that accomplishes the following: ● Runs once every hour. ● Takes…
- i need python code for this question i need code which i can copy paste in my ide . …….. ….. . Example 4 Set weights Wi and nodes so that the approximate formula f(x)da = wif (21) + w2f (12)…
- Using python is this statement correct? not (A or B or C or …) is the same as not A and not B and not C and …. Justify your answer.
- I have a function defined below that calculates the centroid of a polygon. I have my points and polygon, points = [ [1,1], [2,1], [4,3], [8,3], [8,3.5], [4,3.5], [1,4.5], [1,1] ] polygon…
- Copy the countdown function from Section 5.8 of your textbook. def countdown(n): if n <= 0: print(‘Blastoff!’) else: print(n) countdown(n-1) Write new re…
- The below program is written to change the value of given dictionary such that the value word starts with upper case. However only the first value is changed with this program. Fix the program so that…
- LAB: Warm up: Basic output with variables This zyLab activity prepares a student for a full programming assignment. Warm up exercises are typically simpler and worth fewer points than a full pro…
- Can someone please help me with this assignment I have no Idea how to do it. I need help with the tokenize(line, specials, whitespace) function and I already finish the Stack.py that I need to import …
- PuLP and ILO question using Python A single machine has to produce 10 jobs numbered from 1 to 10. Each job has a duration, release time, and deadline as given in the following table (times are in…
- could u aid with this. Make sure to use strings and seperate the function and main file. 15. Implement the following function in the PyDev module functions. py and test it from a PyDev module named t1…
- at You are presented with the following filesystem structure: library2 — non-fiction ou – – biography food lost+found.bin politics — domestic senec — post-1945. ref pre-1945 . txt – – international…
- please provide code written in spyder tool *15.9 (Print the characters in a string reversely) Write a recursive function that dis- plays a string reversely on the console using the following header: d…
- Using NLTK and the VADER sentiment packages. You need to copy/paste code and output into this document 1. Print a hypernym of ‘reptile.n.01’ 2. Print a hyponym of ‘reptile.n.01’ 3. Output the path_sim…
- Requirements: You are given a list of air temperature in different regions of Hong Kong as follows: (download air_temp.txt and copy the data into your python program code) # a list of air temperat…
- Write a program using For loop to count number of digits, alphabets, and symbols in a string. For Example, if myString = “Pyth0n 1$ fun & E@Sy!” then the output for the above list should…
- Every code i wrote for the questions below returned with error – please help 1. [my_house.py] In a graphics window, you are to draw an outdoor scene containing a house. Your drawing should include…
- Give python code for to multiply 2 given numbers. Iam new to programming.
- it says my indenting is wrong and that there is and EOF error in line 2 . Home x Discussion X zy Section 3.17 – CYB 130T: Object-( x zy Section 3.11 – CYB 130T: Object-( X + V X – -> C a learn.zy…
- Read the below and code the following: Inferred Conditions I want to surprise my wife, so I cannot ask her for preferences. Instead, I must use my knowledge of films that she likes and dislikes, along…
- Could you please teach me in a way by not using ‘dictionaries’? 1. [Weight = 5] (Secret communication) Messages can be communicated secretly via a cryptographic mechanism. A plaintext message will be …
- Problem 1 Given your success with the converter program, your employer has decided to task you with a more difficult problem. The company needs a utility program that non-programmers can use to ca…
- im having troubles and need help, please and thank you.. This program will output a right triangle based on a user specified height triangle_height and symbol triangle_char. Using what you know about…
- Part (b) [3 mark] Determine the asymptotic complexity of kmeans in terms of big O notation for a dataset with n samples of d features and & centroids over a fixed number of iterations. Show your w…
- Given this Python script: result number = 6 num list = [1, 2, 3, 4) while ( number > 3) : result += number number -= 1. while (number > 3) : result += number 6 0 VO UT number -= 1 for num i…
- Problem – 1 Write a program which contains a function named “list_concate”. The function receives two list and concatenate them element-wise into a new list, and then return the list. Print the final …
- INT 1111 please I need help with this assignment. Can it be done urgently User: Joy King – Added: 9/9/12 Watch Video Week’s assigments Submit the Raptor solutions for programs from Chapter 3 1. Progra…
- Write the definition of a function max that has three integer parameters and returns the largest.
- code Using Python 3 { "cells": [ { "cell_type": "markdown", "metadata": { "deletable": false, "editable": false, "nbgrader": { &qu…
- using python. input and output 6-1. Person: Use a dictionary to store information about a person you know . Store their first name, last name, age, and the city in which they live . You should have ke…
- May you please provide the regression code in R studio? I can’t figure out how to display the histograms for fatheduc and motheduc.
- please help me to figure out this python problem In [ ]: ##this is used for testing import munpy as up import types from nose.tools import assert_equal, assert_raises import scipy.special Binomial Coe…
- Can I please get help with some explanation if possible to these please? Thanks 2. Given the following flowchart. provide the Python code that implements the design. Make sure your results are appropr…
- Problem Statement: Design a program that asks the user to enter a series of 10 integers. The program should store the numbers within a list and then calculate and display the following data: the l…
- Homework 3: Searching and Summarizing IMDB Data This homework assignment will assess your ability to use the text file processing techniques and data structures that we learned over the past few chapt…
- Could you please help me how to save csv file after i have done. i would like after i add Titles, Artist and year. It is saved in to the scv file at the end. Here the link of the assignment: https://w…
- DISPLAY THE FOLLOWING CODE AND INSTRUCTIONS ON GOOGLE COLAB IDE. ATTACH LINK OR PYTHON CODE. You can find the Bank.csv dataset here https://github.com/christypaul30/Data-Sets Steps for exploring an…
- A MNC company receives 450 applications from applicants in one hour. Find the probability of: a. Receiving 10 applications in 1 minute. b. Receiving at least 17 applications in 2 minutes.
- . (The Point class) Design a class named Point to represent a point with x- and y-coordinates. The class contains: – Two private data fields x and y that represent the coordinates with getter method…
- (Find numbers divisible by 5 or 6, but not both) Write a program that displays, ten numbers per line, all the numbers from 100 to 200 that are divisible by 5 or 6, but not both. The numbers are separa…
- 3. Write a program in Python that would generate a phone number if the user enters the number as 1- ASU-HOLIDAY (which 1-278-4654339) using the keypad below (10 pts) …oo T-Mobile ~ 11:10 AM 90% …
- Python programming project 1. DNA base counting program. Go to the Python Tutor code visualization web page, http://pythontutor.com/visualize.html#mode=edit Type the following code for the DNA b…
- An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular hours, plus any overtime pay. Overtime pay equals the total overtime hours multiplied by 1.5 times the h…
- At certain Olympic events, there are 5 judges. To determine an athlete’s final score for the event, the highest and lowest judges’ scores are discarded and then the average of the rest of the scores i…
- Hello working on an assignment and I am having issues with some errors. I have listed the code, assignment instructions, and screenshots of my errors. I need help with the errors so I can know where t…
- Use input() to read line Use for loop to go over all symbols in the line Use created a dictionary to get the corresponding value for a certain key Instructions Scrabble is a word game in which word…
- py from socket import socket, AF_INET, SOCK_DGRAM from sys import argv from common import ip_checksum SEGMENT_SIZE = 200 if __name__ == “__main__”: dest_addr = argv[1] dest…
- – You’ve been given the data structure you see on the right "-9 – Add this data structure to your program. – Write your program so that it displays this data as a table.
- Write a program called test4. py that plays the following card game: 1. The game starts with certain initial amount of dollars. 2. At each round of the game, instead of flipping a coin, the player shu…
- Topics: Print, Strings manipulation, Branching, Looping, Random number, Import module Problem Statement: In this lab you are supposed to build a software application that will create a word guessing g…
- I would like someone to help me out writing those programming in Python. please only in Python. As soon as possible. Those programming assignment is not too hard, since I have a test which is very imp…
- Solve using Ipython. Read the csy file (Mall_Customers.csv) as a Pandas DataFrame object a) Perform a K-means Clustering (K =5) in the above dataset by considering the Age, Annual Income (k$) and Spen…
- Use the function design recipe to develop a function named sort_books_publisher. The function takes a dictionary as an input parameter. This dictionary contains books stored as explained in Milestone …
- I want to develop a program on python, which performs encryption and decryption by replacing each single character of the text using a key. What it should perform: 1. enter a key(should be providede b…
- The following code will be written in Python. Finding the highest & lowest values in an array Have a user input 10 numbers of any value with a loop. Create a variable to hold the highest and lowes…
- how to vectorize the function plr2d def plr2d ( x1 , x2 , t , w0_0 , w1_0 , w2_0 , N , disable_w0 ): w0=w0_0 w1=w1_0 w2=w2_0 for n in range(0,N,1): mismatched = False ?…
- INSTRUCTIONS : 1) Python Programming 2) No use use of built in libraries and built in functions 3) Use comment out for understanding better 4) Use Functions name and parameter name is same as given …
- Develop Supervised learning models. (50) ○ Logistic Regression ○ Random Forest ○ Support Vector Machine ○ Neural Network Compare the 4 methods based on the performance metrics and identify …
- function write_stock that asks the user to input a company name, its associated ticker symbol (eg. Exxon, XOM), and the price per share of the stock. These are then written to file stock.txt one item…
- How many three-digit numbers are divisible by 17? Write a program to print them.
- What is the EXACT output? myScores = [85,90,65] myCurvedList = [score+10 for score in myScores] print(myCurvedList) myTests = [10,98,90,80] myATests = [sc for sc in myTests if sc >= 90]; print(myA…
- You created a class called Circle as below: class Circle: def __init__(self, a, b, r): self.a = a self.b = b self.r = r def …
- Need help with this code. Need the exact formate it is asking for. Thank you.
- 1 Case Study Domain – E-Commerce focus -Optimization Business challenge/requirement GoodsKart—largest ecommerce company of Indonesia with revenue of $2B+ acquired another ecommerce company FairDeal….
- no chegg Can someone help me with this problem? I have been struggling trying to make a time sample every 6 hours. Also, I’m lost with how to add labels for what’s a user, the time, and others in the …
- I need a python program as an online shopper. The store offers two types of discounts. The first is a cash-off coupon, that is earned by shopping. You may apply one $5 or $10 cash off coupon per order…
- Forbidden: Your program may not use any techniques or Python features forbidden below. Do not use the following list-related functionality: Do not use any string methods other than lower. Do not “impo…
- **URGENT HELP – MUST BE SOLVED IN PYTHON3** ** I need some help implementing some of the classes with the specifications listed below. This is an example of a multi-bandit problem and the instructi…
- Write a program for the following game: ask user about a series of numbers. Every new number is added to a list. If sum of last three numbers is 10, then last two numbers are removed. If sum of last f…
- I am trying to make program that computes the fuel efficiency of a multi-leg journey. I want it to Prompt for the starting odometer reading. then it should information about a series of legs. For each…
- from datetime import datetime, date import time def diff_dates(date1, date2): # function to return number of days between dates return abs(date2-date1).days def is_date_valid(dty): # functio…
- Could anyone help me plzz • Program design type program that includes and utilises the functions described above to simulate the letters game from the Countdown game show. The program should ask the…
- me Left:0:26:04 Isaiah Botten: Attempt 1 Question 8 (10 points) What would be in the variable y after by the following if statement was executed? X = 5 if 0 < x < 5 : y = 5 elif 5 < x < 10…
- Implement algorithms (as functions, like bfd and dfs) that perform the following operations on the graph. Hint: Try reusing the sample Queue and Stack implementations def to_stack(g): # Traverses the …
- Give a FLOWCHART for this code: def test_prime(n): if (n==1): return False elif (n==2): return True; else: for x in range(2,n): if(n % x==0): return False return True print(test_prime(45))
- please mark correct answer only . Given the following code: 1 def rec_lln): 2 if n == : 3 return 1 4 else: 5 return n * rec_2(n — 1) def rec_2(n): if n == 0: return 1 else: return n * rec_1(n — …
- Example Output to the code for part 2: Source text from where the grids are from, 1st grid, 2nd grid, 3rd gride. If you need reference the following is part 1 and my answer to that part: Code for P…
- . in this project {for HW 3), you have been approached by Sophia, the HR Director of the a large manufacturing company; Beta Group. Beta Group is a multinational company with more than 100,000 emplo…
- When the * operator’s left operand is a list and its right operand is an integer, the operator becomes this.
- In python, usse Pandas and the os.listdir function to load the 4 .csv documents into dataframes. The first two characters of each file name is the country’s abbreviation (US,MX,CA,UK), the second two…
- Create a Python script file (named file_copy.py) that demonstrates the basics of navigating a file system using os and shutil libraries to retrieve and manage (copy) files with Python. Create a proper…
- Modify the largest.py program below to mark both the smallest and the largest elements ? # Create an empty list. values = [] # Read the input values. print(“Please enter values, Q to quit:”) userInput…
- A robot machine is going to navigate through a series of cave connected by straight tunnels (Please see image below). It starts navigating from the A to the last cave G. Finding a shorter route is bet…
- Detailed requirements: 1. Prompt the user to enter the diameter of a pizza in inches. Pizza diameters can be entered as real numbers. Ensure that the user input is numeric using “try … except” or ot…
- All coding is on PYTHON . INSTRUCTIONS: OUTPUT must bhi same as given in the question. Answer this as soon as possible.
- Please give me the Python 3 code necessary to solve the assignment given in the attachment to this message. Calling a JSON API In this assignment you will write a Python program somewhat similar to ht…
- Question 1: Analysis of the random split binary trees The code in [1] has a function that will create random binary tree for a given input treeSize (the number of nodes in the tree). It uses the ra…
- Download the dataset here: https://filebin.net/l6eag4x6gygl9rxa/CarPrice.csv?t=z0hdk1qd The CarPrice.csv dataset contains the details of 205 cars. Your team is asked to build a multiple regression mod…
- Information: The DNA within a genome can be represented as a string consisting of the characters A, G, C, and T, each corresponding to a nucleobase . For example, GACCATATTAATCG might repr…
- Write a function substring_dictionary(sentence, length) that takes two input parameters sentence (type string) and length (type integer) and returns the dictionary (sort the keys alphabetically)…
- . Here is an example with one Tamagotchi: >>> play_tamagotchi( [‘create fluffy’, ‘wait’ , ‘feed fluffy’, ‘play fluffy’ ]) Name : fluffy Hunger: 00000 Boredom: Age: Name : fluffy Hunger: 000…
- Can I get help fixing, completing my python code? Our program will open and read the urls contained in the file, and it will report back on the subset of urls that contain a reference to the specified…
- define a function to find prime number until 10001 and plot a curve all prime numbers until 10001th one.
- Would you please show me how to di this work on JUPYTRT below have a student notepad 4 persons name form this questions need. please sent me a cods and screen short for me then tell me how they are …
- Does anyone know how to fix the Hitboxes in my current code for these characters in Pygame? I don’t know how to fix it! I’d like the main character, my christmas tree I created out of shapes, to be ab…
- STEM Center Temperature Project Eric Reed Main Menu ——— 1 – Process a new data file 2 – Choose units 3 – Edit room filter 4 – Show summary statistics 5 – Show temperature by date and time 6 – Sh…
- Write a function solution that, given a string S of length N, replaces all occurrences of “plus” with “+” and all occurrences of “minus” with “-“. Examples: 1. Given S = “minusplusminus”, the function…
- Bellow is the assignment that is baffling me. My issue is inputing the proper method. If someone could post examples of similar code under the lines my professor is requesting so I have a rubric to go…
- Show docstring, using python. Question 4 (6 points): Define a function called subword_match (). This function should have two input parameters. The first pa- rameter is a string that consists of some …
- I really need assistance with codes on python. I am trying to make a control application for an ip camera. I am trying to use python through the raspberry pi. The control program will use the general …
- https://bbhosted.cuny.edu/webapps/assessment/take/launch.jsp?course_assessment_id=_2090639_1&course_id=_2020352_1&content_id=… G Question Completion Status: QUESTION 3 Implement a class Movi…
- Question 8: OCircuits with multiple outputs (6 marks) ition istosing the Boolean expressions: C= A . ~B D= (A . ~B) + (~A . ~B) a) Either (1) construct and print the corresponding circuit using the si…
- Using the list names defined as follows: names = [ “Euclid” , “Archimedes” , “Newton” , “Descartes” , “Fermat” , “Turing” , “Euler” , “Einstein” , “Boole” , “Fibonacci” , “Lovelace” , …
- Define a class named popdict, derived from the dict class; in addition to being a dictionary, it remembers how often each key is accessed (how popular it is), and iterates through the popdict in decre…
- How would you make a shopping list in Python? B- Explain how loops can be utilized in list processing. Please provide Python examples in your response.
- I need help on those python jupyter notebook programming questions please! Create a function f1 that takes as input two positive integers m and n and and two other integers p and q and creates matrix …
- Please use Python to complete the question Use the ToyotaCorolla.xlsx dataset (attached below). The data dictionary sheet in the Excel spreadsheet provides a description of all the variables in this d…
- Suppose the cover price of a book is Rs. 200, but bookstores get a 25% discount. Shipping costs Rs. 40 for the first copy and Rs. 10 for each additional copy.Python program to calculate the …
- I can figure out what is wrong with this program. # Define function to calculate inches per feet def convertFeetToInches (ft) : result = ft * 12 return result # end calculateMpg function # Define func…
- I have one independet variable(Blood sugar) and one dependent variable(weight). My data is for 150 undergrad student. I want to write a a python program to implement a simple linear regression with th…
- Add the function to a PyDev module named functions.py. Test it from . There are 43,560 square feet per acre. Define this value as a global constant outside of the function in functions.py. The functio…
- 2 issues, I am unable to come up with: The random count is only working upto 2 counts. It can go as high as 10. Also, how do I add a scoring mechanism for this? Each wrong guess will be subtracted -2 …
- In this below question, you are provided with a scenario. Analyze the scenario and perform the given tasks for the scenario. ( 4 + 4 + 6 + 6 Marks ) A 20-year-old e-commerce company that sells p…
- The included Excel file lists HIV estimated prevalence of people ages from 15 to 49 in the world from 1979 to 2011. Use the dataset to complete following tasks: 1. Add one column as "continent&q…
- A dataFrame is given below df=pd.DataFrame({‘foo’:[‘one’,’one’,’one’,’two’,’two’,’two’], ‘boo’:[1,2,1,2,1,2] …
- INSTRUCTIONS : 1) Python Programming 2) No use use of built in libraries and built in functions (like pop,append , insert) 3) Use comment out for understanding better 4) Use Functions name and paramet…
- Warmup: We’ll warm up by writing tests for an existing function. Take a look at the function in parentheses.py and write unit tests for at least two test cases for it in a file called parentheses…
- you will add quite a bit of code to your project. You will add an option for the computer to guess as well as the user to guess a number. In addition, you will add a menu system. Be sure to import r…
- . Question 23 (2 points) Given that the following code has executed, what is the value of mystery? line = ‘I heart Rocket’ mystery = 1 1 for i in range (len (line) ) : if i $ 2 == 1: mystery += l…
- The first picture is the direction, and the second picture is my coding+the output interpreter. Why does my output keep on displaying “positive and odd” two times? How can I fix it so it only displays…
- Develop a program that converts a time from one time zone to another. The user enters the time in the usual American way, such as 3:48pm or 11:26am. The first time zone the user enters is that of the …
- from typing import List def find_value_indexes(item_list: list, index_list: List[int], v: object) -> List[int]: “””v may appear multiple times in item_list. index_lis…
- I’m using the python language One lap around a standard high-school running track is exactly 0.25 miles. the function miles_to_laps() that takes a number of miles as an argument and returns the number…
- import unittest from typing import Iterator, List, Tuple, Optional, Any def check_pwd(password: str) -> bool: ””a function that check a password which must have at leas…
- Hello, I need help completing my code. My code successfully works navigating through the rooms of the game however, I need help collecting items from each room. The main hall needs to be the last room…
- Solve this problem by using Python programing language. Use jupyter notebook and provide the code with the explanation.. 18.1] Employ inverse interpolation using a cubic interpolating polynomial an…
- These questions are in need of python codes: plot the result of infinite series of pi’s calculation formula Through the result of Mc_pi, and draw it by using the central limit theorem Animation of fal…
- I tried running it and it didn’t work, what is wrong?
- . Bb M1 (1 week) – MIST 3050 VC 1 2( X Bb hw01 X Classroom Lecture 03: String, Inp X learn-us-east-1-prod-fleet02-xythos.content.blackboardcdn.com/5f60fa5592063/5188762?X-Blackboard-Expiration= 1643…
- Develop a security system that works on the with a key “five jugs” let the given string be “Python” and the key is “five jugs” Abcdefghijklmnopqrstuvwxyz Fivejugsabcdhklmnopqrtwxyz as per the mapping …
- DNA molecules The DNA molecule is made up of two linked strands which together form a helix. The links between the strands are provided by bonds between pairs of chemicals called bases . There a…
- Finalising grades and class performance statistics
- CHALLENGE ACTIVITY 2.1.2: Assigning a sum. Write a statement that assigns total_coins with the sum of nickel_count and dime_count. Sample output for 100 nickels and 200 dimes is: 300 376628 2015284.qx…
- Program in Python #Guess the number week 4 #Name: #Date: #Random number, loop while true #ask user for number. #if number is too high or too low, tell user, if they guessed it break out of loop Di…
- Complete python programme is required with detailed comments. provide the complete solution , otherwise I will just Mark incomplete and will report you at the first After recruiting participants as pe…
- Go to the website https://celestrak.com/NORAD/elements/ (Links to an external site.) and download the data for 100 (or so) Brightest (Links to an external site.) Write a program that reads the file…
- Hi i don’t know what’s wrong with my code… it says i’m out of range but i don’t know why… please help me with fixing this code. Here is the description of the question and my code 🙂 . display_boa…
- Question: 1. Write A Word Bank Program 2. The Program Will Ask To Enter A Word 3. The Program Will Store The Word In A List 4. The Program Will Ask If The User Wants To Try Again. The User Will… 1. …
- The input() function is a well known security vulnerability. For example you can use the input_import_(‘os’).listdir(‘.’). While this input string is harmless, use this example to explain why the inpu…
- Exercise 1: Linear Regression Write an application using scikit-learn to train/test the real estate data. Use Linear Regression model. Use the dataset from the UCI repository: https://archive.ics….
- coding script in python not matlab. «I; . _, h 7: _ mew—sum (Eta—sn—Em—Sa-o c) In general, one would like to calculate the equilibrium height of the fracture given pressure Pf, in situ stress…
- INSTRUCTIONS : 1) Please do it in 20 minutes because I don’t have time. 2) Python Programming 3) No use use of built in libraries and built in functions 4) Use Functions name and parameter name is s…
- The following database project will develop an educational attainment “demand” forecast for the state of California for years greater than 2010. The demand forecast is the expected number of populatio…
- How do I make the top line connect with the linear line so its all connected? In [34]: from pylab import * Depth arange (200, 1050, 100) SurfaceZone array ([0 ,50 , 100 , 150, 200]) SurfaceZone] array…
- I am working on a text based game. I have asked about 8 questions on here with no clear answers. This is the code I have so far. When the code is ran you will see that it will get to the prompt of whi…
- Simple Python Question having trouble getting desired output! # A list of strings: A = [‘cats’, ‘and’, ‘dogs’ ] S = for w in A: s += w print(s) # A way to extract the characters in a string into a lis…
- Write the configuration necessary (i.e. commands run, files edited, parameters entered) to allow users on your machine to use the hostname(s) lion, and lion.cats.org to refer to the machine with the i…
- Python Program Assignment description: detailed algorithm and a program in Python for a “TradeBot” to simulate online buying and selling of books. The following activities of the TradeBot are to be im…
- I cannot run the program I have created. I have tried clicking F5 in Idle but it will display the first line for the user. I have proofread my code and cannot pinpoint what is happening. I have includ…
- Next Page Question 1 (10 points) What is the issue with this function as defined? def double( ) : print(x*2) O A numeric value must be
- Scrabble Cheat Ultimately, given a dictionary and a map from letter to scores, for every given set of letters (represented using a str), we find all words in the dictionary that can be made from these…
- “Here, I’m looking for the ability to use the .iloc or .loc and the .at functions to change a value.” From Q3. That sentence does not belong in Q4. I’m just looking for the ability to find the average…
- Also Please help with this error . 6.18 LAB: Word frequencies Write a program that reads a list of words. Then, the program outputs those words and their frequencies. Ex: If the input is: hey hi Mar…
- Guidelines to use: Clean verbatim. Remove filler words, stutters, repetitions that do not make sense and false starts. Label the transcript exactly as the audio e.g. if the audio is called, “A…
- Write a program that takes inputs from a user until a 0 is entered and then counts the total number of positive numbers entered. (e.g. 10, -5, -3, 21, -4, 0 the output should return the total number o…
- python program that creates and prints two pandas series objects. one is to be based off the following dictionary: data_dict = {‘bill’: ‘353-1234’, ‘rich’: ‘269-1234’, ‘jane’: ‘352- 1234’} and the sec…
- Create a class Car with attributes: plate number, car type, Liter per kilo (LPK), car price Create a method that gets a distance and finds how many litres the car needs to cross that distance. which i…
- Checkpoint 2 Before getting started, copy check1 . py to check2 . py and develop your code for Checkpoint 2 in check2. py. Now modify your code to repeatedly ask the user for the id of a restaurant fr…
- You’ve surely seen a seven-segment display . It’s a device (sometimes electronic, sometimes mechanical) designed to present one decimal digit using a subset of seven segments. If you still don’t kno…
- . Homework 4 Goals The purpose of this homework is to use data analysis workflows for image processing, network analysis, and data exploration. Assignment Options You must complete this assignment u…
- This code is a passphrase. I am having problems with this program. I need help to make the program work it is created in c programming. #include <stdio.h> #include <stdlib.h> int main() { …
- Your help is greatly appreciated . Which of the following statements are True of Python class Instances? (Check all that apply) 1- Functions declared in the class may use the self keyword to access in…
- Arrays 1.If { } and a body are provided, the [] requested size can be omitted as the compiler will do the counting. is this true or false? 2.It is possible to allocate space for an array, then fill it…
- How can you determine the type of a Python variable? a.use it in a known equation and print the result b.print out the value and determine the data type based on the value printed c.look at the declar…
- Directions Using the following guidelines, create python program. 1. Create the zigzag.py program from the directions contained in the Zigzag.pdf file. 3. Add code to prompt the user for the number of…
- Could you aid with this. Please make sure to use 2-D lists, make sure there is only 1 return statement in the function, seperate the function and the main file and use .format (format for python). Tha…
- Describe what are sorting and searching, and why are they essential in a computer science field. Give two examples when sorting and searching are necessary in designing software applications. Describe…
- i need some help completing this With the attached file, attempting to decrypt the individual lines of ciphertext. Answering the following questions (5pts each) What were the decryption results for e…
- It is a type of substitution encoding in which each letter in the plain text is replaced by a letter some fixed number of positions down the alphabet. For example, with a right shift of 3, a would be …
- python question Assume we have the following greedy algorithm for the coin exchange problem: def greedy_exchange(amount, denominations): denominations = sorted(denominations) res = [l s = 0 for i in r…
- Hi i am learning python from YouTube and found thia description interesting to learn file handling and other concepts of python so please code in python and add comments so i can learn and understand …
- Healthcare IoT Processing Introduction: In this project, we’ll be building up on the IoT Core and DynamoDB lab. The device simulator will publish Heart Rate, SpO2 (Oxygen Saturation) and Body Tem…
- Write some code to count how many pairs of friends are represented in the array. Note that each friendship pair appears twice in the array, so in the example above there are 6 pairs of friends).
- Task 1: Basic Calculator <§2.1 Conditionals; §4 Functions> Implement a function calculate (x, y, operator) that takes three arguments: two integers, and one of ‘+’, ‘-‘, ‘x’, ‘/’. The function…
- I need assistance with code for this weeks interactive assignment For this interactive assignment, you will make application that grades the written portion of the driver’s license exam. The exam has …
- Under normal conditions, commercial aircraft generally rise at about 1,000 to 2,000 feet per minute (this is called the rate of climb) after takeoff, until they reach a cruising altitude of 35,000 fee…
- Choose one programming challenge from each of the following categories (easy, medium, hard): Easy Write a program to determine your car’s gas mileage. Write a program to determine your averag…
- a python program that determines the sales commission for a salesperson. Sales people receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who sales $5000 wor…
- 3)Which of the following is a valid tuple in Python? b) my_tuple = (1) a) my_tuple = (1,) 4) What is the proper way to save the contents of the following tuple as a list? a) weekend_days = weekend_…
- The code please3 ary > CYB 130: Object-Oriented Scripting Language home > 5.22: LAB: Swapping variables 5.22 LAB: Swapping variables Write a program whose input is two integers and whose output …
- Describe the difference between objects and values using the terms ” equivalent ” and ” identical “. Illustrate the difference using your own examples with Python lists and the ” is ” operator…
- Read the Marketing_subscription_prediction_latest_edited data.csv file and load it into a dataframe and do the following task 1. Display all column index values csv file— https://easyuplo…
- I need answer in r language using above database. in the table some valus are NA in `diag_1`, `diag_2`, and `diag_3` you need to convert NA in to number for all 3 Colums. q=1) We want to create …
- Create your own example of a function that modifies a list passed in as an argument. Describe what your function does in terms of arguments, parameters, objects, and references.
- Use Python to develop an application that will calculate the average score and display both the total of the score and the average cover. . Below is an example of what the application output should …
- Write an bash script to take a string input and find out how many times a particular character appears in the string.
- What kinds of data can you imagine storing in a simple text file? How would you structure it to make it easy for your code to read and write it?
- how do you find the geometric mean, Harmonic Mean, Sample Standard Deviation in cvs file using python
- Write program to prompt for and read a sequence of non-negative numbers (with a negative number to end input) and then print the least non-negative input number. If the first number read is negative,p…
- I need help adding assert statements enforcing this precondition. Error messages are optional and are not required . This is the function: def first_in_parens(s): “”” Returns: The substring of…
- I am working on this project, can someone help me solve it? Thank you, A callable is a generic type for a function. This means that anything that is of type callable, can be called or invoked, in oth…
- Write a Python program that asks the user for a string and prints whether the string has an even or odd amount of characters. For example: Input Result Dog Enter a string: Dog, has an odd number of ch…
- A teacher wants a program to give extra points to students who fail a test. Help with a Python program to do the following: (a) Ask the user to enter 5 test scores. Store the scores in a list. Displ…
- Assume the following code has executed: dog = ‘Violet’ age = 11 weight = 37.5 beautiful = True time = ’11:14′ Odd-numbered questions present expressions. Your answer to a given expression question sho…
- how could I build this page using HTML ?? bracket L & D buttons are for light and dark mode. Your Furniture Home Location type your name Go Welcome Guest! Here you can find the best furniture in t…
- . VS41_DesignComm_ X Disney Piano Collectic X ed (27) CSE 8A – Lesson X Step 6 . Bitwise Oper: X Bitwise Operators in F X (1) How To Convert D( X 24 Get Professional Help X + – -> C a edstem.o…
- Please help me find the solution to these practice questions:
- In python, I have written a function to change the text of a different file. I need every line changed using that function except for the first 3 lines. How can I make it ignore the first 3 lines?
- I do not understand why when I enter the str(‘q’), the program keeps going. LAB ACTIVITY* 6.6 . 7 : Warm up : Parsing strings ( Python 3) main . py # TYPE Your code here while ( True ) :` inp_ str = i…
- . Use the Peng – Robinson Equation of state to estimate the vapor pressure of a pure n- butane as a function of temperature. Here you will find the vapor pressure at T = 200, 300, 350, 380, and 410 …
- In your script: A. Create examples of four uses of list operations in the script in your code. Be sure your examples address each of the following: i. Creating lists ii. Adding and removing data from …
- make_menu (5.5 points) Imagine you own an ice cream shop, and customers can buy ice creams of any mixture with one choice of fruits and one choice of toppings. You decided to create a menu board with …
- I’m looking to design a program that includes the following data Transmitting sensitive information over the internet can be dangerous unless that information is en crypted. A simple form of encryptio…
- The included Excel file lists HIV estimated prevalence of people ages from 15 to 49 in the world from 1979 to 2011. Use the dataset to complete following tasks: 1. Add one column as "continent&q…
- For the following program: a) algorithm (pseudocode) called stadiumAlgorithm.txt b) Code the program as stadium.py. c) Upload your pseudocode and your source code (stadium.py) to BCOnline. Stadium Sea…
- Python 3!!!To practice recursion on Binary Trees!!!! Treenode ADT is given below…..by modifying treenode ADT file these above question have to be answered Question 1 ( 30 points ) : Purpose : To pra…
- ZOOM + COP2002: Programming Logic & Design with Python Project 6 Project: Create a program that calculates the interest on a loan. This program should make it easy for the user to enter numbers….
- The temperature of the bar is maintained at the constant value 𝑇𝑇0 at the boundaries 𝑥=−1 and 𝑥=1. In the middle of the bar, from a region −𝜖<𝑥<𝜖, there is a heating ele…
- Make a python program that will solve the following: a. Create a constant list with the integers from 55 to 5, but only every 10th number (see example). Set this up using the python range funct…
- CostMat = [[0,6,8,6,7,3,5,2,3,2,5,5,4,4,5,8,7],[6,0,6,3,2,5,7,4,7,8,11,7,6,8,11,10,13],[8,6,0,9,8,5,3,8,5,8,5,13,12,12,9, 16,9],[6,3,9,0,1,6,8,5,8,9,12,6,7,9,12,7,15],[7,2,8,1,0,5,7,4,7,8,11,5,6,8,11,…
- Question 7 (2 points) Given the list: fruit list = [‘Apple’, ‘Banana" Orange’l Write the python code, using a for loop, to produce the following output: AppleApple BananaBanana OrangeOrange
- Python program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, which indicates a…
- Hello I am seeking assistance with an assignment I struggling with. I am in a going to school for computer science and the current course I am in is called programming essentials. we are using the pro…
- PLEASE HELP ME WITH THIS PYTHON PROGRAMMING PROJECT (USE THE CONCEPT CORRELATION ) Activity 1: Correlation Coefficient The below tips dataset of a restaurant contains the information of total bill amo…
- Imagine that you do not have math.sqrt. One way of computing the square root of a number a is to use the following formula repeatedly: 𝑦=𝑥+𝑎/𝑥2 You start with an arbitrary x , say, half…
- removeduplicates (arr) Qno. 2 10 Marks Consider the given dataset for data visualization using Tree Maps. Use Squarify Library and plotly Library to plot treemaps. Dataset: https://www.kaggle.com/mat…
- import types class Zillion: def __init__(self, digits): self.d = [] for i in digits: if i == ‘0’ or i == ‘1’ or i == ‘2’ or i == ‘3’ or i == ‘4’ or i == ‘5’ or i == ‘6’ or i == ‘7’ or i == ‘8’ or i ==…
- In this assignment you make improvements to the A8 Python program that processed Amazin.com orders. The enhanced program will include the following features: 1. Clear the screen before displaying ea…
- Here is the python exercise and the exercises’s situation. ——————————————————————————– Exercise (1) Lab Exercises Situation: Hints of Exercise (1) …
- Hashing Project in Python to Extract Features of Names You are given the following three functions. They take plain text names and covert then into features vefctors so that you can work with them in …
- Write a code that will accept input of firstname from the user for exactly five(5) times. Then display all the inputted names and the number of characters in each names. *
- Using Python programming, make a form that allows user to login to a modest web application that has a password and username with a file that has validated user. Once logged in, a formal greeting and …
- Application Problem 1: For the Johnson & Johnson data (jj data from astsa package), say yt, let It = log(yt). (a) Fit the regression model xt = Bt + a1Q1(t) + 02Q2(t) + a3Q3(t) + asQ4(t) + wt with…
- #export class SupportVectorMachine(): # Q3.4.1 Pre-process # points [1] def dataPreProcess(self,x_train,x_test): # TODO: Pre-process the data to standardize it, otherw…
- Download the titanic data set from Kaggle and predict, passenger survival data for the Titanic passengers 1. Perform Random forest, Decision trees and Gradient boost classification on the above data…
- I can only get it to output one line instead of listing all of them. Please help!?. Page 2 > of 6 ZOOM + | Problem 2: Calculating Price of a Bulk Order WideCo is a company that sells widgets. The c…
- How many different repetition structures does Python support? What are the major differences between them?
- I am wondering what is the O-notation for the pop() method for the Ordered Linked List, if we let n is the size of the Linked List.
- Using Python write a short program to calculate the output of a Sigmoid function for dataset 1 see data below. Clinic Number of Medicare Beneficiaries Total Submitted Charge Amount Total Medicare All…
- Apply the concepts of Stacks in a machine problem. Instructions are provided below. a. Make a class Stack with instance variables stack. b. Define methods push, pop and size to push data, pop data …
- Specifications You should think of the specifications that are given for the case studies as starting points. If you have the time to enhance the programs by improving on the starting specification…
- i need help with creating these two functions. thank you any steps to guide me will be appreciated! Create a recursive and non-recursive function that prints all numbers 1 to 100 but doubles the even …
- answer it using pandas Write codes that implements the following: Question 1: Read the data in the attached submission and set the “Order ID” column to be the row index. Show all information of all or…
- Can someone help me generate a simple Web site using Python flask. The site should be unique, include at least 3 routes (e.g. 3 pages one can navigate), each route should render the HTML pages by usin…
- I am doing this programming assignment for my python class, and I need help completing it. Distributed Computing with XML-RPC Description Common tasks in distributed computing applications often requi…
- Please read all the rules and then modify my code according to it and if you want to make your own code that will be fine. Farkle game in python PLAYERS – you should enter the number of…
- Python Pycharm make a program on pycharm look like that improve the Cafe Management System below. The GUI should be able to accept values and calculate costs. ‘Total’, ‘Receipt’, ‘Reset’ and ‘…
- Use while loops in python Write a program that calculates the Euclidean distance given 2 input vectors of similar dimension. The Euclidean distance between two vectors 𝑢, 𝑣 can be calculated u…
- Given two numbers X and Y, write a function that: 1 returns even numbers between X and Y, if X is greater than Y else it returns odd numbers between x and y For instance, take the integers 10 and 2 . …
- Looking for some help with the following program: The second exercise produces x,y values using Python math functions. The results of these function calls will be used as input to another program of y…
- Section 6.9 of your textbook (“Debugging”) lists three possibilities to consider if a function is not working. Describe each possibility. Define “precondition” and “postcondition” as part of your desc…
- numpy and pandas df=pd.DataFrame({‘id’:[‘i10012’, ‘i10013’, ‘i10014’, ‘i10015’, ‘i10016’, ‘i10017’, ‘i10018’, ‘i10019′,’i10020′,’i10021’], ‘age’:[19,18,28,33,32,31,46,37,60,25],’sex’:[‘female’,’mal…
- Objectives: a. Scraping of the data and show sample data. (https://www.nytimes.com/search?query=covid) scrape from here. (Scrape New York Times article with the keyword “COVID” within the month) b….
- Does all the code in a try block execute if no exception is thrown? Yes. None of the code in the try block executes. Only the first line of code in the except block excecutes. Only excepti…
- Hello can you fix my code # Create Python function that will take two parameters, item and number. # When the function is called and arguments are given, it will simply # display the number of the ord…
- I am trying to display the contents from a file inside listbox without a button. I commented out the button in the code, but the listbox stays blank when compiling/opening the program. How do I get it…
- What is a script kiddie? What is a code monkey? What are the differences? Does it matter? Does a kiddie make more money than a monkey? Programmer? Developer? Engineer? How are these terms used in a ne…
- Write a Python program in that randomly generates an integer from 0-99 (inclusive), prompts the user to enter an integer from 0-99, and prints out how much is won according to the following rules: …
- Here are three different “trigonometry identities”: sin(x+y) = sin(x)*cos(y) + cos(x)*sin(y) cos(x+y) = cos(x)*cos(y) – sin(x)*sin(y) tan(x+y) = (tan(x) + tan(y)) / (1 – tan(x)*tan(y)) Use the t…
- For the pseudocode below: Class Musician Private String _name Private Integer _rating Private String _song Public Module Musician(String name, Integer rating, String song) Set _name = name Set _rating…
- T/F The method that initializes objects has a special name _ init 11. T/F Every object that is an instance of user-defined class has a unique identity. 12. T/F An attribute of a class and an attr…
- I need help with finishing my python code. I have to keep reposting because the question keeps getting refunded. I included links to both starter_code.py and best_picture.txt in the comments There …
- So, in my python code, I’m supposed to prompt the user for their name, address, and phone number and write that data as a line of comma separated values to the file using the directory and filename. E…
- Problem 1 (2 marks) Problem: An Internet Service Provider (ISP) must, as part of its service to customers, provide a Domain Name Server (DNS). A DNS is a server that maintains a database of domain na…
- Please follow the steps below to implement a linear regression model to learn a 3rd-order polynomial function. 1. Generate 20 pairs of (x, y) values following the steps in P4 of MP #1. They…
- Now it’s your turn. Combine both if statements and a loop. You can: a. Print out odd numbers and display a message if you hit a particular number. b. Display all numbers from 1—100 and print a m…
- Please help me understand a code that gets a list of integers from input, and outputs non-negative integers in ascending order (lowest to highest). Ex: If the input is: 10 -7 4 39 -6 12 2 the output i…
- ASSIGNMENT:1 1. Encapsulate the code below in functions. Do not use return. 2. Encapsulate the code below in functions. Use return. num = int(input(“enter a number: “)) if…
- My code is working, but it is not displaying a message indicating choices for the user. Is it the lack of “(float” in front of the (input? when working with line – userchoice = input(“What would you l…
- I am trying to make a English test game for assignment. And one of the question is.” What is the # letter of the random word?” # is the random number choosen from the word.( example: if the random wor…
- i need help with this practice question please! thank you!. Write a program whose input is a string which contains a character and a phrase, and whose output indicates the number of times the characte…
- write a python program that asks a sports club manager about the number of registered members. it then repeatedly ask for the age of each member and print how many eligible to vote (18 years or above)…
- I am not sure what to include in the SQL command…
- [vending_status_checker.py] Modify the vending status checker to now also report on the status of the machines overall. Be sure to click the “vending status checker” link above and save the .j…
- I have attached my code below I need to edit my code and a dictionary to it. Please use the code provided below and edit it using simple python. Thank you In this assignment you are asked to modi…
- Part 1: The Cards 1. Create a Card class. a. A Card should be initialized with a suit and a value. For example, Card(“Hearts”, 5) would create a single card. Make value a private attribute. Just creat…
- A recursive function reverse(sentence) for reversing a sentence. For example, reverse(‘Who let the dogs out?’) will return ‘?tuo sgod eht tel ohW’. The idea is to remove the first or last letter, reve…
- #!/bin/python3 import math import os import random import re import sys # Complete the following functions for the STACK_ADT below. # def stack(): # Write code here def contents(stk): # Writ…
- Exercise 3 Write a python script that iterates through the file, and for each sequence, calculates the average quality score (as defined above). Have the script print the sequence id for the sequenc…
- Problem 1b – geomean . py (text-UI application): Geometric mean [20 points] Write a command- line application geomean . py which accepts one or more floats as command-line arguments, and prints out th…
- in python Make farke game for 2- 6 palyes Farkle is a dice game that is multi-player with a minimum of two players, And the maximum will be six players (User has to choose) . The goal is to reach…
- Lab 4 – Using threads. This lab is a warm-up for the next assignment. We will learn to build a multi-threaded application. You will write a function that will simulate a long task. You will call the f…
- # Mastermind # This is a simulation of the game Mastermind. # There is a secret combination of four colored pegs, # and then a series of guesses at that combination. # Correctness is evaluated by a bl…
- Please do this . Question 7 – Standard Deviation The following formula computes the standard deviation of a set of numbers: Z std = (N- 1 i=1 2 ? ) – Nx 2 1 This formula can be implemented in a prog…
- This exercise will involve a game that simulates a landing craft descending to the surface of the moon. You may have played this game before, we’ll implement a simple version of it. In our version, …
- Please don’t copy from chegg and course hero write a program in python to check how many persons are in the line at an auto mated teller machine
- Question 1 Let list a = [1,2,3] and list b = [-1,-2,-3]. What is a + b? A [0,0,0] B [] C [1,2,3,-1,-2,-3] D True Question 2 What is the console output of the following Python statement: print(…
- In python. Problem 4: Implement the function encryptRSA(m, n, e) which encrypts a string m using RSA key (n = p * q, e) . You may NOT use any built-in functions as part of your implementation, but you…
- Hi I ‘m working on an EDX course Called Foundations of Data Science: Computational Thinking with Python. I have never used Python before and in the Lab they are asking us to calculate the estimated di…
- I’ve tried to work out this problem all night and still can’t get my answer ) Use the two-phase method to find the solution of the following LP problem: maximise z = 321 + $2 +2 subject to -2×1 +12 3x…
- I created a pygame on python that would bounce a ball around the screen. how do I augment the program above so that it also achieves the following: Add a second bigger ball to bounce around the screen…
- modify the code below to include function and parameters. def q1(): while True: level = int(input(“Worker level: “)) if level in range(1,11): salary=level*5…
- import matplotlib.pyplot as plt import numpy as np import pandas as pd # ml from sklearn import datasets as ds from sklearn import linear_model as lm from sklearn.neighbors import KNeighborsClassifier…
- (Write) a new version of the manage_course project you wrote in Problem 2. Make a copy of the manage_course project folder and rename it to manage_course_new. Make the following changes to class Cou…
- However, since the value of the expression original_tol. where ( "coll", are. equal_to (12) ) is itself a table, you can just call a table method on it: original_tol . where ( "’coll&qu…
- A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes place…
- Question 12 50 pts Create two different algorithms to to convert decimal to binary and binary to decimal. Use comments to state, in your opinion, how each algorithm differs, such as, which one is MORE…
- write a function/class in Python3 doing the following: read network stream (in JSON) on port TCP 3291 write to local file keys “alpha”, “bravo”, “charlie” and their corresponding values.
- How can a add the blue circle TMCC on the opposite location of the circle and how can I change 0 and 180 on x axis to the text East and West and 90 and 270 on the y axis to text north and south. imp…
- Isabel has an interesting way of summing up the values in a sequence A of n integers, where n is a power of two. She creates a new sequence B of half the size of A and sets B [ i ] = A [2 i ]+ A [2 i …
- Write a simple Python program that simulates Mattel’s Magic 8-Ball toy.
- One of the disadvantage of Python is it becomes confusing, when multiple changes to the codes by different users , and it may be difficult for new learners to new language and cause problem. Describe …
- >>> flag = 1 >>> while(flag == 1): milesDriven = float(input(“\nEnter number of miles driven : “)) gasUsed = float(input(“Enter the amount of gas used : “)) milesPerGallon = milesDri…
- please help me with this question (1 question) Functions file: 1def.pyr Restrictions: —this function file cannot use: sortI sorted, max, sum -you may have no code in this file that is outside of a …
- How do I solve this question in Python?. Consider a following model for logistic regression P(y =1|x, w) = g(wo + wlx) where 9(2) is the logistic function. 1 (1 + e’z) In the above equation, the P(y…
- This question must be answered by using jupyter notebook. Write a function called cval which takes a 2D NumPy array A representing a square matrix and returns the value Amax C = Amin where Amax and Am…
- https://drive.google.com/drive/folders/1W5FnJCR8GmnhTKn6krQH10V8SRZu6lfj?usp=sharing all the referrences and material are shared above in google drive link.. even if you can answer one question it wil…
- hi, I have this problem in python using sqlite query i need to get the result of SUM() in int type, but the type is NoneType. how can I handle this? rows=db.execute(“SELECT SUM(shares) FROM buy WHER…
- Need help writing this program to keep track of two types of items, Product and Service. Product will be represented as a class and Service will be represented as a class. Each class is described belo…
- Python only reading the last line of a CSV file. How do I get python to read all lines in my CSV file?
- The dataset contains transaction information on how people spend money on musical festivals. The dataset contains data about 3 music festivals and over 2 years: 2018 and 2019. The festival names wer…
- class A: def _init_(self ) : print ( ‘ one’ ) def f(self ) : print (float ( ) ) print (hex ( -255) ) class B(A) : def init_(self ) : print ( ‘ two’ ) def f(self ) : print (float ( ) ) print (hex ( -42…
- Show a Python code examples that demonstrate each of the following. Example 1: Define a function that takes an argument. Call the function. Identify what code is the argument and what code is the para…
- Using dictionaries design a program that produces the following: 4.4 Problem 3 (1 mark) Problem: A road map defines locations as map references like B3, where B is the x-coordinate value and 3 is the …
- Python Please: Write a program to calculate the total price for car wash services. A base car wash is $10. A dictionary with each additional service and the corresponding cost has been provided. Tw…
- Using folium (see Lab 9), write a program that asks the user for the name of a CSV file, name of the output file, and creates a map with markers for all the traffic collisions from the input file. A s…
- what are the admissible inputs of the problem? ii. what is the output of this problem?. Scenafio A car park management system uses a list to represent which spaces in a car park are currently occu…
- Please help with the following python questions 🙂 For question 4, the 3rd screenshot shows the multiple choice options, which are the same for all 3 parts of the question. Thank you! . Questi…
- Hi, I have tried to use the following code to decrypt messages with dictionaries but it didn’t work. Could anyone help? def decrypt_msg(msg,codes): result = ” for key in msg: result+=codes[key] retur…
- I need help on this assignment, please. Please assist me. I need to create a python program for an online coffee order. The coffee is sold by the pound, and the price per pound depends upon the quant…
- Outline the components of interrupt handling and, where appropriate, discuss the tradeoffs of implementation by hardware or by software. Give two examples of machine instructions on which mutual exclu…
- A Magic Square is an NV x NV square matrix such that the rows, columns, and 2 diagonals of the matrix have different sums, and the middle element of the matrix is 1. Also, the matrix size / must be od…
- Read the Yahoo! Finance data in quiz-4.csv into a long data frame named df_long. You must use a relative file path for quiz-4.csv instead of an absolute file path. Gradescope will place quiz-4.csv in …
- Use a pandas aggregate operation to determine the mean, median, minimum, maximum and standard deviation of the petal and sepal ratio for each of the three species in the data set. Python. using the fa…
- working on milestone 2 and i know the code is right and correct but getting wrong systax SyntaxError: invalid syntax codio@oxford-smart:~/workspace$ python Milestone2.py File “Milestone2.py”, line 1…
- https://drive.google.com/file/d/1ILJjwghZPjGVZPiHDWRNOgirp6EgUExG/view?usp=sharing. Reflective Questions 1. What input would cause your main() function to return "N/A"? 2. Assuming that func…
- Using Python 3 Describe the difference between a Chained Conditional and a nested conditiona l . Give your example of each.
- You decide to buy some stocks for a certain price and then sell them at another price. list a program that determines whether or not the transaction was profitable. Here are the details: • Take thre…
- The program will not print my smallest number, I can not figure out why? # variables for the total, average, counter,max number min number maxNumber = 0 minNumber = 0 total = 0 average = 0 counter …
- Here is the URL of data: https://raw.githubusercontent.com/franklin-univ-data-science/data/master/olympics.csv Import pandas and load the olympics csv. Please help with the following and show the pyth…
- Tests if the ABFile class can correctly handle writes past the EOF. (0.0/1.0)Test Failed: False is not true : Failed to handle a write past the end of a file (EOF). Check write() to ensure you are onl…
- class Cats with public member variables: Cat name and cat age are required. The following specifications are required: • Add init() method of the class that initializes string member variables to em…
- not really sure how to go about this unknown coefficients (a1, a2) : AH(x)=XX2(dix,+(2×2), with x2=1-x] AHmix (J/mol) * 1 -24.8 0.014 -79.3 0.048 -197.6 0.116 -325.1 0.186 -200 -438.7 0.249 -534.7 0.3…
- Write a non-fruitful function called list_delete_first(aList) that takes a list of strings as an argument and deletes the first element if the length of the list is at least 3. The function does no…
- Can you find answers for this question?. CS-521 Homework 9 In this assignment you will compare two implementations of storing text files: (1) One continuous string (newline char as separator). List of…
- def bollingerBandsStrategy(prices): i = 0 buy = 0 total_profit = 0 trade_profit = 0 first_buy = 0 for price in prices: if i >= 5: mov…
- . Learning Outcomes 1. Implement a class with many members 2. Implement properties, initializers, and class methods 3. Override methods inherited from object 4. Design methods to avoid using m…
- I am trying to get my script to print like this: What would you like to do? How much would you like to deposit today? Deposit was $200, current balance is $700.25 but i keep getting an error with my s…
- Hi, how do I add the first & second number , the third & fourth number and so on from a list. For instance , [3,3,2,3,4,3] and the output will be [6,5,8]. I can’t figure out why my code isn’t …
- import numpy as np def softmax(x): “”” Compute softmax function for a batch of input values. The first dimension of the input corresponds to the batch size. The second dimension corresponds to…
- Write a program that asks the user to enter a series of single-digit numbers with nothing separating them . The program should display the sum of all the single digit numbers in the string. For exampl…
- Given a list of non-negative numbers. Return a count how how times a number in the list is the same as the previous number in the list. Use the “previous” strategy.
- Please let me know how to formulate and complete the code from the above questions and the process involved with answering the question. Please make sure they follow the guidelines given. . Questi…
- Write a program to prompt for a score between 0.0 and 1.0. If the score is out of range, print an error message. If the score is between 0.0 and 1.0, print a grade using the following table: (1…
- You will be creating a Python program that takes in a book order on t validates it and writes the order to a file. You will raise exceptions to those errors by displaying them to the user. Start by cr…
- . You are to develop a performance review system for your employees. Create a class called Appraisal. Implement the following functions in the class – 1. setEmployees() – takes the name of a employe…
- I need to create program for an on-line CD store. The program has to create list of records about CDs by reading the data from a file. The program should then display a menu that allows the user to so…
- how to Use TCP socket to finish file transferring for one hundred times. in this case, it runs just 1 time. clientSide.py – C:\Users\trank\Downloads\File Transfer-one time Demo\\clientSide.py (3.8.10)…
- Solve these 4 lists exercises 1. Given an array of ints length 3, return the sum of all the elements. sum3([1, 2, 3]) → 6 sum3([5, 11, 2]) → 18 sum3([7, 0, 0]) → 7 2. Given an array of int…
- program to prompt the user for hours and rate per hour using input to compute gross pay. Pay should be the normal rate for hours up to 40 and time-and-a-half for the hourly rate for all hours worked a…
- http://blog.csdn.net/garfielder007/article/details/50597126 Hope I can get correct answers of those 10 questions!
- Question: For each of the functions below — identified by name, parameters, and return type — construct a line of Python code that demonstrates how you would call that function. Pass literals as…
- Identify the list of superclasses from the list of pairs below: Manager, Employee GraduateStudent, Student BankAccount, CheckingAccount Vehicle, Minivan Employee, Student, BankAccount, Vehicle Manager…
- # I can pay an extra $25 for this question, pls help me answer it Question You are to write two source files as described below: · The first file named stockApp .py , should cont…
- for python 2 programming Question 3. Consider the following Die class inside the file die.py """ die. py Simple Die class that allows for any number of sides""" from rand…
- Assume the position of a manager of an online retailer. Pose a question to your IT expert about a task you would like to do with customer data files. Provide a brief explanation (two to three sentence…
- The Task: The full file can be found on Kaggle : https://www.kaggle.com/AnalyzeBoston/crimes-in-boston Your job is to code a Python 3 program that uses the provided file and answers the following ques…
- Compressed Sparse Row Format This format tries to compress the sparse matrix further compared to COO format. Suppose you have the following coordinate representation of a sparse matrix where you so…
- give a function flip_horiz(pixels) that takes the 2-D list pixels containing pixels for an image, and that creates and returns a new 2-D list of pixels for an image in which the original image i…
- hello please help me only for the part 4 – Develop web scraping code & plot/graph of data, you can pick any wiki page, I just want to get some idea. here is the link: https://drive.google.com/file…
- Can someone help me out, i started on it but half way through it just stopped so I’m out of ideas CS1026: Assignment 3 Due: November 16th at 9:00pm. Weight: 10% Learning Outcome: By completing this as…
- Use the following enron csv file. The columns contain: time, messageID, sender, recipients, topic, mode. The time column is Unix time (in milliseconds), the topic is usually/always empty, and the rec…
- Need help with the code: Collapse Exercises Exercise 8: Vowels Create a program that will use the variable [x to represent a string. The program will determines if x is a vowel (a, e, i, o, and u ). I…
- Problem: The people of ancient land of Pacific Baza had a simple mathematical system that knew only natural numbers and addition. The genius Bazan scholar, Gringo el Possum, built a computer from wood…
- (please write right return values) Write a function add_powers(m, n) that takes a positive integer m and an arbitrary integer n, and that uses a loop to add together the first m powers of n (from n**0…
- Please help with the Python code: I am trying to set the time limit to 5 seconds for the user to say the correct word to a smartMic which I called “line”. To be clear, after 5 seconds, if you don’t …
- Consider the diagram on Slide 14: . The fime function uses a dictionary. . For the Fibonacci tree for n = 7, how many key-value pairs are in the dictionary? 0 If you study the diagram carefully, you …
- Project: Tweet Analytics CS Focus: Data Analysis / Machine Learning Description: given a dataset containing the text tweets of politicians, analyze the positive or negative sentiment of tweets based o…
- Assume you define a dictionary named Dict as follows: Dict = {1: ‘Tom’ , 3: ‘Dick’ , 19: ‘Harry’ } There are several different ways to iterate over a dictionary using a loop. Below, match the loop cod…
- i have implemented the relief algorithm and got weights . please help in implementing weighted KNN algorithm using those weights..the relief code is provided below: import numpy as np import pandas as…
- Adjacency List IN JAVASCRIPT OR PYTHON Programming challenge description: a program IN JAVASCRIPT OR PYTHON that builds an adjacency list representation of a simple undirected graph. Input: An undirec…
- Question1: Simulate the activity of a casino dealer who performs the following 2 actions: 1) Shuffle the cards, and 2) Return a random card to you Recall, a card has: A) 4 suits: Clubs, Diamonds, Hear…
- La empresa de turismo “City Tours” desea tener desarrollar un aplicativo para mostrar información de los lugares turísticos de las diferentes regiones del Perú. Para desarrollar esta aplicación se…
- Write a program which accepts a sequence of comma separated 4 digit binary numbers as its input and then check whether they are divisible by 5 or not. The numbers that are divisible by 5 are to be pri…
- please help fast! thank you!. 8.6 LAB 8B: Drawing a right triangle This program will output a right triangle based on a user specified height triangle_height and symbol triangle_char. Using what you k…
- 13.2: Default parameters: Calculate splitting a check between diners. Write a split_check function that returns the amount that each diner must pay to cover the cost of the meal. The function has…
- Please form a program that does everything as stated above in Python 3. Thank you so much for all the help, if you have any questions don’t hesitate to ask! Also please, if possible, write out how you…
- I am creating a fabric task which will allow to list all shell users on a remote system, i am using python and the remote user is centos. This is what i have come up with and for some reason, i am get…
- Hi, Do you help doing assignments? Let me know I’m in need.
- Consider a lattice with one site -seed Draw a circle around it (wide). Pick up at random a point on the circumference and choose the closest lattice point to it. A new particle starts a random walk …
- Creating a simple table in AWS CLI with a table name STudent with a HASH kay named student. Other sttributes are StudentDescription(String), Image File (String), Rollno(Number), and Location(Set)(eg F…
- Explain the importance of Normality 1.2 Describe non-normal distribution of variables in a dataset by summarizing the steps need to be taken to test for normality. 1.3 Describe the reasons of …
- Here is the python exercise and the exercises’s situation. ——————————————————————————– Exercise (1) Lab Exercises Situation: Example: #!/usr/bin/en…
- Can you please help me with the coding and answers A F&B manager wants to determine whether there is any significant difference in the diameter of the cutlet between two units. A randomly selected…
- Hi there. I am stuck on this question, despite getting the description and some examples, I have no idea how to go about the body. As a reference I will also provide pictures for how ArxivType and Nam…
- Can I code this with only using one function? as I only know how to do it with multiple functions A valid password must be at least 8 characters long and must contain the following: • at least two u…
- Write a syntactically correct Python program to solve the following problem: You are the professor for COSC 1336 at Austin Community College. Write program that will take in the numeric grades of the …
- Create a Python dictionary that returns a list of values for each key . The key can be whatever type you want. Design the dictionary so that it could be useful for something meaningful to…
- I am using aws and the data set(edges.txt, nodes.txt )to do the spectral clustering. But do not see the clustered result in aws. Any help with correcting my code would be really appreciated. This proj…
- This is what the data looks like (top 4 rows): f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19 f20 f21 f22 f23 f24 f25 f26 label 3.945 2.245 2.786 3.469 2.518 4.338 2.592 3.353 3.07…
- . Create a function called MakeFile() with the following requirements: a. Two parameters: i. The first is the name of a file that will be created in this function. ii. The second is a list of string…
- python Raster Image ManipulationUser Input As you have seen in the past few lessons, it is quite easy to change an image at the pixel level. However, one thing holds true about all the changes you …
- please see the tic tac toe. py file here “”” Tic Tac Toe Simulation Starter Code “”” import random class TicTacToeSim: # Part 1 def __init__(self): # Initialize the simulation …
- Steps 1 to 4 are the only ones really required as 5 and 6 are just bonus but I have no clue where to start!. Write a python script called hoster-toaster.py that is used to update a machine’s local hos…
- NEED HELP WITH THE FOLLOWING PYTHON FUNCTIONS (the test case for the 3 are at the very bottom) from typing import List, Set, Dict, Tuple, Optional, Text from operator import itemgetter import spacy …
- How do I find the smallest and second smallest number in a tuple of strings?
- Part A Different file 1. Use recursion to reverse a string. Your function must be named reverse_string, it should take in 1 string as an argument, and it should return the reversed string. Your s…
- It is an analaysis of my code! will not be submitted??
- Python Dataset File Access: https://drive.google.com/file/d/1Hu1x4Wt3Fb-8K2oE4mA9UzGD26DbYLRg/view?usp=sharing This dataset contains an inventory of tall buildings in San Francisco, focusing on …
- I’m working on one of my homework assignments and in Line 23 I keep getting an error saying: Traceback (most recent call last): File “main.py”, line 23, in <module> year = int(input()) EOFError:…
- a The function is named validity(). It receives 2 floating point parameters, min and max, from the program that invoked it. The function asks the user to enter a float number. Using a while loop it …
- Question: Complete the code of the accompanying two classes (Short and ShortArray) so the planned result is delivered when the program is executed. The Class Short epitomizes an approved positive shor…
- Unzip and open this folder in pycharm as normal. Make sure you have the matplotlib package installed, which allows you to quickly and easily draw graphs. If you haven’t done this already, open the Ter…
- Describe the difference between ” re-using” and ” remixing” in the context of computational thinking. use an example to illustrate each term (4 Marks) Describe the difference between the following t…
- I need some help getting Command Line S)ort book working. “Now, you will build a text-based user interface, calling the data analysis functions which you developed earlier” The exact required use…
- This function takes two polynomials of degree two (lists of length three) as arguments. This function must return a new list (i.e., do not modify the contents of the input lists) representing the …
- Use the examples from this site: https://matplotlib.org/stable/tutorials/introductory/sample_plots.html#sphx-glr-tutorialsintroductory-sample-plots-py To generate two graphs in your notebook. …
- i need help with these two code: use python code please . 1. 2.. Google_Books_Dataset (1).csv Open with * A B C D E F G H rating language 8 of title author publisher page_count generes 1 Antiques Road…
- provide examples of reusable codes that used in python (Examples include Functions, loops and conditions, data structures, oops. please provide examples of these codes being used.
- I am using Windows 10 and i am trying to write in spyder. (a) part is done and add to the this drive link with seq.txt : https://drive.google.com/drive/folders/1BdT5EwYh0_YBuV6CmjN4cTbX4cykrDz8?usp=sh…
- Write a program that extracts the last three items in the list sports and assigns it to the variable last.
- Write a function called convertMillis that converts milliseconds to hours, minutes, and seconds. The return should be a string in the following format:hours:minutes:seconds. in python CPSC 1301L COM…
- import sqlite3 import csv import random import string import os import textwrap class DatabaseHandler(object): “””Database interface. All DB calls are made in this class.””” def __init…
- Text processing You decide functions for processing text, each of which alters a string and returns it, which you store in a file called processing.py: replace (word, old, new) delete (word, char) ins…
- PYTHON QUESTIONS DUE SOON NEED HELP ASAP!!!!!! files are attached! Date/Time 14-05-01 0:00 14-05-01 1:00 14-05-01 2:00 14-05-01 3:00 14-05-01 4:00 14-05-01 5:00 14-05-01 6:00 14-05-01 7:00 14-05-01 …
- ONLY NEW ANSWERS !!! DO NOT COPY FROM CHEGG!!!!!!! Load the JSON file below into Python as a dictionary; convert to a list and calculate the minimum velocity and maximum height using recursion. Thi…
- Hi, how can I correct the following code to reverse a sequence? def reverse(s): str = “” for i in s: str = i + str return str print(reverse(‘abcde’) My output is only a
- Special Note to Coursehero Tutor : Following is a new requirement but after this requirement ends there is another note to the tutor which shows the pre-condition code that needs to be updated with th…
- Describe the difference between a chained conditional and a nested conditional . Give your own example of each. Do not copy examples from the textbook. Deeply nested conditionals can become di…
- Assume there is a variable , h already associated with a positive integer value. Write the code necessary to compute the sum of the perfect squares whose value is less than h, starting with?…
- Using Python How to extract the year from the date field below? how to remove the comma (,) from the field below?. High 4.401.48 4,378.45 4,388.84 4,385.34 4,294.73
- \ . MythicalWorld is divided up into four different zones. In each zone there are three different pods of mvthical beings. You are given two lists of the same length as follows: mythicalPoda — [&q…
- Objective : Store and process test scores using lists and functions There are seven functions required for this lab. A list must be used to store and process all test scores. All output must be…
- Write a function so that the main program below can be replaced by the simpler code that calls function mph_and_minutes_to_miles(). Original main program: miles_per_hour = float(input()) minutes_tr…
- A text file contains some text (nothing unusual) but we need to know how often (or how rare) each letter appears in the text. Such an analysis may be useful in cryptography, so we want to be able to d…
- Write a program that reads the following Lincoln.txt file and print the unique words in the file to the screen in alphabetical order. (60 pts) Lincoln.txt: You can fool all the people some of the t…
- Write the definition of a class Player containing: • An instance variable name of type String, initialized to the empty String. • An instance variable score of type int, initialized to zero. •…
- Directions: * Complete the graph algorithm functions given below. Note that it may be helpful to define auxiliary/helper functions that are called from the functions below. Refer to the README.md file…
- what is the function should need to insert in the python program def main(): # using keyword global allows to use the ip_List created outside of function to global ip_List ”’ U…
- I am using Python ONLY, please do not provide answers in any other coding language as I am only studying Python. Thank you Task 3: Matrix Column Statistics Task 3 focuses again on arithmetic operators…
- please code the function greedy_predictor under Part 2: Task A do not use numpy/pandas refer to the doc below by signing into your account https://drive.google.com/file/d/1QsbOTtUC0hhBFqieTyWac4kt2u61…
- I did not do well on this assignment, please carefully read the function specification carefully, the format of the output and share the individual answers and explanations of the following 2 question…
- I have given you my statement of work and now I have to make a entity relationship diagram and I need help with creating entities and attributes as well as relationship descriptions. Please help 🙂 St…
- You are managing a magazin. You have two lists. The first list contains the items sold by the magazin, it is a list of strings. The second list contains the quantities of these articles, it is a list …
- Here is the file: import sqlite3 def main(): # Connect to the database. conn = sqlite3.connect(‘cities.db’) # Get a database cursor. cur = conn.cursor() # Add the Cities table. add_cities_table(cur) #…
- . Finding IP Address and Class Part 1: IPv4 Address Identification and Conversion 1/ Create Python code that will retrieve the IPv4 address of PC you are running on. This will not be keyed in bu…
- The question is related with the Artificial Neural Network Course. Subject is (Perceptron Learning Rule Classification). Could you obtain code on PHYTON or MATLAB? My handwrite solution is below the p…
- I need help solving this pls Prep Problem – 25 In this problem. you should write one function named _. This function should have one parameter, which will be a dictionary at food items. The keys will …
- estion 9 in this problem, you should write a function named return_adjustment This function should have one string parameter. The function should create a new string, which is a modified version of th…
- In this discussion, apply the statistical concepts and techniques covered in this week’s reading to calculate a confidence interval and perform hypothesis testing for a manufacturing process. The manu…
- hello, so I am trying to see how this program works because I have a similar one but it does not seem to work. I have been struggling a lot with this class and a little help will be appreciated.
- I am working on a python text based game. My code will not print the available directions to move in and it will not step through my loop. I have pasted the code as text below. I need to have the prog…
- Let 𝐹 =[[1,2, 𝑎 ],[3,2,1+ 𝑏 ],[2,2,2+ 𝑐 ]] where 𝑎 , 𝑏 , and 𝑐 are variables. 𝐺 =[[0,2+ 𝑐 ,− 𝑎 ],[3, 𝑏 + 𝑐 ,−1],[ 𝑎 ,3,− 𝑏 ]] where 𝑎 , 𝑏 , and ?…
- in this task you will develop a simple graphical simulation that analyzes how forest fires spread and how forests regrow after fires. Each time step of the simulation represents one day. On each day, …
- MUST ANSWER USING GRAPHICS.PY PROGRAMS ONLY* PLEASE DONT ANSWER THE QUESTION WITH TKINTER 2. (15 points) Problem 2 gives you practice with interactive graphics that use mouse clicks rather than the co…
- Task3 Perform the following steps: Ensure you are in the ‘Project’ folder. Open the ‘test/test_inventory.py’ file using vim editor vim test/test_inventory.py. Press i to insert content in the fil…
- When prompting the user you must always include text which lets the user know what should be inputted. Update the weather.py file to do the following: Using separate prompts, prompt the user to ente…
- I need help with filling out followings: Each of the following activities are commonly performed during the implementation of the Database Life Cycle (DBLC). Fill in the blank, before each activity, w…
- . CHALLENGE ACTIVITY 6.7.1: Output of functions with branches/loops. 375510.2350218.qx3zay7 V Jump to level 1 V Type the program’s output 2 def get numbers () : user input = input () 3 values = for …
- Write a python program with explanation to read a number n from user, calculate the sum of the following series up to n-th term, and print the sum at the end: 12 + 22 + 112 + 362 + 852 + … (2 marks …
- A simple substitution code codes ‘a’ as 1, ‘b’ as 2, …, ‘z’ as 26. build a function called “encode” that takes in a string, and prints the coded text. The output should be a string, with letters sep…
- Testing factorial (1) Expected result: 1 Actual result: 1 Test passed Testing factorial (2) Expected result: 2 Actual result: 2 Test passed Testing factorial (3) Expected result: 6 Actual result: 9 Te…
- I do not get what I’m doing wrong here, could someone explain it to me. . pythonProject1 C:\Users\eason\Pych import time, sys venv library root def runZigzag (numOfAsterisks) : labs v Chapter 1 runZi…
- **NEED TO SOLVE USING PYTHON CODING** The Capital Asset Pricing Model (CAPM) is a financial model that assumes returns on a portfolio are normally distributed. Suppose a portfolio has an average …
- What method name is used for a constructor? _begin _construct create init
- Exercise 4: evens (10 pts) Edit the function evens so that it returns a generator that yields the numbers in the input sequence that are even, in order. Do not use built-in iter() function or create a…
- Data is extracted from the provided . Oolmat files. Testing and training dataset have 28×28 = 784 features representing the pixels of each image. The requirement is to extract features from the traini…
- Given a string, return the sum and average of the digits that appear in the string, ignoring all other characters. Given String : “English = 78 Science = 83 Math = 68 History = 65” Expected Outcome …
- Prompt the user to input a wall’s height and width. Calculate and output the wall’s area (integer). (Submit for 2 points). Enter wall height (feet): 12 Enter wall width (feet): 15 Wall area: 180 s…
- Assume there is a 2D numpy array of integers named data that could be any rectangular size. Set all entries in a checkerboard pattern to zero: – In rows 0, 2, 4, etc. set columns 1, 3, 5, etc. to zero…
- Use Python. My program keeps showing errors and not sure if I’m doing it right. Please do not use answers from other sources. 02. [50 pts] Below is an example file called Iabdata . txt that contains s…
- Help me to make python project follow these instructions Relevant reading; https://www.nature.com/scitable/topicpage/translation-dna-to-mrna-to-protein-393/ https://en.wikipedia.org/wiki/Genetic_…
- My following code works but I am having one issue and that’s making a new line at a particular section. However, I tried “\n” after “Choose an option:” and still doesn’t give me the output I need. MY …
- Write python program that does the following: · takes as input from the user an English sentence · calls the function vc_counter() that: o takes a string argument o counts the number…
- Python program pick a random word from the dictionary/list from words.txt, jumble the letters, and ask the user to unscramble it. The user may type in the unscrambled word or may ask for the definitio…
- How to conduct a python program for the following? . Sample Input 1: 18 Sample Output 1: 270 Sample Input 2: 3 Sample Output 2: 243 Sample Input 3: 15 Sample Output 3: 135. Write a function called m…
- Help writing python program with a main function to read the file, and produce a list of all countries with a population above 400,000,000? Modify your program so that the user can enter any positiv…
- create explain how it works # The greatest common divisor of two positive integers is the largest integer that divides each of them without remainder. For example, # god (2, 12) = 2 # god (6, 12) 6 # …
- data source for COVID cases: https://github.com/nytimes/covid-19-data/blob/master/us-states.csv data source for population: https://worldpopulationreview.com/states Objectives: Make animated chor…
- subject – data mining Please answer the 4,5,6,7,8 questions. data set – https://git.io/JUGqS In this last exploration we’re going to make use of the excellent distance metrics provided with Scikit-lea…
- my desire is for you to assist me in converting the following stanza into a working python code to code a small program in python to generate x number of atms every so many minutes, you may use the …
- E F E2 B3 … Y25 26 The grid lines are 0).5 kain apart. Write a program that allows the user to enter a trip as a sequence of any number of map references on one line, and reports the total length o…
- We have 4 very good friends Albert(A), Billy(B), Carl(C) and David(D), and we want to see which pair of them is the ultimate best friends to each other. We have a machine that can test how much a pair…
- need code Q1: Teams of Circles Write an Active Processing program which will draw a set of random circles in the canvas. Each circle will belong to a particular "team", and each team will ha…
- Problem 1: Python Program Import at least 1 file. Design a program that will perform basic grade computation. The program will ask the user for their name and 5 numeric inputs with the following weigh…
- remove_character(character_list, name) This function takes the list of characters and the character’s (to be removed) name as parameters. If the character is not found in the list of characters, dis…
- Hello I have a final output here in my zip file. I just needed some changes from what my professor said. Zip file: https://drive.google.com/file/d/16E-ePWZCm4hV9SGAUmonK6qSw0_yeUlD/view?usp=sharin…
- Write a string that contains your name and address on separate lines using embedded newline characters. Then write the same string literal without the newline characters.
- Hello, I’m going to attach all of the questions as a picture. Please also show easy-to-understand steps. Still, if specific problems need a little explanation, then a tiny description would be much ap…
- Template for Functions (chapter 5+).py – C:\Users\priya\Downloads\Template for Functions (chapter 5+).py (3.10.0) X File Edit Format Run Options Window Help Program <program name> Description: t…
- Consider the following two assignments: my_grades = [64, 67, 58] my_grades[1] = 74 Draw (or describe) the objects and labels that the Python interpreter creates in response to the first assignment. Th…
- o o o o o Please explain each funtion . – Intercepts (ifany) Vertical Asymptote(s) (if any) Other Asymptote (if any) Domain and Range End Behaviours Interval of Increase Interval of Decrease Whether…
- Problem 4: Compute a function that will swap the colors on the torch image. The background and handle should be brown, the surrounding ring should be yellow, and the flames white. You will have to get…
- Please help me to Write a program whose input is two integers. Output the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer.
- Develop a web links scraper program in Python that extracts all of the unique web links that point out to other web pages from the HTML code of the “Current Estimates” web link and that populates them…
- Given the dictionary,d, find the largest key in the dictionary and assign its value to the variableval_of_max. For example, given the dictionary{5:3, 4:1, 12:2}, the value 2 would be assigned toval_of…
- Write a program that reads a floating-point number and prints "zero" if the number is zero. Otherwise, print “positive" or "negative". Add "small" if the absol…
- . Write a program which opens the file "november.txt" reads it line-by-line from the file, and displays its contents line-by-line on the console.
- In this lab, you will learn the basics of socket programming for UDP in Python. You will learn how to send and receive datagram packets using UDP sockets and also, how to set a proper socket timeout. …
- . Question 22 (10 points) The Chicago Dice Game uses two (2) dice and can have two to six players. There are 11 rounds in the game. The rounds are numbered 2-12. For each round, each player rolls th…
- Hi everyone, There are various selection structures that can be used in programming. What are the different relational operators used in selection structures in the Python programming language? …
- Kindly do it as mentioned in the image and just write python program only. Consider the following operator relation table of a grammar. E- E+E| E-E| E*E| E/E| E’E|-E|id Write Python Program only + >…
- This is the code that I have so far, I am stuck, on the next steps. If someone could give me a little insight. The instructions are below:. Iteration 4: – Update the constructor: . create an instance …
- Can you please show the code in Python thank you !. Yhe illustration of our setup is above. flhere are seven fast moving par- ticles ( in red) and six slow moving particles ( in blue). In the image yo…
- While loop: insect growth CHALLENGE ACTIVITY 4.3.3: While loop: Insect growth. Given positive integer num_insects, write a while loop that prints that number doubled up to, but without exceeding 100. …
- Find a dataset that can be used for clustering. Explain the dataset (such as what the variables are, what is used for, etc.). Please post the link to the dataset. Please find the dataset at kaggle….
- [{ “population” : 145814.864 , “region” : “Russian Federation” , “year” : “2001” },{ “population” : 145194.882 , “region” : “Russian Federation” , “year” : “2002” },{ “population” : 144584.695 , “regi…
- When writing a recursive function in Python, how can I use concrete examples to help me visualize and write functions?
- Créez une fonction en Python appelée ajoute, qui prend une matrice et qui modifie la matrice en ajoutant 1 à tous les éléments. Créez une autre fonction Python appelée ajoute_V2, qui prend une …
- Given a real life scenario, why is the accuracy and speed important in binary choice classification model and how it would affect real-life implications?
- MY topic is Developing a software that can track exact location of hacker. 1. Where is the location of the problem (business OR public institution name, address) – it must be familiar to you. Fill in …
- Given the code: pets = {‘dogs’: [‘Rocket’, ‘Trixie’], ‘cats’: [‘Motley’, ‘Hobbes’]} which of the following is a true statement: a)’dogs’ is a key and ‘Hobbes’ is a value b)’Hobbes’ is a key and [‘Rock…
- 6 Loop Practice: Gradient Decent (30 pts) In statistics, linear regression is a linear approach to modelling the relationship between a dependent variable and one or more independent variables. Let X …
- Write a function smaller_of(valsl, vol 52) that takes as inputs two lists valsl and valsZ and uses recursion to construct and return a new list in which each element is the the smaller of the corre…
- https://scikit-learn.org/0.20/auto_examples/linear_model/plot_logistic_l1_l2_sparsity.html code is above import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import LogisticReg…
- Python Assignment Consider the time series seismogram(seismograph) of an earthquake event attached (seismic.mat) inside the seismogram folder. see the link to access the folder and dataset: …
- The outcome is to have a better understanding of operating systems and the existing vulnerabilities and what must be done to secure our environment Use this website https://www.cvedetails.com/top-50-v…
- The time complexities for the search, insert, and delete methods are O(nlog) . Group of answer choices True False
- Write a python Program Write a class named Patient that has attributes for the following data: First name and last name Date of birth Address, city, state, and ZIP code Phone number The Pat…
- Q-1 Assume the following Python code has already executed. import os cwd = os.getcwd() Which answer is most likely output from the following Python statement? os.path.is le(cwd) Select one: a . [‘M…
- I was trying to see if i can get quick help with coding something out. I was trying to x out numbers from someones SSN. For example, to show xxx-xx-1234 vs it showing 123-45-6789
- importing os and openpyxl . Problem Statement Given the file structure and contents mentioned in the previous section, write a Python function find_instructor (pathname, name) that searches through …
- Code and print a test_data array with the following cases from first to last in this order. This can be done with a single line of code filling the array with explicit values matching training_data in…
- Plot Mean, Variance and Standard Deviation using matplotlib . 1. Create a file with given numbers. Read them from file with a python program and calcu…
- Provide your own examples of the following using Python lists . Nested lists The “*” operator List slices The “+=” operator A list filter A list operation that is legal but does the “wron…
- code in python for New Excercise Calculate BMI (Body Mass Index) formula for BMI is Formula: weight (kg) / [height (m)]2 Weight in KG Height in meters (You need to get hight in inches and convert into…
- Can someone look at my answer in this notebook (https://colab.research.google.com/drive/1Sr0N-kGqQHuuGyi_gc8ce_9B27L8LShI?usp=sharing) to the following questions and correct me wherever it is wrong? P…
- Could you help me with my coding? I have txt.file and .py file and could you add some comments (this is the text file information)
- In the original flashcard problem, a user can ask the program to show an entry picked randomly from a glossary. When the user presses return, the program shows the definition corresponding to that ent…
- Can you please help me to solve this question by using Python? Thank you so much!
- py) Write a program which reads in a list of integers as numbers, then doubles each of the elements of numbers in place. Then print out the doubled list elements, as follows. If numbers is […
- One final example for now: in our last lab, we wrote a program to find the maximum of an array of integers. The program had its limitations since it only worked on whatever array you typed in the pr…
- DOMAIN : Medical • CONTEXT : Medical research university X is undergoing a deep research on patients with certain conditions. University has an internal AI team. Due to confidentiality the patie…
- In Python, write small program that declares 3 variables quantity (integer), item (string) and size (float-point number). Set them to any numbers and a random item. Below is example output for variab…
- Problem 2: Define PageRankDiGraph class in PageRank.py¶ A directed graph , or DiGraph, is just a set of arrows (“edges”) between objects (“nodes”). It is a natural way to represent data that repr…
- Define a function has_digit that takes a string and returns True if a numerical digit is contained within the string argument, and False if not. Define a function add_positives that takes a tu…
- Estimated Completion Time: 2-3 minutes Which of the following are possible lists after 3 passes of a sorting function based on selection sort? Select all that apply. [‘h, ‘g’, ‘f, ‘e’, ‘b’, ‘d’, ‘c’, …
- Hi I’m running into an error with my program and was wondering if I could get a quick answer. These are the instructions: This project assumes that you have completed Project 1. Place several Student…
- INSTRUCTIONS This assignment tests your ability to create a simple regression solution to a prediction problem. You will use a dataset of bike rentals from Capital Bikeshare system, Washington D.C.,…
- Write a python program to simulate the Tic-Tac-Toe game.
- Describe how catching exceptions can help with file errors . Show three Python examples that actually generate file errors on your computer and catch the errors with try: except: blocks. Inclu…
- I need an explanation of these objectives for a Python program: Take two integers from the user Save the lower number as x Save the largest integer as y Loop must count x to y by twos Print out the va…
- Performance of the k-nearest neighbor algorithm crucially depends on the choice of k. Explain the pros and cons of using different values for k, for example k = 1 and k = n, where n is the total numbe…
- Invent your own function that does some useful computation of your choosing. Do not copy the function from somewhere else. Use incremental development, and record each stage of the development proces…
- Can you answer this please. Question 1 Figure 1 below shows a form. You can use a variety of input elements for the form based on the type of information you want to gather from your user. Sample Form…
- I have the following python code that does not solve the problem in the images. It is my current start/attempt. I get an error and my output seems to be off. Maybe its a tolerance in my calculations? …
- Need help how to do that coding below: 1- collect data using an API for TMDb 2- construct a graph representation of this data that will show which actors have acted together in various movies 3- com…
- Would you lla to Addan waurn or Saturni: the plan maur Add student example output R. Add result example output
- Help with python code: import json with open(‘hotel_reviews.json’) as json_data: hotel_data = json.load(json_data,) hotel_data I want to count the number of times ‘bathroom’ appears in the comme…
- Written in Python 3, due by Thursday, November 11. Use Regular Expressions. I’ve put some comments following the hashtags for how I think it should be structured. This site can be used to test if t…
- How do I define an outfile? I am having an issue connecting it to the file, Blood.txt, for Lab 10-3 #the main function def main(): outfile = outfile.write outfile.write (Blood) endPr…
- Python is a popular tool among hackers and engineers. In this lab. you will learn Cryptology in cybersecurity, which covers 0 Cryptography: Encryption and decryption using a cipher. – Cryptanalysis: D…
- 13 LAB: Exact change ‘Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes,…
- I would like to print no more songs to learn after the user leaned all the songs in the list of file. I was suggested to use list comprehension to do it Link of the Assignment: https://www.coursehero….
- I need help with this assignment. It needs to be done within like 30 mins. This assignment is on to make an basic parser for an input string that is somewhat like Python. Your program will read a data…
- How to construct this program? Exercise 5.3 Collatz conjecture The Collatz conjecture is a conjecture sequence that always reaches 1. The sequence is defined as: start with a positive integer number n…
- code does not run please help def revenue(a_tickets, b_tickets, c_tickets): a_cost = 30 b_cost = 20 c_cost = 15 a_revenue = a_tickets * a_cost b_revenue = a_tickets * b_cost c_revenue = c_tickets * c_…
- Please help me out, it’s a python programming problem. We need to find out the pay gap between men and women who have jobs in San Francisco. Here is the dataset. https://drive.google.com/drive/folders…
- I am not sure how to complete the following code? def reverse_file(f): “””Returns a reverse of the file in a new list called reverse_list. Args: f: a freshly opened file in the format of the file alka…
- Solver lbfgs supports only ‘l2’ or ‘none’ penalties, got l1 penalty……. which error
- Please help me figure out how to correct my code. Please show proper indentations. I’ll put the problem below, then I’ll put what I currently have, followed by the output message I’m getting. OUTPUT m…
- A file contains names of reviewers and their reviews of different movies in the comma separated format. The first string is the name of the reviewer followed by a name of a movie and its rating. I am …
- . Assignment Specifications and Requirements Please enter your code in the block between comments like this: # Begin of your imports —– # Begin of your implementation – # End of your imports —-…
- Step 1: Start a new file. In IDLE, select File and then New File . A new window will appear. This is the window to input your new Python program. Now, type in your new program. Answer the questions…
- . Construct a python program to award bonus marks for the students of the course BCSE101E according to the marks scored in the exam and the class type. The Python program should accept the marks, cl…
- please help me solve this python problem. I am unable to code this program. Please help me solve it. Requirements: Structure of the Code Your application can be programmed as a single class including …
- Hi, I am trying to first, make and import a module called Mylib then enhance my code by doing this: You are going to enhance the prior assignment by doing the following 1) Move all the functions into …
- R PROGRAMMING ( R STUDIO) STATISTICS QUESTION The data of this question were collected from 39 students in a University of Chicago MBA class and the data1 may be found in the dataset happy found in fa…
- Inverting an image makes it look like a photographic negative. Define and test a function named invert . This function expects an image as an argument and resets each RGB component to 255 minus that…
- Write a program that removes all vowels from a string and displays the modified string. Your program will prompt the user to enter a string (a word or phrase). Once the string is entered, the p…
- Hello so this is the assignment given and not really enough to by as I’m not sure what I’m doing wrong but anything would help . 8:29 AM Thu Jan 20 . . . 90% learn.snhu.edu Example Python Code to Ins…
- Create a program in Python for the Greedy Change-Making Algorithm (Algorithm 7)
- Pet Class Design a class named Pet, which should have the following fields: name: The name field holds the name of a pet. type: The type field holds the type of animal that a pet is. Example values ar…
- Scenario Given a Tuple, find out the number of times a string occurs. Aim Write a script that uses tuple methods to count the number of elements in a tuple and the number of times a particular element…
- Assignment Exercise 1: Using the following list, do the following: Sort it in ascending order Print out the smallest value in the list Print out the largest value in the list [15, 70, 15, 38, 49, 9…
- . 3. Use a histogram to show the mark distribution of the following test. test = [12, 37, 87, 70, 70, 19, 45, 59, 91, 21, 25, 27, 76, 46, 46, 51, 22, 80, 30, 23, \ 48, 68, 31, 60, 41, 44, 77, 65, 23…
- What is the output of the following code: >>> print(int(9.9999))
- Google’s Page Algorithm – what is Page Algorithm – how does it work in python: implementation in PYTHON (peusdo) with detailed comments – how does it behave with real dataset/toy data set – any flaw…
- Describe how tuples can be useful with loops over lists and dictionaries, and give Python code examples. Create your own code examples. Your descriptions and examples should include the followin…
- I have finish task 1 and need help with task 2 task 1 code: words = [] with open(‘word5Dict.txt’, ‘r’) as infile: for line in infile: for word in line.strip().split(‘#’): ?…
- Write Python Code: As you get close to graduating MIT, you decide to do some career planning. You create a graph ofyour options where the start node is M: MIT and your goal node is R = Retire, with ab…
- We provide you with a number N. Create a list then, using a loop, populate the list with N elements. Set each list element to the index multiplied by 10.
- Book Name: (What’s New in Computer Science) Tony Gaddis – Starting Out with Programming Logic and Design (5th Edition) (What’s New in Computer Science)-Pearson (2018) Important Information: 1) I need …
- 11 – Connecting….Failed 10 coding | python . Attempt to connect to the remote host specified by the given address and port using IPv4 and TCP. . If the connection succeeds return True, otherwise ret…
- Problem 9 The text file Unit04_wnvhumancases.txt contains data on West Nile virus infections in the United States from 2006 through 2018. Each record (line) in the file has four columns(values) separa…
- Define a class, called Solar_System, which describes a solar system within a galaxy. Your Solar_System class should have the following instance variables: 1. A planets variable which stores a list of …
- Question-Based on Privacy and Security in Online Social Media. Jupyter Notebooks is strongly recommended for doing this Question and showing analysis, graphs, and code. Link for Parler Post Dataset :-…
- #create a function questionOne with four input parameters. #return a new dictionary where 1st and 3rd parameter will be keys, #and 2nd and 4th will be values, so your key-value pair will be 1st-2nd, 3…
- Do Exercise 6.4 from your textbook using recursion and the is_divisible function from Section 6.4. Your program may assume that both arguments to is_power are positive integers. Note that every posi…
- Explain the instruction in Figure 1 by writing the expected output (4marks) b) Based on Figure 1, explain the way if a programmer want to create a program that print increment number of 1,000,000un…
- PLEASE HELP ME WITH THIS PYTHON PROGRAMME QUESTION: Project Requirements For this project, you have to do the following tasks: Create a DataFrame for a csv file which is available at the link: ht…
- Using the following guidelines, create a python program. 1. Create a program named myFavoriteCars.py. 2. Add four comment lines at the top of the program that contain: a. Program Name b. Progra…
- check_rhyme_scheme: (POEM, POEM_FORM_DESCRIPTION, PRONUNCIATION_DICT) -> List[List[POEM_LINE] def check_rhyme_scheme(poem_lines: POEM, description: POETRY_FORM_DESCRIPTION, word_to_phonemes: PRONUN…
- need the python codes for the above questions,its my interview questions box and melon drone classify table parsing words
- Write a program that takes the first name as the input, and outputs a welcome message to that name. Ex: If the input is Pat, the output is: Hello Pat and welcome to CS Online!
- Hello, I need help with 2 questions. 1) Make a statement using the dictionary get method to retrieve the value with a key of “Brianna” from the dictionary phones. It should display “Key not found…
- I need help with number 1 and 3 solutions. when I run the code, I got an error message “SyntaxError: ‘continue’ not properly in loop” find link to drive on the comment box
- . Implement several search and constraint optimization algorithms for generating solutions to the 8- Queens problem. Implement four of your favorite algorithms for solving the S-Queens problem using…
- Write a program to read through the xyz .txt and figure out who has sent the greatest number of mail messages. The program looks for ‘From ‘ lines and takes the second word of those lines as the pe…
- please answer my question 8 Consider a priority queue PQueue class that provides the usual add(element) and get_max() methods and is implemented using a max heap. Consider also an object my_pqueue of …
- 2 Write a function that writes a temperature conversion table called tempconv.txt. The table should include temperatures from -300 to 212 degrees Fahrenheit and their Celsius equivalents, presented…
- 1 Activity 1 – Turn in this one Working together as a group (I don’t want one person to dominate this question!), and without reviewing your notes or the slides or videos, see if the group can re-crea…
- Concerning the selection statements in the Python programming language. Do you have any advice for knowing when to use the if-else conditional statement?
- can you solve with python? I need write the code. 2. For a packed bed, the Ergun equation provides a relationship between the pressure drop per unit length and the properties of the bed. AP = 150 (no)…
- Need to come up with a function called add_neighbors that takes a list of numbers and adds each number in the list to the number next to it. The list will always have an even number of numbers in it. …
- A barcode scanner for Universal Product Codes (UPCs) verifies the 12-digit code scanned by comparing the code’s last digit (called as check digit) to its own computation of the check digit from the fi…
- Design a python application that prompts the user three times for three number values (integer, float or mixed) one by one. The application prints these three values and finally uses list functions to…
- In honor of football season (at least for some colleges), how would you approach and simplify the following problem: A data analyst desires to develop a model to predict how many yards a runner will g…
- Please see the attached homework. It is due tonight by midnight. Thanks
- -modulus Apps Home – Netflix h Hulu | Home youtube HBO Max Cengage Home FSW Login |Outlook cengage My lab Stat Florida Gulf Coast. Input will be whole numbers Diffic Constraints Rate T Input will be b…
- Check for that there are no spaces ” ” in the input string. • Break the input string into IP and Prefix (using “/” to split) • Break the IP (from above) into a list of octets (using “.” to split)
- Please solve clearly use Python. Write a program in Python including the following functions: a) Write a function that takes two lists as parameter and performs the following: . If the first list …
- Can you tell me what I am doing wrong with my code? #python 2.7 #function to check charecter is degit or not def checkDegit(charecter): if(ord(charecter)>=ord(‘0’) and ord(charecter)<=ord(‘9’)):…
- There are four requirements for my tic/tac/toe game and I need help. The question says: Based on the half-written tic/tac toe game code below. Construct code for the “do_computer_move” function in the…
- Write a python code that has: 1. This list animals = [‘Cat’, ‘Dog’, ‘Lion’, ‘Tiger’] 2. Append these three animals ( Wolf, Monkey, Giraffe) to the existing list ( animals ) 3. Write a while lo…
- how to write this formula Week. “FORMAT(‘Calendar1′[Week Start Date1],”M/D/YY”)& “-” &FORMAT (‘Calendar1′[Week End Date1],”M/D/YY”)” using query editor in power bi?
- try and except for trapping errors . The hierarchy for five common errors Exception JSError File Exists Error* File Not Found Error Value Error How to handle a Value Error exception try : number = in…
- A restaurant receives 30 to 150 customers a day. Assume that each customer orders 1 dish. The price and probability of ordering each dish are: • steak: 32%, price is 30CAD • chicken: 44%, pr…
- r = requests.get(‘https://api.github.com/user’, auth=(‘user’, ‘pass’)) r.status_code 200 r.headers[‘content-type’] ‘application/json; charset=utf8’ r.encoding ‘utf-8’ r.text ‘{“type”:”User”…’ r.json…
- 9.1 Conditional expression: Print negative or non-negative Conditional expression that evaluates to string “negative” if user_val is less than 0, and “non-negative” otherwise. Sample output with inp…
- I can’t seem to print out 1-12 like they want me to. Can you help me debug my code? C Codio Project File Edit Find View Tools Education Help Node version Project Index (static) Configure. BFEDELL time…
- Python Programming Once upon a time, there was an island… The island is 10 sq km in area. Every day there is a 30% chance it will rain on the island. When it rains, the rainfall has a nor…
- def primes(max=None): p = 2 while max == None or p <= max: if is_prime(p): yield p p += 1 # Generators must be able to iterate through any iterable. # hide is present and called to ensure that your…
- . (b ) Implement the Handicap ndicappedGolf Ifer and PCHolder classes. The HandicappedGolfer class is a subclass of Golfer, and it has: One additional instance variable: _handicap (float) that repre…
- # Question 2 # Write an object oriented Python script that does the following: Connects to the Sakila database Adds a record to the database Retrieves and displays a dataset that shows the newly adde…
- Add product 2. Sort by quantity (low to high) 3. Print Inventory 4. Quit Read the initial product information from a text file. Remember to ask the user to enter…
- Write a fruitful function with at least one string parameter that returns an integer. This could be something like counting the number of commas in the string. Be sure to document what your function d…
- Improve the program below in the following ways: When the program starts, it shows a text-based ‘menu’ for the user. The options should be ‘1) show all’ (to display all the entries that have been e…
- Write an executable python function that takes in a number and computes a factorial of that number without using the accumulator loop
- “Instructions” Solve this question without using builtin library. Function can take as a perimeter is unlimited. (Nolimit/range)
- Create a python module named “homework.py” and add the following functions below to the module. Each section below is a function that you must implement, make sure the function’s names and parameters…
- Task B: Product Ranking (linearly ranked, 4 Marks) In addition to selecting products based on hard conditions, users should also be allowed to indicate their preferences by numeric weights for individ…
- Use PYTHON to make a step plot of the Poisson distribution of the variable x when the mean value of x is set equal to 3. Show this calculation over the range of x from 0 to 8. Overlay on the same figu…
- Jacob is a gifted undergraduate mathematics student at the University of Alberta. For his summer research project, he has decided to investigate points in detail. After weeks of re- search, Jacob has …
- This program is about sets. (create) a Python program to do the following: PLEASE NO BREAK STATEMENTS OR IF TRUE STATEMENTS. THANK YOU!! (a) Generate 5 random integers between 1 and 10, inclusive. S…
- Modify the code below to create a function that will take numbers as input until you enter a negative number and then will return the average of the numbers. 1. sum = 5 2. count = 5 3. mes…
- Assignment: identifying groups of similar wines A sommelier is a trained professional who spends his or her day tasting different wines, and identifying similarities (or sometimes dissimilarities) bet…
- An interval on the number line is denoted by a pair of values like so: (3, 8). Our intervals are closed. So this interval represents all numbers between 3 and 8 inclusive. The first number is always g…
- Please help solve this problem. Thank you…. Aim Write a simple nested loop example that sums the even and odd numbers between 5 and 15 and prints out the computation. Steps for Completion Write a fo…
- Multiple Choice Question -17 What matches ONLY the period symbol (.)? "\period’ O ‘&.’ History Submit Multiple Choice Question -/12 Which one of the following would match the whole string ‘Mi…
- Build a XGBoost model to use Age and EstimatedSalary to predict Purchased. Print accuracy of your model. User ID Gender Age EstimatedSalary Purchased 15624510 Male 19 19000 0 15810944 Male 35 20000 …
- Describe three of the four characteristics of a well-designed algorithm discussed in class and provide a one sentence explanation of each characteristic. 2. Which…
- psudocode this for me please. Bob = {“name”: “bob”,”assignments”: [50,60,80,90],”presentations”: [40,68,67,89],”lab_tasks”: [44,55,77.78]} Charlie = {“name”: “chalie”,”assignments”: [90,80,70,85],”…
- Question 1 | Train a decision tree for a regression problem In this question you will try to learn a decision tree from data. You will be using the dataset provided below. You should use one of the de…
- Code a python program to add two numbers. Maintain comments to your code.
- write a python programme that Use simple functions which passes on user inputs to a function which performs the operation and returns the result which will be displayed on the console. 2. Use while (c…
- Define the following Haskell functions with function signature. 1. is_square. Define a function is_square that takes an integer (positive) and returns True if the number is the square of an integ…
- This exercise will involve a game that simulates a landing craft descending to the surface of the moon. You may have played this game before, we’ll implement a simple version of it. In our version, …
- What is the result of the following statement? x=random.randint(5,15)*2
- A system is to be built that can serve customers at a rate µ. Three different configurations, A, B, and C, are to be considered: A has two servers each serving at a rate µ/2, each with its own queue…
- Write a recursive function encode that takes a string as an input. For each character in the string add 5 to its ord value and then convert it to a character by using chr. Also write another function …
- Task 1 Write a python program (named Yourname_task2.py, ensure that you include your details at the top of the file) for calculating the cost of booking a room. · List must be used in …
- Hello, I need help solving this Lab simulation, It uses Indentation: Fix the program for if-else statements and I am very new at python on so I need help solving it. It is very difficult. It is very c…
- The mayor of Codetown thinks that current school times are not aligned to the needs of modern working parents. However, she realises that modifying school hours will have flow-on effects to areas such…
- Design and implement Python applications that incorporate MLP solutions Exercise 1: Multi-layer Neural Network Write scikit-learn based application to predict the secondary school student performan…
- provide the code for doc2vec embedding for legal dataset. consider the dataset as court cases.
- Python code for the following is needed asap name = “Anna” age = 21 Given the code above, put down one python statement that uses variables to print: Anna is 21 years of age ==========================…
- Create NumPy Arrays from Python Lists and from Scratch Qone-. Creat a NumPy array A1 using a Python list containing [5,10,15,20,25,30,35,40,45,50,55] . Qtwo-. Print the contents of A1 Qthree-. Creat a…
- . In [1]: ‘# add your imports here # here are some examples of imports import matplotlib.pyplot as plt # for plotting import numpy as np # for simulating random choices from collections i…
- Given the (X_train_scaled_std, y_train) pairs denoting input matrix and output vector respectively: complete the three function definitions and demonstrate the functionalities of each by calling them …
- This correspondence is a request for coded solution answers to 4 questions for teh CS 214 HW 1’s Warmup.rtx file : Question #4 Q is partially filled out, but may need Test /assert code added …
- the original questionis above, but my new question is how do i use import pickle on the code below: import xlrd import pandas as pd import numpy as np import re df_1_test = load_ticket_data() assert i…
- ASCII table Print the ASCII table in the following form (sample): … 55: 7 56: 8 57: 9 58: : 59: ; 60: < 61: = 62: > 63: ? 64: @ 65: A 66: B 67: C 68: D … It’s enough to print from the 32-127…
- Design a GUI for a service center. A GUI that will be a customer satisfaction survey about their service experience (Check out survey). Your GUI must have the following: 2 fields collected by Edit box…
- Here is the instruction for my assignment. Here is the link for data “game_test”, “game_train”, “games”, and “example_submission”. https://docs.google.com/spreadsheets/d/1pQspMaZQajdQGDG6l4qd48Fv55…
- I wrote this code and now want to include Python’s exception handling using try/except to catch the error and print out a customized error message. I created a section called #Exception handling for t…
- Start First, read in an input value for variable numinput. Then, read numinput integers from input and output each integer on a newline 2 after the string "quantity=". Ex: If the input is 4 …
- this is some raw data from a csv file Name,Gender,SSN,Member Date,Phone,State,Zip,Email,Credit Card,Credit Card_Number,Credit Card Exp,Gender,Favorite Radio Station,Purchases Past 30 Days,Spent Past 3…
- I have a final project for my python class and due to Covid I haven’t been able to learn much. I am using pycharm and was wondering if you could write the code upload it and then I can edit it. That w…
- # loads the necessary libraries import pandas as pd from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.tree import DecisionTreeCla…
- The record is stored in a collection of python dictionaries that looks like this: [{“URL”: “/pages/stark-industry”, “VisitorID”: “Stark”, “Time”: 1614560207243}, {“URL”: “/pages/MIT-offer-letter”, “Vi…
- Write a Python function that returns the perimeter of a polygon. Here, the polygon consists is a list of Point objects. We require the polygon to be closed. If it is not closed, the function will rais…
- How many times will the code below print “Hello World”? spam = 0 while spam < 5: print (‘Hello, world.’) spam = spam + 1 why the answer is infinite times (until the process is stopped)
- ..below . Python programming in VSCode The city of Crymland is plagued by a syndicate run by Mr. Bigg. Initially, Mr. Bigg supervises 7 thieves. The thieves operate as follows: • Every week …
- Consider the conditional proposition p → q. This proposition is logically equivalent to ¬p ∨ Use python to construct the truth table of ¬p ∨ q. Make sure it agrees with the truth table of…
- I’ve attached a python code I for the following problem, what’s wrong with my code? Given an integer n from the user . Print the first n letters of the alphabet (uppercase). Sample program output:…
- Hello experts,Can you please help me about this problem?thanks
- . Introduction: You are programming the pathing for a turtle Al in a video game: the turtle is trying to avoid danger and make it to the water. Specifically, the turtle is placed within a grid of sq…
- in python, This expression will yield which data type: 10 / 3? 2.in python, This expression will yield which data type: 11 // 2? 3.in python, This expression will yield which data type: 11 % 2? 4. …
- Write the code for a python function called updateData that accepts a loaded dictionary from PART A, a key (string), 2 whole numbers n and m, and a string that holds the name of a file on disk. This f…
- Implement the function count_until_larger. count_until_larger takes in a positive integer num. count_until_larger counts the distance between the rightmost digit of num and the nearest greater digit. …
- Answer shouldn’t be posted from another platform. I posted this question twice but was delivered copied answer twice. Generate a short Business Report, with the following sections: Introductio…
- # Problem statement 4. b # Loop over all keys and create the transfer dict structure
- no chegg Class lake A Lake object has a name (a string), a water quality rating (a string, such as ‘excellent’ or ‘poor’), and a list of all Portages that lead out of that lake • The Lake clas…
- Use requests _get_ to load the data from http://cs.stir.ac.uk/~soh/BD2spring2022/assignmentdata.php into an XML tree, then: – extract the root element as a separate variable, and display the root tag….
- A is a random 4×4 matrix that follows normal distribution, find the elements of A that are between -1 and 1, and replace them with elements of B. B =[ 0 1 2 3] [ 4 5 6 7] [ 8 9 10 11] [12 13 14 …
- Question 11 pts The second line printed out from the following code snippet will be ________. fruits = [‘banana’,’apple’,’mango’] for index in range(len(fruits)): print ‘Current fruit :’, fruits[in…
- Pratice questions need answers to understand them thank you! . Question 31 (1 point) How many times would the following loop be iterated? [ ] for i in range (1,6) : print (i). Question 30 (1 point) A…
- Create a Python program lower.py containing a function only_lower(lst) that takes a list of letters ([a-z,A-Z]) and returns a new list with all the lower case letters ([a-z]) in the list lst. The inpu…
- def repeated(t, k): “””Return the first value in iterator T that appears K times in a row. Iterate through the items such that if the same iterator is passed into the function twice, it…
- I’m Using Python Many problems in computing require a list of items to be sorted. One example is found in statistics, where the median of a batch of data is the middle of the ordered batch. For ex…
- Exercise 142h – List from string (5%) The list_str (s) function should get a string s as a parameter. It should return a list of letters, more specifically the letters in the string s that have the si…
- -How catching exceptions can help with file errors? -Write 3 python examples that actually generate file errors on your computer? And catch the errors with try: except: blocks. Inlude code and output …
- The purpose of this project is to re-affirm the atomic nature of matter by tracking the motion of particles undergoing Brownian motion, fitting this data to Einstein’s model, and estimating Avogadro’s…
- P2F = {‘Jesse Katsopolis’: [‘Danny R Tanner’, ‘Joey Gladstone’, ‘Rebecca Donaldson-Katsopolis’], ‘Rebecca Donaldson-Katsopolis’: [‘Kimmy Gibbler’], ‘Stephan…
- Dear tutors; could you please give me details about this exercise with the outputs: this is my program: def invert_dict(d): inverse=dict() for key in d: val=d[key] …
- You are going to be writing a program that will create a guessing game that is to be played with the computer. In this version of the guessing game the user will be choosing a random number in his or…
- A1-A5 are analytical discussion questions . Please review the table below: A1 . Discuss how the size of the training data influences the accuracies of the classification models using different feat…
- . … (10 rows omitted) : grader . check ("q2_5") 1 : q2_5 passed! Question 6. Write a function called poverty_timeline that takes the name of a country as its argument. It should draw a l…
- For partitions of an integer n, given a partition, describe in words an algorithm for computing the number of rows in each column. (Some background info on partitions: http://mathworld.wolfram.com…
- # Create a modified version of the search linear function defined # above to return all # occurrences of the search word in the text # An occurrence is the index of a word in the text that matches y…
- Assign total_owls with the sum of num_owls_A and num_owls_B. Sample output with inputs: 3 4 Number of owls: 7
- In [ ]: from sklearn.datasets import load_boston import pandas as pd boston = load_boston() dataset = pd.DataFrame(data=boston.data, columns=boston.feature_names) dataset[ ‘target’ ] = boston.target…
- Hello, I wrote this code: import numpy import time import copy from tkinter import * #from schelling import SchellingModel import matplotlib matplotlib.use(‘TkAgg’) from matplotlib.backends.backend…
- Problem 2: In this particular project, we are going to work on the inaugural corpora from the nltk in Python. We will be looking at the following speeches of the Presidents of the United States of A…
- how would i be able to solve such problems with nested embedded lists
- experiment "numTrials" times: 1. Take a copy of the state and measure it in the Z basis to get an outcome 0 or 1 2. Keep count of how many times you observe 0 or 1 After repeating the above,…
- Develop a function inverseArray(a) that takes a 2D-array as argument and inverses the array. You will need to inverse the rows, first and then inverse the columns, next. For instance, if the array = […
- Ask for user’s input repeatedly till the user types “END”. So, the string END is a sentinel. Count the number of vowels in the input text. Display the input line along with the number of vowels in the…
- . Problem 2 This problem is based on the article Obermeyer, 2., Powers, 8., Vogeli, (3., & Mullainathan, S. (2019]. Dissecting racial bias in an algorithm used to manage the health of populat…
- Draw a bar chart to show smoking and alcoholic habits against average expenditure
- Assume choice references a string. The following IF statement determines whether choice is equal to “Y” or “y”. Rewrite this statement so it only makes one comparison and does not use the or operator….
- what does this print? for i in range(5,0,-1): num=1 for j in range (1,i+1): print(num, end=”| “) num=num*2 print()
- . 2. Body Fat from Linear Regression. Excess adiposity is a risk factor for a range of diseases, leading to increased morbidity and mortality. Body fat (BF) can be measured by several techniques …
- EDA Exploration – This is the Dataset of Employee Attrition from Kaggle : https://www.kaggle.com/datasets/pavansubhasht/ibm-hr-analytics-attrition-dataset Please help to find Out Relationship betwe…
- Part A Different file 1. Use recursion to reverse a string. Your function must be named reverse_string, it should take in 1 string as an argument, and it should return the reversed string. Your s…
- Toll roads have different fees based on the time of day and on weekends. Write a function calc_toll() that has three parameters: the current hour of time (int), whether the time is morning (boolean), …
- Modify the username.py program (see the lecture slide) to generate usernames using the user’s first initial, followed by the initial of user’s middle name, and up to 3 letters of the user’s last name….
- I am having a problem with python but I don’t really understand it. Can you help me and explain it so I can have a better grasp on it my professor doesn’t really explain it well so hopefully yo…
- I need help solving this problem. It would be beneficial if you could answer it and provide the code used to prove the simulations. You can use anything to make the code, there are no limitations of a…
- Consider the following python code : # define sets A = {0, 2, 4, 6, 8} B = (1, 2, 3, 4, 5} print (A & B) What is the output? O (2, 4 } 10, 1, 2, 2, 3, 4, 4, 5, 6, 8} {0, 1, 2, 3, 4, 5, 6, 8} 10, 2…
- I would like to scrape the 1st table on https://en.wikipedia.org/wiki/List_of_most-streamed_songs_on_Spotify and store the results in a data frame. I then want to use the values from 1 column…
- Download the file ‘citypopulation.txt’, which contains the population of Australian major cities. The cities’ names are in ascending order with their respective population. Input: make a Python progra…
- Hi there, I am working on a python project that I am having a lot of problems with. The topics have been covered in class but we’ve never had to combine all of these concepts at once. We’ve also never…
- What am I supposed to do when I unlock documents and they’re blank and have nothing written in them? Being signed up to the course means I have access to those exact same documents, not useful, is the…
- replace the return value of the function below with the status code returned by the lambda function “MyDateTimeApplication” when called with the following payload: { “body”: { “option”: “date” } } def…
- #lab6_priority.py import random from queues import CircularQueue class Job: def __init__(self, priority = 0, process_name = None): ”’ Object for job description of various types :param priority: 0 fo…
- Python please: Complete the program to read the needed values from input that the existing output statement can use to generate information for an “Introduce Yourself” page of a class website. You …
- Can anyone help me to do the below program in python? Develop and code a guessing program, which asks the user to generate a random number in the range (1:100). The program is not being informed of th…
- Write a function withdraw(pin, d) that takes as input the user’s pin number and the dictionary. The function calls getAmount(). If the amount to be withdrawn is greater than the balance print (‘Insuff…
- Answer the following question. [=1 [=1 1:]. VI. ANSWER THE FOLLOWING: (For nos. 1 to 9. present your answers in formula form [as stated in the theorem you are using] with all the appropriate values pl…
- This question tests your understanding of Block 1 Part 2 . Design and implement a single program: to produce a simple graphical representation of a set of triangles, as shown in Figure 1. The outpu…
- What will the following program print out? x = 29 x += 10 print(x)
- I just need the code to enter the new class in my POS system. Create a new class called Item which will have attributes like below: (10 Points) UPC Description Item_Max_Qty Order_Threshold replenishme…
- I am a bit confused by this can someone explain what this means ” As stated in the announcement for this week, global variables should not be used in this project. Information for the function needs t…
- (5pt) Are these variables of such a measure type that permit to ask/ an- swer such a question? Hint: read Lecture notes https://otoomet . bitbucket . io/machineLearning. pdf/ Section 1.1.1 "Me…
- Dictionary = [‘abate’, ‘abbey’, ‘abet’, ‘abhor’, ‘abide’, ‘able’, ‘ably’, ‘abort’, ‘about’, ‘above’, ‘abuse’, ‘abyss’, ‘ac’, ‘ace’, ‘ache’, ‘achy’, ‘acid’, ‘acne’, ‘acorn’, ‘acre’, ‘acrid’, ‘act’, ‘ac…
- AI Capstone Project E-commerce DESCRIPTION Problem Statement · Amazon is an online shopping website that now caters to millions of people everywhere. Over 34,000 consumer reviews for A…
- Write Python code which displays the numbers 1 to 12 separated by tabular (tab) spaces using a loop. In your print statement make use of either sep= or end=. e.g. print(“hello”, end=’\t’)
- Please help write the code for question below. Thank you very much. ed (16) ENGG1330 – Assessments X ed (16) ENGG1330 – Assessments X M FW: Engg 1320 Assessment & X + C D ap.edstem.org/courses/61/…
- Please help me find a code. Version Features The third version of Wordpuzzle should have all of the game features implemented. The player now has 4 guesses and the game ends either when a player has c…
- import re from pyspark.sql.types import * from pyspark.sql.functions import * inputPath = “/databricks-datasets/sample_logs/” ///// These are json files df = sqlContext.read.text(inputPath) display(df…
- Use the project you have been building upon in this class and add some additional functionality. The choice of functionality you want to add is yours, and below are some options. If you think of a dif…
- list1 = [2, 5, 7, 8] list2 = [1, 2] Use nested list comprehension with list1 and list2 as input sequences to generate this list: [[3, 4], [6, 7], [8, 9], [9, 10]] So the idea is to use the numbers fro…
- I keep getting two errors for the following Python code: Must define the Artist class in Artist.py with a constructor to initialize an artist’s information. The constructor should by default initializ…
- I want to ask the second and the third question. How to display a copy of x0 nad how to display y0. please use python. Thanks. . The flgit_s dataset has 1797 labeled images of hand-written digits. I …
- Compute the mean and standard deviation of each digit in the training set, i.e., compute the mean and standard deviation of all the zeros, all the ones, etc. Your answer should display 20 images in…
- I’m designing a customized cake delivery GUI application for my python final project. Where I’m asking the user to set up their account by entering names, addresses, and payment methods the window pop…
- Which input for variable c causes “Done” to be output next? c = ‘y’ while c == ‘y’: # Do something print(‘Enter y to continue, n to quit: ‘, end=’ ‘) c = input() print(‘Done’); a. ‘y’ only b. ‘n…
- Your function must find the difference between the maximum and the minimum values stored in each element (row) of this 2-D list and store them in a new 1-D list in the same sequence of these rows in t…
- Given the code below (or a modified version of it) for gift wrapping/convex hull. Does anybody know how to make a GUI in tkinter where the user can add points by clicking the left mouse but…
- Programming with Python – Implement Depth First Search (Traversal) – Implement Breadth First Traversal Note : For your implementation, 1. Please use directed graph with 10 Vertices 2. Add arbi…
- Write a computer program to apportion the House by the method of major fractions using the lambda method. 2. Write a computer program to apportion the House by the method of major fractions using th…
- Create a program that encrypts a message into a secret code using the ROT13 cypher.
- You need to produce a list of word whose word length is an even number. you need to use a lamba expression . Hint: returning true or false based upon whether the length of the string is even or od…
- Explain how polynomial (n^k) , exponential (k^n) runtime complexity can be converted into logarithmic (logn) and then constant time complexity and the necessary change in the implementat…
- I’m having trouble with the following. I’m not use to classes, and am not sure how to go about this. I have to keep in mind the guidelines. I will be running it through a tester. What is below is only…
- a program that demonstrates a generator yielding the number of accesses made in each hour, from the beginning of /etc/httpd/logs/access_log. (Access_log any 24 hour). it looks like you should: — Ana…
- Competencies In this project, you will demonstrate your mastery of the following competencies: Write scripts using syntax and conventions in accordance with industry standard best practices Develop a …
- Python coding a function: Specific things we would like this function to do : a) Take in one input argument that represents a dataset in the form of a 1D numpy array. This array should contain a set o…
- Assignment For this assignment you will write two classes in which the second class is a child (derived) class that inherits from your first class. The classes are short and straight-forward. The prob…
- User – An Airbnb Guest Imagine now you’re an Airbnb guest and you are going to use the app to find a list of listings you want based on your search filter/restrictions. Based on your assigned price,…
- Hello, please help me with the two separate project in two pictures. Thanks
- Task: write a Python Code function that Takes as Input a FASTA File like the one on the Right and gives as Output what is described in the red writing on the left. Thank you.. def find_longest_…
- Please help this assignment is due in an hour 🙁 I don’t understand how to do it.. You own and operate two factories that process crude oil into three types of gasoline: regular, plus, and premium. Yo…
- i want you to write it in python and send me the screenshots , also i want you to send me the code so i will be able to copy and past it 1. Write a Python program that reads a text file called "s…
- Machine Learning: Fill the code Colab link: https://colab.research.google.com/drive/1HExMFxLimdY9LiRdoFFCcKFIUSMTd26j?usp=sharing Test Dataset: https://ucarecdn.com/08554f26-443f-4260-9fe3-b66d8…
- #function load_dataset import csv def load_dataset(filename:str)->dict: “””Return a list of dictionary. “”” file = open(filename) csvreader = csv.reader(file) header =…
- The code has to be in python. For all information for the question: Question in pdf format: https://drive.google.com/file/d/16-trLtKRtTJrtwb-W93XBgb2fU4cMUNE/view?usp=drivesdk The “txt” necessary for …
- . Write a generator function that generates random integers that are between 1 and 40. For this, we will use the randint() function from the random package in order to generate a random integer. . S…
- A quick note: This assignment and simulation may seem fairly artificial but has applications in genomics and other areas. Scenario Suppose you have a stick, and without loss of generality it has a l…
- Hello, I would like to make a python code for Math Quiz Create program that will help an elementary school student learn multiplication. 1) Ask the user for an integer to seed the random number gener…
- Python program to match the output please. exercise_4.py def words (text) : You can assume that "text" contains nothing but words that consist of nothing but letters (no apostrophe, no hyphe…
- When I run this code is says name ev_li.append(i) is not defined
- Write a function getAmount() that takes no input. • Inside a loop, prompt the user for an amount to be deposited or withdrawn; at this point it does not matter which it is. The amount must be conver…
- Stuck on this, Make a program that first reads in the name of an input file, followed by two strings representing the lower and upper bounds of a search range. The file should be read using the file.r…
- (b) Identify two cases where a 2D visualisation might be preferable over 3D visualisation and explain why.
- def countEvens(listOfInts): ”’ – Returns an integer value representing the number of even numbers that exist in listOfInts. – Return 0 if listOfInts is not a list type or if n…
- Hi I’m stuck with answer the following three questions. If in any way possible I can receive help.
- answer all 3 please def diff_start_end(l, q): "(list of int, list of int) -> (int, int) let q sont deux listes qui ne sont pas identiques (elles n’ont pas les memes elements) mais elles ont la…
- Question 9 (10 points) What can the following function be used for? def mystery (x) : if (x % 2 = = 0) : return("yes") else: return ("no") Checking whether a variable is a numeric …
- Insert a new column called “leaf_disease” in the soybean dataframe. The new column is sum of the values in all these other leaf-related columns: “leaves”, “leafspots-halo”, “leafspots-marg”, “leafspot…
- Which of the followings have valid function calls? a) min(max(1,2),300) b) max(abs(1) 2) c) abs(abs(max(4, 5)) d) x = abs(-3) max(x, x + 1) e) max(max(4, 5), 6) f) x = 100 abs(max(x, 10))
- do a function in Python called add, which takes a matrix and which modify the matrix by adding 1 to all the elements. and another Python function called adds_V2, which takes a matrix and returns a new…
- I want to make keras model with dynamic input. At first I want to ask you is it possible? my second question is that if it is possible and when we pad the array with zeros, it takes a lot of data volu…
- Could you please explain it in detail on how to get in each step? 2. [Weight = 6] (The three-couple-river-crossing problem continued) You will find a 3Couple. py with this assignment that solves the t…
- This assignment is to find significant temperature changes in a 12 -hr timeframe in time series data. Steps to follow are below. – Go to https://archive.ics.uci.edu/ml/datasets/Air+Quality and …
- Is there a way to program this so that instead of it being 1 large scatter plot it is 2 smaller sub-scatter plots with the same variables, while also including a legend ? The data being used for…
- Can someone check and fix my code for me please? Instruction: This exercise uses your programming environment to enhance the Web site you created last week with additional functionality to include i…
- I need help with Python. My class is Introduction To Programming.
- Heart Failure Prediction Dataset: Python Programming This is the link to the dataset below from kaggle. https://www.kaggle.com/fedesoriano/heart-failure-prediction Please answer the below…
- ”’ WK-9 PCAP SOLUTION SCRIPT Written exclusively for Python 3.4.x or above Overview: The script ingests a standard PCAP File and creates a passive asset map based on the observed UNIQUE activity and …
- Adjust create_character_document_from_dataframe and the other functions appropriately so the data incorporates the context of the line spoken by the characters in terms of the lines spoken by other ch…
- Write function that outputs the area of a geometric shape. The function should accept three variables. The first variable tells you whether the shape is a triangle or rectangle, the second variable …
- Traceback (most recent call last): File “read-text-file.py”, line 10, in with open(P) as file.obj: NameError: name ‘file’ is not defined read text ille… 4. 3. Challen… # Load our command line argu…
- plz help. List puzzles The first half of the problem focuses on lists. In particular, you will be constructing new lists from the following: pi = [3, 1, 4, 1, 5, 9] e = [2, 7, 1] We’ve given you these…
- A wholesale distributor operating in different regions of Portugal has information on annual spending of several items in their stores across different regions and channels. The data (Wholesale Custom…
- Give correct answer… And don’t copy from internet… PYTHON __ _ Need answer for 4 and 5 only 1. Create a sample code of partitioning. Use 5 as k argumemnt. 2. Create a sample structure array using …
- Create a Python program that populates an array variable, containing at least five elements, within a loop using input supplied by the user. It should then perform some modification to each eleme…
- . Guest we have two integers numbers, represented by lists of digits. Example : number1 = [2, 3, 6, 8] number2 = [5, 3, 7, 9, 0, 5] We want to calculate the sum of these two numbers: [2, 3 6 8] + [5…
- code for “task 1” (which was to import the file) is: import pandas as pd import numpy as np def load_mydata(filename): “””loads wanted data from wanted file””” data = pd.read_csv(filename,de…
- In the previous exercise we considered extracting names from an address book implemented as a list of Contact objects. In this exercise instead of using a Contact class with member variables name…
- . P1. What is the output of the following code snippet? for i in range (1,3) : forj in range (1,5) : print("= end = "") print( end="\") a
- Write a program that asks the user to enter a word. The program will then repeat word for as many times as it has characters: Enter a word: Hello Hello Hello Hello Hello Hello
- Please solve these, thanks The program is made up of the following pieces of code, but they have been shuffled around. Please write the letters in the correct order to recompose the program. After ea…
- Given two arrays, write function to compute their intersection. Each element in the result must be unique and the result can be unordered. Example 1: Input: nums1 = [2,3,3,2], nums2 = [3,3] Output: [3…
- 2-4 Discussion: The Central Limit Theorem Previous Next Use the link in the Jupyter Notebook activity to access your Python script. Once you have made your calculations, do the discussion. T…
- Hello, please help me with this problem. Please ASAP thank you so much
- . Write a python script that will ask a user for a voltage. a current, a power angle and the type power of power to compute (real, reactive, or apparent power}. The script will then output the compu…
- Given a dictionary grade Counts = \"A": 8, "D" : 3, "B " : 15, " F": 2, " C": 6} write the Python statement ( 5 ) to print : 5 01.5 A ) all the Ke…
- Suppose you are purchasing something online on the Internet. At the website, you get a 10% discount if you are a member. Additionally, you are also getting a discount of 5% on the item because its Fat…
- Write a python script called vmarchiver.py that will create a complete backup of a single VM the user specifies. The specific details of how it works are below: When this script is run, it will presen…
- Use the print instructions to display in the IPython console the results. > The professor should be able to generate all your results by just clicking the < run > Button. > Coding clarity …
- I am not sure how to approach the problem following. Please give an orientation. Create an in-script function code which applies filter to model how a deuteranope might see any image. knowing that a d…
- Write function diceprob() that takes as input a possible result r of a roll of pair of dice (i.e. an integer between 2 and 12) and simulates repeated rolls of a pair of dice until 100 rolls of r have …
- shipment={101: [1, 3, ’14-03-2020′, ’25-03-2020′, ‘Area1’, ‘Area6’, ‘Delivered’, 198], 102: [4, 1, ’18-06-2020′, ’09-07-2020′, ‘Area2’, ‘Area4’, ‘Delivered’, 275], 103: [2, 3, ’01-12-2020′, ‘None’, ‘A…
- Perform Exploratory Data Analysis on this data set using Python or R Programming language. Link to the data set: https://drive.google.com/file/d/1LsJHn5aHr8gZn3o3JvWslb33yY7Z6F56/view?usp=sharing
- P Server(The STDP ServerSide Protocol Implementation) In this step, you implement the full serverprotocol. The application server is a java consoleapplication that is listening on port 431 implemen…
- Write python program of Asome Bot code be able to have the device respond to some external input (motion, pressing a button, coming into contact with something). For example, with the AsomeBOT, it can…
- Start with the following Python code. alphabet = “abcdefghijklmnopqrstuvwxyz” test_dups = [“zzz”,”dog”,”bookkeeper”,”subdermatoglyphic”,”subdermatoglyphics”] test_miss = [“zzz”,”subderm…
- A firm that sells software services has been piloting a new product and has records of 500 customers who have either bought the services or decided not to. The target value is the estimated profit f…
- # Q4 (2 points): # Create a function, exampleFour, which takes an input array # Using a loop, populate a new array with all values from the input array, starting at the 2nd element, multiplied by the …
- Given the list data = [1,2,3,4,5,6,7] match each of the following slices to its result – I. II. III. IV. V. data[::-1] – I. II. III. IV. V. data[2::-1] – I. II. III. IV. V. data[-…
- Modify your program from Learning Journal Unit 7 to read dictionary items from a file and write the inverted dictionary to a file. You will need to decide on the following: · How to fo…
- . Generate ARMA signals in Python Reminder: (1 – 41B – Q2B2 – … – PpBP ) Zt = (1-0B -0,B2 – … – 0.B )at O O from statsmodels. tsa. arima_process import arma_generate_sample AR = [1, -phi_1, -phi…
- Which of the following would cause an error in a program? attempting to store a floating-point value in a variable with Integer data type attempting to store a floating-point value in a variable wit…
- This week, you are finishing two functions inside this small working program As in previous weeks, don’t be put off by the size of this .py file. . . it is mostly comments and explanation. Rea…
- I was looking at computer science problems and came across this one (seen below) and I cannot seem to solve it as the input data is a list of strings which keeps messing me up. def clean_data(data: Li…
- # Write a function to find the minimum spanning tree in a graph # Graphs will be input as an list of edges. Each edge will be a tuple of the form (u,v,w) # Where u and v represent the endpoints of an …
- If you guys dont mind could you please tell me why show up no such file ?? script1. sh pi@raspberrypi: -/week5 $ . /script. sh bash: ./script. sh: No such file or directory pi@raspberrypi:~/week5 $
- Please do not use advanced commands when coding this program and use python. thank you. For example, input might be: 3 John Jim Joe Secret_passWord 12345 G$a-4(ztY Once that is read in, you should the…
- I am taking ITI1120 and I have an assignment on social media and I kindly need assistance as soon as possible
- Could you please teach me in a way by not using ‘dictionaries’? 1. [Weight = 5] (Secret communication) Messages can be communicated secretly via a cryptographic mechanism. A plaintext message will be …
- PYTHON TASK A Patchwork Sampler Your task is to write a program to display patchwork samples, of the form given below: A patchwork sample is made up of patches of two different designs. Patchworks a…
- I am having trouble understanding how to create this user-defined function and the TA’s do not have hours available that I can attend. the power function that is listed to be used above I have as……
- . Numerical Methods in Engineering using Python 3 po talaga yung subj. Parang ipinag halo yung Numerical Methods sa coding po pero need pa rin yung manual solutions kasi yun nag se-serve na pang verif…
- creating this program using python. create a set of parallel arrays that store: – Name – Zip Code – Test Result Your program should be menu-driven and look like the following: COD Virus Tracker 1 – En…
- help modifying this code # 1) Modify the code below to calculate the effect of a 99 degree (pi/2) rotati n # around the x axis on the following points: 1,1,1 theta = pi/2 # define theta, the angle of …
- program that takes as input two opposite corners of a rectangle: the lower left-hand corner (x1,y1) and the upper right-hand corner (x2,y2). Finally, the user is prompted for the coordinates of a thir…
- Rewrite Chapter 6 Programming Exercise 12, using lists and/or tuples. Use at least a list (or tuple) for the days in each month, and a list for the steps taken per day for each month (resulting i…
- Assignment Description: There are 2 questions in this assignment. This assignment will give you practice with interactive programs, if/else statements, list and classes. You are required to submit a r…
- I’m having trouble with this question: Convert Newton’s method for approximating square roots in Project 1 to a recursive function named newton. (Hint: The estimate of the square root should be pas…
- How to write code and use child and parent processes in python programming ? 1) Create new child process with syscall and print its PID. 2) With the child process, download the files via the given URL…
- USE spark.sql(). In [ ]: from pyspark import SparkContext from pyspark. sql import SparkSession from pyspark. sql . window import Window from pyspark . sql . functions import col, expr when, \ desc, f…
- Need it today please. Exercise 4: Classes, Namespaces and Import 1. What is an object? (1) a) A template for creating instances. b) A collection of data and functions that operate on that data. c) Som…
- Python programming 40. Write a Python program to get the name of the host on which the routine is running. 41. Write a Python program to access and print a URL’s content to the console. 42. Write a Py…
- How do I solve this using Trees? (python). IWrite a function duplicate_link that takes in a linked list Ink and a value . duplicate_link will mutate lnk such that if there is a linked list node tha…
- What is the difference between del() and remove() methods of list?
- Write a Python program that read a whole number from the user. You program should then print “negative” if the number is negative, “positive” if the number is positive, and “zero” if the number is zer…
- The year is 2400. The ride-hailing giant Suber have cracked self-driving cars and have a fleet of n of them at their disposal. All of the cars are currently on Olde st (the only street in the country,…
- This program is part 1 of a larger program. Eventually, it will make ASCII art using a modified version of Morse code. We will be making our own Art Morse Code Our Art Morse code has the following cod…
- In this project, you will design, write, test and submit your own program. The program can be about anything that you are interested in or know about; for example: football teams, farming, movies, car…
- Questions 1. Assign each step below to a new variable: a. Create an array with values ranging from 0 to 24 b. Reverse the array (first element becomes last) c. Reshape array to 5×5 2. Create…
- python code with line by line explanation using comments. explain the code thoroughly. . Q4. Given a list of people objects, create a function sort_attribute() that sorts the list by an attribute na…
- The height (h) of an object is given by the following formula: h = v0 * + + 0.5 * a * t Where VO is the initial velocity, t is the time, and a is the acceleration. Assume that for a specific problem, …
- A teacher wants a program to give extra points to students who fail a test. Use Python program to do the following: (a) Ask the user to enter 5 test scores. Store the scores in a list. Display the li…
- How can I replace one value with another in python? This is what my code and output looks like. Meanwhile my output is supposed to look like this. If you could explain this to me in excruciating detai…
- For the following functions, must use concepts from the lecture on writing your own search and optimization loops. May not use Python functions such as min(), max(), in (as used to test for an item …
- def cost_to_hike_naive( m : list[list[int]], start_point : tuple[int, int], end_point : tuple[int, int]) -> int: “”” Given an elevation map <m>…
- Many user-created passwords are simple and easy to guess. Write a program that takes a simple password and makes it stronger by replacing characters using the key below, and by appending “!” to the en…
- Please solve the python question. A problem you are trying to solve has one data structure named dict1 in the starter code below. You have been asked to do the following: • Use a for loop statemen…
- I need help with python regarding two tailed hypothesis tests and confidence intervals
- 19 LAB: Warm up: Basic output with variables This zyLab activity prepares a student for a full programming assignment. Warm up exercises are typically simpler and worth fewer points than a full p…
- Question: A product module controls a vehicle park of known limit. Calls to the module’s systems enter () and exit() are set off when vehicles enter and leave by means of the boundaries. Give pseudoco…
- #create the function named exampleSix,that will have three input parameters array, number, string #remove an element from input array under the index indicated by second input parameter #replace secon…
- the benefits of using scripting languages like Python, using the example of Python-Nmap from xael.org and another scripting language such as PowerShell
- Create a Python program integers.py containing a function only_ints(lst) that returns a new list with all the integers in the list lst that contains both integers and floats. The input list lst should…
- Here is the python exercise and the exercises’s situation. ——————————————————————————– Exercise (1) Lab Exercises Situation: Hints of Exercise (1) …
- Write a method named boolean_list that receives as input a list of Boolean values and returns True if all the values are True. Otherwise returns False. For example: Test Result print(boolean_list([…
- How to dosimple function that takes in parameters in python?
- Create a Python function, called nonIntegers (characterList), which takes a list characterList as a parameter, and which returns a character string. The elements of the list listList are all of type s…
- program that prints all the composers in the list [‘Rzewski’, ‘Ruggles’, ‘Carter’, ‘Stockhausen’, ‘Stravinsky’] whose name has at least 10 characters. >>> ========================= REST…
- Open the taxformwithgui.py file and GUI-based program that implements the tax calculator program shown in the figures below. “”” File: taxformwithgui.py Project 8.1 A GUI-based tax calculator. Com…
- You are given 3 dictionaries: dic1={1:10, 2:20}, dic2={3:30, 4:40}, dic3={5:50,6:60}. Now make another dictionary with dic1, dic2 and dic3 which is equal to {1:10, 2:20, 3:30, 4:40, 5:50,6:60}
- # import the numpy library… import numpy as np ######################################################### # Convert a list of lists (l) to a numpy matrix and # return the matrix. #################…
- Please download default_credit.csv from blackboard, try to build a decision tree classifier Using 10% of the data as testing data Display the accuracy score of both training data and testing data Plea…
- Python: Flatten the Curve! A virus has hit COD and our class is being called on to assist in flattening the curve! The key to this will be tracking who has been tested and what their test results are …
- Classify the employees into 3 categories. Category 1 : employees below 18.5 bmi – underweight Category 2 : employees with bmi in the range of 18.5 to 24.9 – fit Category 3 : employee with bmi over…
- program that prompt the user to enter five positive numbers and calculate the average. When a negative number is entered, program will be terminated. Sample output: Please provide five nonnegati…
- Transform the Elephant! (By using python on Jupter!!!) This project relates to the classroom material on tranformations, but also gets you a little acquainted with 3D tessellated meshes….
- Write a script using a computer in the NETLAB+ environment. The file must contain a minimum of ten lines (commands) and a maximum of twenty lines unless the instructor gives permission. Each line coun…
- Hello, can you please help me with python coding on the second part? def dense_forward(x_input, W, b): “””Perform the mapping of the input # Arguments x_input: input of a dense layer – np.array of …
- I want research paper on the following 4 topics individually based on following requirements: I want it as soon as possible. SQLite Oracle Database Lite Data Warehousing Database Security ?…
- For this activity, I need the main program and a driver program so I can compile the code. Also, please add some precise comments because I will use it a script for the video that I will make. Thank…
- Write a short script to import a small tabular, text based data set of your choosing. 2) Write a 1 paragraph description of what conditions must be met for the central limit theorem to hold.
- You need to convert data set into at least three graphs and come with basic Dashboard. You have to use any data set for the analysis. The example data set can be from any open source location includin…
- Show each step of turning list [42, 35, 71, 34, 76, 39, 77, 47, 6, 20] into a min heap. The following is an example of heapifying [55, 73, 17, 41, 83, 89, 7, 28, 10, 69]. The following is the solution…
- I am having a problem getting a method to be recognized in Python
- Create a dictionary from the two-dimensional list of M elements. Specify the index in the list which needs to be act as a key for this dictionary. Finally, print the dictionary.
- Assume no “taxation”, compute the PageRanks a, b, and c of the three pages A, B, and C in Figure 1a, using iteration. Start with the “0-th” iteration where all three pages have rank a = b = c = 13 …
- Exercise 2 (2 points). Write a function to parse US phone numbers written in the canonical “(404) 555-1212” format, i.e., a three-digit area code enclosed in parentheses followed by a seven-digit loca…
- This exercise focuses on some simple Selection and Loops . While and for – counters, accumulators . Selection statement Write a program that calculates the weekly payroll for your employees. Your prog…
- HI I am having problems with maze solving intro to python. On step 10 I can’t figure it out by looking at the answer. Do you understand the answer to step 10?
- Construct: dot-matrix “bitmap” display emulator, and a shape drawing program. The dot-matrix display is 80 wide by 24 tall, so it has 80*24=1920 bits. It only has two colors: off and on. Off will be r…
- You’ve surely seen a seven-segment display . It’s a device (sometimes electronic, sometimes mechanical) designed to present one decimal digit using a subset of seven segments. If you still don’t know …
- Hi, I’m working on M5 assignment 2 for intro to programming (python). I am completely stuck on how to start my pseudocode for “write the pseudocode to process tasks.” Really need help understanding w…
- Task :: Data Exploration Given the dataset and the starting code answer the questions stated on this task. Questions + Analysis 2. Data Cleaning Write cleaning function such that: Preserves the name o…
- Write a script MyProduct with loop that will create a vector x and compute the following product n nix(i) i=1
- Write a Python program, implementing encryption/decryption without using any special security packages(means do not import dictionary like from cryptography.fernet import Fernet) . The program shoul…
- Task 2: College dataSubtask 2.1: Collecting Data The data set usnews.csv, contains data from the 1995 US News and World Report on colleges and universities in the US. Dataset: “US News College data,” …
- Please explain but to my understanding you make an extra list and each item appended to the list should first be check to see if its in the list. I am no clue about effecientness. Describe and analyze…
- Thank you!!!!1 4. (2 pts each) Assume that the following sequence of statements has been entered at the Python prompt. Note that subsequent statements may change the value of the variables (e.g., frui…
- Please explain clearly…Thanks Graphics in Python using the JES environment,, you can get help https://studylib.net/doc/9274096/python-graphics—villanova-department-of-computing-sciences
- I have two columns in excel file one related to the product id (some ids are repeated in the different raws), and the second column is related to the sell amount. I have more than 350,000 rows in my e…
- Write a Python program for data analysis, to test the program’s algorithm and to show that it meets some given requirements. You are also told that: D1. The real data will be made av…
- . Question Theme Park is one of most attractive places to be visited especially during the school holiday in Malaysia. [jg-5g Park is a theme park that will open eady next year in Selangor. [3353. P…
- Define the following Haskell functions with function signature. Euclidean distance between two lists: Create a function eucl_dist to compute the euclidean distance between two vectors. Each vec…
- Suppose that the similarity between an object O and 6 other objects in the database A,B,C,D,E and F are as follows: sim(A,O) = 0.1 sim(B,O) = 0.3 sim(C,O) = 0.85 sim(D,O) = 0.8 sim(E,O) = …
- CREATE PY OF THIS AND SHARE ME THE CODE AND THE SCREENSHOT OF CODE 2. Using NetBeans, create a Java project named MovieTime. Set the project location to your own folder. 3. Import Scanner, Queue, and …
- This is what the code output is supposed to look like. The questions is: “Your friend is writing a Python program to randomly provide the user with an inspiring quote. Unfortunately, your friend is …
- Fill-in the ‘print_meals’ function so that is recursively generates the output shown in the image below: main.py x E Console Shell # recursive function for printing out meal plans def print_meals(meal…
- Comparison The output figure should look similar to the following: Moon orbit 0.002 0.001 – Ay (AU) 0.000 – -0.001 – -0.002 -0.002 -0.001 0.000 0.001 0.002 Ax (AU) 375776.2369038.qx3zqy7 LAB ACTIVITY …
- 2.4 Dynamic Programming Your goal in this section is to implement dynamic programming in the MiniMax search algorithm that you developed in previous sections. For a reference to dynamic programming,…
- Here is the code that needs to be edited according to the instructions in the pictures: # add necessary imports import numpy as np from turtle import Shape, Turtle, mainloop, Vec2D as Vec G = 4*np….
- Python question Need a recursive function contains_element(my_list, elem) that takes a list of items as input, and returns True if my_list contains the element elem. >>> print(contains_ele…
- Answer the following questions, with explanation 1. What will be the output of the following Python code? def foo(k): k = [1] q = [0] foo(q) print(q) a) [0] b) [1] c) [1, 0] d) [0, 1] 2. How are v…
- I need this in Python I’m stuck please help!!! Example 4: Input: tree. Tres tRes Duo duo unus 2 Output: Duo duo For simplicity, you can assume that there will be only one distinct string for each freq…
- Need where it says, “YOUR CO`DE HERE”. Must run smoothly according to tests. No additional CO`DE needed besides the CO`DE after “YOUR CO`DE HERE”). https://pastebin.com/qTrwFAdf class HolyQueens…
- help with APA Type the statements below into your Python interpreter. For each statement , copy the output into your Discussion Assignment and explain the output . Compare it with any similar exam…
- Question: Clinical Dataset: patient: the patient ID number visit: the visit number of the patient (1, 2, 3, or 4) v_date: the date of the patient’s visit weight: the patient’s weight at the visit gend…
- I’m unable to make my python code loop and I’m not sure what I’m doing wrong. This is my code: def main () : print( ‘Process a series of integers entered at the console. \n’ ) count_even = 0 count_odd…
- Please answer the following question Question 1 (20 Marks): . Write a Python script to calculate the greatest common factor (or divisor) of two integers. There are different ways to solve this problem…
- IDLE has both an interactive mode and a script mode. You must use the script mode to develop your script. Your script must use meaningful variable names and have comments that describe what is hap…
- My specific question: I did not include all the sample runs because this would be to long, but if needed I can do so. I am a bit confused as to how I should start this off. Do I initially use __ini…
- Please write three individual Python programs (py files) to address questions 1, 2, and 3. Lets write a program that calculates the nth power of 2 starting from 1 in terms of (2, 2 1 , 2 2 , 2 3 ,?…
- How to write a function to check time clash without using ‘import’ For example, we have a file containing Mon ABC123 10:00 11:00 Tue COMP1117 16:30 18:30 Thu COMP2118 10:30 12:30 Thu COMP2118 …
- Write a program that takes as input two opposite corners of a rectangle: the lower left-hand corner (x1, y1) and the upper right-hand corner (x2, y2). Finally, the user is prompted for the coordinates…
- import pandas as pd df = pd.read_csv(“fashion(1).csv”) df.head() from nltk.sentiment.vader import SentimentIntensityAnalyzer def polarity_scores(): sid = SentimentIntensityAnalyzer() for sente…
- Please assist with the creation of this code. # Q1 (1pt): # Given the following data associated with customer credit card # Convert the lists to a list of tuples data_columns = [“CLIENTNUM”,”At…
- Python Programming Can someone please help me fill in these answers in python. Images of the required output can also be seen. Link to csv files ——>> https://gofile.io/d/N0a3WO I’ll ap…
- Please write code for following questions: 9. There is a list of lists, can you convert it to numpy array? And use numpy methods to find out the largest number, smallest number and their index. Write …
- “””CSC148 Lab 11: More on sorting === CSC148 Winter 2022 === Department of Mathematical and Computational Sciences, University of Toronto Mississauga === Module description === This file contains a mu…
- how to check if a number is a happy or not? in python 2x and cant use set and map… for example 1579 is happy number. 1^3+5^3+9^3=1+125+343+729=1198 1^3+1^3+9^3+8^…
- True or False The example “Sophia”=name follows the correct format when assigning values to a variable.
- Here in Canada, we watch our neighbours to the south with great interest when it comes to their elections. Their electoral system is very different from ours – at the end of the process, an Electora…
- assert(innerThree(“and”) == “and”) assert(innerThree(” can d”) == “can”) assert(innerThree(“c and y”) == “and”) assert(innerThree(“c and ys”) == “and”) assert(innerThree(“12 345 678”) == “345”)
- Will give a thumbs up if answered! Please answer ASAP! The Anat19 file is too long to post in here so i provided a google doc link of the file so you can access it: https://docs.google.com/docum…
- import pandas as pd df = pd.read_csv(“cleaned_survey-1.csv”, index_col=0) df.drop([‘Expert’],axis=1,inplace=True) #df.drop([‘Languages’,’Expert’],axis=1,inplace=True) pd.set_option(‘display.max_col…
- # Randomly generates a binary search tree with values from 0 up to 9, and displays it growing up. how?? def print_growing_up (tree) : pass # Replace pass above with your code # Possibly wr…
- The datatype of the array created by NumPy in Task 1 is unstructured. This is because, in the default setting, NumPy decides the datatype for each value. Also, the output in Task 1 contains the header…
- Homework 1.3: Decrypting when you are not given the key, i.e., cryptanalysis In your tarball in the withoutkey directory, you’ll find three files: ciphertext.txt – A ciphertext encrypted with a Caesar…
- Welcome to my app EMPLOYEE DATA ENTRY Manager or Representative? (m/r): d Invalid selection. Continue? (y/n): y Manager or Representative? (m/r): m First Name: Frank Last Name: Wilson Email A..n@conve…
- Please, help solve these problems. Thank you. Do the plots show any trend? If yes, is the trend what you expected? Why or why not? See Steps 2 and 3 in the Python script. What are the coefficients …
- Problem 5B Implement a program that draws the perimeter of the Treasure Island and Flint’s path within the island. Flint’s path is composed of the symbol “o” (lower-case letter o), and the island pe…
- Part 3: Identify the Potential Zombies We will define a potential zombie to be any person that might be infected but we don’t know yet. That is any person that doesn’t appear as sick, i.e. a first ent…
- Use numpy to generate an array (named x) with 5 rows and 6 columns and populate it with random samples from a uniform distribution over [0, 1). Then, calculate y using the following formula: y = (1-x^…
- Think of your own question and create a chart/graph to answer it •••Your own question:•••• Answer supported by Chart:
- helper: def transform_string(s: str) -> str: “””Return a new string based on s in which all letters have been converted to uppercase and punctuation characters have been stripped fro…
- How do i assign the output to show as payoff_months? Write a program to determine how many months it will take to pay off a $10,000 car loan with 4% interest. Choose your own monthly payment.
- import random num_sixes = 0 num_sevens = 0 num_rolls = int(input( ‘Enter number of rolls:\n’ )) if num_rolls >= 1 : for i in range(num_rolls): die1 = random.randint( 1 , 6 ) die2 = random.randint( …
- I need help writing a function which removes the specified key from a dictionary object, the function should accept a json file path and specific key as parameters. The json file should be loaded an…
- For the following function, identify the loop invariant, the loop exit condition, and the loop post-condition which shows the algorithm’s correctness. 1 ) def is_palindrome (string) : “”” Input: A str…
- i need help with this using R language the file data.xlsx.. 0 Steps Step 1. Numerical Differentiation Differentiation is widely used in many applications to find rates of change. It allows us to fin…
- I need help with this homework Objectives By the end of this exercise, the student will have demonstrated the ability to Write a DateTemp class encapsulationg data Write a program that creates the Dat…
- ew Tools Education 10. Impleme.. Terminal func.py x test.py func.py name.py Collapse E2: Writing an If-Else-Statement A function to extract names from e-mail addresses. W N 10. Implement the Function …
- Question-1 (10 points) Consider the following singly linked list data structure, implement a method find_middle() that finds and returns the middle element in the list. What is time complexity of y…
- Suggestion : review the Socratica video on random walks and Monte Carlo simulation : https://www.youtube.com/watch?v=BfS2H1y6tzQ Suppose you have a 10 x10 grid where each coordinate is in the range 0 …
- “””Q3: STUCK series called ‘directors’ that contains each director’s name and his or her average rating. Print out the type of your variable. Use the ‘directors’ series to find the average rating …
- a Python script where you import unittest and a subclass of unittest.TestCase to test the Employee class from the module skills.py (see link in assignment; please look at the docstrings to get a sense…
- Write pseudocode for a Python program that makes 100 dice rolls with a single 6-sided die and displays the number of times each side appeared. Turn in the two modules for the pseudocode for the follow…
- Ex 6A-3 Loading from txt Load the file data3.txt to a dataframe named df3. There are two numbers in each row separated by a space. Create two lists: one for the first element of each row and one fo…
- Write a python script in Jupiter(.ipynb) that calculates a factorial: n! = n*(n-1)*(n-2)* … *(1) using a: – while loop – for loop User should be able to ask for different numbers as a part of inp…
- What will the output be when the following Python code is executed given that the user enters 8 for mynum1 and mynum2? def CalcQuotient (num1, num2) : N P Quotient = float( ) W quotient = num1/num2 4 …
- Please help in python program which I can execute in Jupyter notebook. Below are the AI Fairness 360 (aif360) dataset to detect and mitigate bias. https://www.dropbox.com/t/aiBPRPrhMK0TE5Wa https…
- Task#1: Write a function called print_employee_info(), which accepts ‘name, salary, job_title, and company’ as parameters, and then print their values. Pass the values to these parameters using keyw…
- Hello working on an assignment and I am having issues with some errors. I have listed the code, assignment instructions and screenshots of my errors. I need help with the errors so I can know where to…
- Just need help with the problem below with a quick explanation. Thanks
- The following largest function should return the largest number of the list. But there is a mistake in the code and it returns 4 instead of the largest number 89. Please fix the bug. ## …
- Instructions Read the problem description below. Create a decomposition and a list of inputs and outputs. Make sure these are clearly marked at the beginning of your program and commented out so that …
- Please help me with this Computer Science problem. The program can be coded in Java or Python I have attached reference code for both. Thank you for your help. Attached are the details and the code in…
- To earn points, your solutions must use the String techniques covered in this Module/chapter. Part A Create a program in a file named letter_count.py . Prompt the user to enter three different words o…
- Using the prepared block of code at the bottom of this question, complete the argparse code to allow this script (curtainsforyall.py) to take the following information on the command line: The number …
- This if statement is meant to check if the string ‘v’ starts with a vowel and has any vowels in it. If it doesn’t start with a vowel and has no vowels in it at all, you can just add (‘we’) at the…
- i WANT AN ANSWER WITH NEW EXAMPLE AND EXPLANTATION THOUGHT THAT WAS THE REASON I PAY MY MONEY FOR THE PRVIOUS QUESTION?
- Given the age of the child at the start of the RESP, the monthly amount to be saved, and the annual rate of return of the investment, your program calculated the total amount of the RESP when the chil…
- I NEED PYTHON CODE FOR JUPYTER NOTEBOOK PLEASE. The goal of this topic is to model the trajectory of a projectile on a rotating body with an atmosphere. In other words, you will now have to account fo…
- On the left is the assignment I only need solution for 3,6,7 the txt. file is on the right. Please show work and include correct indents. The file named "QA_Pairs.txt" is a corpus created by…
- This is an R question.. Exercise 3 (R) 2 In this exercise, we will examine the distribution of %£ a) (2 points) Run 50 iterations of the following procedure. Plot a histogram of the distribution of 1…
- using OSmodule , explore the following functions and execute the command 1. Write a command to create a new directory using OS Library 2. Write a command to delete the existing file
- a) Explain the following storage disks Zip disks ii) Jaz disks b) Give four examples of optical disks….
- When I press “run” it only displays the first two lines. See picture attached. Payroll ) Payroll.py . Payroll G . Q 1: Project Project – Payroll.py X Payroll ~/PycharmProjects/Payroll print ("Tar…
- Explain what will the Python interpreter do with the line 12 to 18. (b) What would be the value of total_s at line 19 if the sample “rec” in the docstring is used? QUESTION 1 Consider the followin…
- Match these regular expressions to what print(match.group()) would print, you can reuse any answer. Fill in the blank with the letter indicating the correct output, if you don’t fill in a letter in…
- This code below which I have created will print certain small numbers like “five” and return 5, but won’t work with numbers that require two words like, “five hundred”. it will return “None”. I need h…
- Random number generator program ! Please develop a python source code that generates random number when the user press a key. You will use the Python library to import modules. When the user presses a…
- Wondering if the answer is 4 and if I just type 4 in the box I need example how to do it. The Operand + can be used for both strings and numbers. Code is read from left to right. If there are () they …
- Design an application that has an array with at least 20 integers. The Random( ) function can be used to populate this array. The application must allow the user to enter an integer value and then ch…
- Please provide solutions to the question . Free to use any method from python . Thanks in advance. . Employee .XLSX 4 File Edit View Insert Format Data Tools Help Y – 100% View only V H9 fx A B C …
- Why are these two not the same? The first 1 only repeats 1 number vs. the second one repeats the entire list. s = [“Hello how are you”] def count_word_lengths(s): 1.) #for x in s.split(): …
- Please convert the following matlab code to python code. (Data link is at the bottom.) clearvars; close all; clc; load(‘irf’) irf = IRF; % get block Toeplitz matrix h = IRF; N1 = round(size(h,3)/2)…
- For this assignment, I need to: Utilize looping to make your Python script for Functionality 2 (developed in Week 2) to run constantly. Separate Functionality 1 (developed in Week 1) into the followin…
- Write a while loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The loop should ask the user if they wish to perform the operation again. If so, t…
- You have a drone that can fly for a distance of D before it runs out of battery. There are N charging stations that can fully charge up a drone. Write a program to determine whether there is a way to …
- Once you complete this assignment, submit your findings in the following document: Report.docx Instructions You’ve been provided full access to the network and are getting ping responses from the CEO’…
- D Question 4 5 pts The type conversion function can be used to convert a value of one type to a value of another type after input. ch True False oster
- Implement Python code for a decision tree with the following data:. Let status he the class label attribute. status senior junior junior junior senior junior senior senior junior senior junior age 31….
- how do i put functions, getAIshape, getPlayerShape, and judgement into a rock-paper-scissors program game?
- Exercise 5: Ball Capture by Net Our graphs show no interaction of the ball with the net. To fix this, we’ll assume that once the ball passes through the net, it is deflected and falls vertically unde…
- Using Python, Juypter Notebooks The instructions . Digital Real Estate (20. X M Week 8 | Project 4 X DE Project 04 Instructions X Complete the followin X C In Python: Part 2: Filte X Course Hero …
- (Geometry: area of a regular polygon) A regular polygon is an n-sided polygon in which all sides are of the same length and all angles have the same degree (i.e., the polygon is both equilateral and e…
- This link has my code and the example output https://files.fm/u/vpncrxvcz My output is : barely -> FOUND carats -> FOUND confabs -> FOUND corepulent -> FOUN…
- . Problem 1. (2 + 7 + 2 + 3 = 14 points) Influencers and pressure groups You work for a public relations firm and have acquired complete information on the Washing- ton DC lobbying network. In parti…
- Fit the iris dataset into a KNN model with neighbors=5 and the category of observations passed in predict argument new_observations. Return back the target names of each prediction (and not their enc…
- Write a pseudocode and python function to find the largest of three numbers.
- Modify the examaverages.py program included with this assignment so it will also compute the overall average exam grade. E.g if there are 3 exams each student must take and the user enters the followi…
- Battleship! Assignment Summary: Battleship is a children’s game where players guess (x,y) coordinate positions of the opposing player’s ship pieces in a 10×10 grid. For the official Hasbro rule…
- In mathematics, a Diophantine equation (named for Diophantus of Alexandria, a third century Greek mathematician) is a polynomial equation where the variables can only take on integer values. Although …
- Hello can you please help me with this question: Give an example of python code for race condition and critical section
- Commonality between strings set up quite intriguing problems. A character is said to be fruitful if and only if its a part of all the Strings in the given list. Given a list of Strings, output all suc…
- I need help with following: Create a table of Sorting Algorithms for use as a personal reference or to use if you were explaining algorithms to a peer or coworker. L ist the four sorting algorithm nam…
- How to write a function flip(binary string) that takes a binary string (a string containing only 1s and 0s) and returns a new string where every bit has been flipped? Does the string can be changed?
- Please help with the following questions: def exercise02(new_observations): ”’ Data set: Iris Fit the Iris data set into a kNN model with neighbors=5 and predict the category of observations passed i…
- Problem 4.4 Purpose: Use nested for loops to solve a problem in geography. Credits: This problem is modified from one due to a former undergraduate student, Kyle Kaliebe. Similarly to how one…
- #In the previous problem, you were given a list of integers #representing the amount of rainfall on each of multiple #days. Somewhere in the list was the number -1. You were #asked to find the average…
- Please see attached i’m not sure what step i’m missing.
- In the following dataset, create a decision tree using the Gini Impurity. You are a car seller and have 29 cars in your inventory. Each car has 3 features, and you want to find out how these features …
- Problem 1 – digits.py: Sum of digits [10 points] Write a function sum_digits() that takes a nonnegative integer n as an argument, and returns the sum of its digits1 . For example, for input 153 your f…
- Replace None with next element in the list (python). python:1. find ‘s’ in mississippi 2. uncommon words 3. replace none with next element in the list.
- Ramu wants to store 1 million images, 2 million audio files, and 1 billion documents in a structured way in his computer. His computer has no limitations on memory nor processor speed. His computer us…
- Create FLOWCHART and a PSEUDOCODE for each problem. Use the information below to create pseudocode (which can be a text-based description for solving the problems) and a flowchart (using flowchart sym…
- write one function named get_elements. This function should have two parameters. You can assume that the first will be a dictionary with strings as keys and ints as values. The second parameter will …
- no copying from chegg Below is functioning code for a circular doubly linked list. I need assistance adding in sorting algorithms and then outputting the testing of those algorithms to a .csv For this…
- Mobile Solutions: Look into the future to see how the use of device sensors will shape and impact society at large as well as the personal lives of individuals.
- Require a driver class to test the Circle class definition. Step 1: Create four Circle objects choosing appropriate values for the attributes and print out the four circle objects. Step 2: For each Ci…
- . Problem 1 – Rock Collector You’yejust joined a research lab through the school of geosciences and your first task is to go out and collect some rocks. The lab needs a large quantity of rock in…
- A Python program that constructs two 10 ×10 matrices M and N of integers. The first matrix M is a 10 ×10 matrix of integers such as 𝑀[𝑖,𝑗] = 𝑖∗j notice that i and j start with 0). The …
- Create a program to calculate the number of seconds since midnight. For example, suppose the time is 1:02:05 AM. Since there are 3600 seconds per hour and 60 seconds per minutes, it has been 3725 sec…
- thank you Use pytest-bdd to write pytests that are associated with the Gherkin Scenario below. Scenario Outline: Valid user input for retirement date Given The program full_retirement_age.py is …
- How do i code this in the python notebook while explaining each step. Please help 🙁 . Numerical Integration Using the trapezium rule, we can calculate the integral of a functionjrx), between the li…
- Personal Loan Acceptance. Universal Bank is a relatively young bank growing rapidly in terms of overall customer acquisition. The majority of these customers are liability customers (depositors) with …
- 1, A program that read a sequence of integer inputs and print the cumulative totals. Input: 1, 7, 2, 9 output: 1, 8, 10, 19 2, A program to convert the user entered temperature in Fahrenheit to the te…
- I need help in the worst way. I do not know what I am doing. One lap around a standard high-school running track is exactly 0.25 miles. Write the function miles_to_laps() that takes a number o…
- I need help for both question 1 and 2 please. Dataset screenshot:
- Question No : The Block Grabber script is a simple script (Python) that runs on a computer. For initial prototyping, you can use your own personal computer. For a “production” server, the server shoul…
- . Write a program that generates 10 random numbers between 1 and 5 and create a dictionary called numbers where it stores how many times each number was generated. Demonstrate your program three tim…
- . 1. In the given data set, identify the number of missing values by column; treat the missing values by the following two methods: . keeping the rows with valid values . filling the missing valu…
- The first function you will write should be called ‘whatTypes’. Your function should take one (1) argument, a list. The function should return one (1) list containing the data types of each of the mem…
- Python Issue code check or you can do your own code to achieve these 9 outputs as required by the question, your output needs the same as the “Expected output ends with”. Thank you. The questi…
- . Write a program that uses pandas to plot a regression line, that is, the line with the best fit through a collection of points. First ask the user to specify the data points by clicking on them in…
- Good Evening, Just need help on this one, any recommendations as to which regular expression will be good to use to print the data to be more readable? – after I run it, everything comes together, see…
- Create a Python programs based on week 6 pseudo code/steps and requirements. You must use loops, do not use function call Sample output of the list should be something like this Get the supermarket…
- Hi can you help me to finish it, I need help to set up this homework, EXTRA STUFF HERE, suppose to add to complete it, PLEASE DO NOT COPY, please explain your codes. thanks. In this homework problem…
- Write a program with total change amount as an integer input that outputs the change using the fewest coins, one coin type per line. The coin types are dollars, quarters, dimes, nickels, and pennies. …
- Please I need a step to step solution to this question. Thank you. b Activity 2.2B: Working with Strings Working with Strings main.py + 1 # Write your code here A You will create a Python script that …
- def update_elevation(elevation_map: List[List[int]], start: List[int], stop: List[int], delta: int) -> None: “””Modify elevation map elevation_map so that the elevation of…
- Enter today’s day: (user enters 0) Enter the number of days elapsed since today: (user enters 31) Today is Sunday and the future day is Wednesday
- Hello working on an assignment and I am having issues with some errors. I have listed the code, assignment instructions and screenshots of my errors. I need help with the errors so I can know where to…
- . CHALLENGE ACTIVITY 5.10.1: Enter the output of break and continue. 375510.2350218.qx3zqy7 Jump to level 1 V Type the program’s output 2 Input = int (input () ) b = int (input () ) 2 c = int (input…
- Question 5: Squared Difference We discussed the square function in the lecture. Using the square and mean functions provided, define a new function called variance that calculates the varian…
- program to read the input lines and process them. End the program when current line has a word “bye”. After reading each line, find the total or average or min or max of all the numbers in the line. G…
- Write a block of code to implement the following flow chart.. Start Prompt the user to input two numbers Store the numbers as num1 and num2 num1 = 0 AND Yes num2 = 0 val – 0 num1 -1 OR Yes num2 = 1 va…
- Part 6 (15 points) – Use a list of stop words to filter out frequent words Save your result from Part 5 as counter6.py. The file “stop_words.txt” contains a list of “stop words” to skip words which ar…
- Hello, I am learning Python 3 and I am struggling with the following practice problem. I got it to work partially with my code, but not all the way. I want to have my t_t_c function take an in_file (f…
- How to implement DecisionTree’s learn and classify functions I created some utilities in a class (as you can see below), but I am not sure how to use these functions My code so far: #export class U…
- I need help solving WITHOUT using for loops. It should only be while loops etc… In this problem, you should write one function named (count_characters). This function should accept three parameter v…
- please elgtttrh 3) Write a Python script which includes a function that calculates the volume (V) of a horizontal cylindrical segment. The formula to calculate V is given below. The cylinder has a rad…
- please use python 11.7 LAB: Dictionaries with more complex values This exercise will continue with the name and phone number example. In this exercise the file friends2.txt contains the name, phone nu…
- Write a Python program that will do the following “levels”. Get through as many levels has you can: Note that you may not be able to complete all of the levels within the time frame. That is okay….
- Recently, the factory began a new production line that is more efficient than the existing production line. However, the factory still needs ball bearings to meet the same specifications. To compare t…
- Please, help me with the replacement of the code. Thank you.
- Both these datasets are publicly available, and can be used to carry out experiments. Their source is below: Data: https://archive.ics.uci.edu/ml/datasets/ElectricityLoadDiagrams20112014# Electric Dem…
- Please help me create a draft of a code for a game. I have created pseudocode but my prof did not like it and now I do not know where to begin. Attached is what I have for my game as well as what is e…
- Do Exercise 6.4 from your textbook using recursion and the is_divisible function from Section 6.4. Your program may assume that both arguments to is_power are positive integers. Note that the…
- The record is stored in a collection of python dictionaries that looks like this: [{“URL”: “/pages/stark-industry”, “VisitorID”: “Stark”, “Time”: 1614560207243}, {“URL”: “/pages/MIT-offer-letter”, “Vi…
- A2_1 Function and modular a) Write a module fun_math.py that contains three functions: cal_factorial(x) – receives a positive integer “x” and returns the factorial of that number. list_multiples(n…
- Write a Python program that prompts a user for two integers and stores the two integers the user types into the shell. Print the product, float division, integer division, remainder, sum, and differen…
- Please use Python to solve, with codes and plots plz. And just ignore the “modes” mention below PHL:7849080e-08 -1.7562112e-07 -1.5478486e-07 3.4296738e-07 7.1032389e-07 7.0626504e-07 …
- Python Programming This week’s project is to extend the Employee class and its subclasses to create Company class structure. A company consists of Teams, and each team contain a group of employees. In…
- bits to str(bits, root) Given a bit string (as returned by the previous function) and a Huffman code encoded as a tree (see the description above), decode the bits into a string. Termina…
- Program in python please. The prefix of 3 is the first 3 characters of a string. Given a string input, output the first three characters of that string. Assume the string will always have at least thr…
- Question: A college has broad dataset on its graduated class, including past investigations, segment data by postal division, and past gifts. The college is wanting to send a grand handout and a gift …
- PYTHON Rewrite the Student class as a child class of Person . Change “print” (Python 2.7) to “print(…)”(Python 3.5+) in the provided code. Test your new class with the following data: John Smi…
- QUESTION 5 Constituency Grammar and Constituency Parsing: Grammar Normalization: Given the following CFG rules and lexicons, convert them into Chomsky’s normal form. S – AB S- AD C S- AD A – B D – DCB…
- . R (PDF) Design of pro. K ML with PySpark Pr. Microsoft Word – In.. Submit this as a Markdown file (no Word documents, no PDFs) named outline.md in your preexisting paper/ directory. Keep in mind t…
- My program is not doing what it’s supposed to be doing: If turtle’s x coordinate is >= 250 or turtle’s x coordinate is <= -250 or turtle’s y coordinate is >= 250 or turtle’s y coordinate …
- In the first part of this assignment you will play around with determining the cost of purchasing some specific number of product items. You will compute cost for the product and the cost of shipping,…
- Develop a Python program for face recognition algorithm. The program should have the functionality to trigger training of your linear regression model and load a test image one by one, predict the cla…
- Web Showcase Use your webserver and newPost.py to generate a new post for this week’s programming assignment. Create a (5 words max) title that describes the nature of the referenced assignment…
- why does for num in range(6): print (num, end=” “) print(“\n”) execute like this 012345
- I want to know the data abstraction of this question. A Red-Sea-Crossing Problem: Moses is bringing seven other people with him from Egypt to Israel which are separated by Red Sea. Besides Moses, ther…
- This is my code: It is supposed to produce this: This is the code that the professor gave us to work through. He blurred certains parts of it himself: These are the instructions: My program is printin…
- D For the operation below, provide the worst case running time in terms of n (Big O notation). Briefly justify your answer. > >> In the linked list version of the Queue class (as discussed in…
- What dictionary method can be utilized to access the entries in a dictionary variable with a name of parts? a. parts.list() b. parts.show() c. parts.items() d. parts.print()
- Python help needed. 🙏. Write a script that finds the sum of all numbers 1-500 that are divisible by 3 and 7. Do this 2 ways. First using a for loop, then using a comprehension. Question 2
- determine the number of rows needed to generate files of size {0.1, 1, 5, 10, 100, 500} MB of data. The precision of the file sizes is +/- 20%. Use Python to show the file size on disk.
- For each of the following questions; include your script and a sample output. Part 1: Make a Python script that allows a user to input three exam scores. Display a congratulatory message if the averag…
- HW for CSV files: Please check the code and fix if necessary! Please also help with the extra credit # -*- coding: utf-8 -*- “”” Created on Sat Jul 17 16:09:52 2021 @author: ashbu “”” #…
- I need to create these simple user-defined functions that have the requirements listed for each I need to create these simple user-defined functions that have the requirements listed for each. p…
- Please answer these 3 Questions. Question 1 With x=3 and y=4, compute the following quantity using Python: (3/2)(x^2)*y What is the answer to 3dp? Question 2 With x=3 , compute the following quantity…
- Problem 2. (11 pts) For this problem you’re going to be analyzing some real neural data for the first time in this class ! Specifically, you’re going to be analyzing data from an auditory electrophy…
- PLEASE USE PYTHON!!! NOT JAVA. Exercise 5 Energy Einstein’s famous formula, e=mc2, gives the amount of energy released by the complete conversion of matter of mass m into energy e. If m represents the…
- Can you help me to answer the following questions? A solution to the MCGW problem can be expressed in different forms, but it is not as simple for human to verify whether a given solution is correct. …
- Sorting Min and Max importing an excel CSV with python
- Write a program in Python3 that converts temperatures in Fahrenheit (as a float) to Celsius. After this, It will then read an environment variable, and print a message. The Input You will read a str…
- class Backwardable : def __init__ ( self ,iterable) : self ._iterable = iterable def __iter__ ( self ) : class B_iter : def __init__ ( self ,iterable) : self ._all = [] self ._iterator = iter(iterable…
- Use the following lines of code to install libraries in Google Colaboratory In the next code cell : a. Import geopandas, pandas, numpy, rasterio, shapely, and matplotlib using your preferred al…
- Explain how short-circuit evaluation works with the and and or operators in Python.
- A triangular number is a number that is the sum of the integers from 1 to some integer n. Thus 1 is a triangular number because it’s the sum of the integers from 1 to 1; 6 is a triangular number b…
- Lesson 13 – Python Lists Working List Make a list that includes four careers, such as ‘programmer’ and ‘truck driver’. Use the list.index() function to find the index of one career in your list. Us…
- Given the following Python code: mydict = {“Bob”: 10, “Fred”: 25, “Suzanne”: 3, “Darth”: 42, “Herminone”: 17} Show a function that accepts a dictionary as an argument. The function should initialize …
- Please answer this question with Python code. Thank you! In: In: %matplotlib inline %load_ext autoreload %autoreload 2 import matplotlib.pyplot as plt import numpy as up import seaborn as sns import p…
- You can use a minus sign to make a negative number like -2. What happens for each of the following and why? >>> 2++2 >>> 2–2 >>> 2+-2 >>> 2-+2
- Hello, Please I need help to configure this template code to display my logs in table form instead but can’t figure it out. This’s the outcome but I don’t I like I want something like this?…
- can you help me with these two problems Problem 1: reconstructBT Given the preorder and inorder traversals of a tree, construct the binary tree, assuming the values of all nodes in the tree are distin…
- Case 1 (15 points): In a research paper, 36 years of accident investigation reports from 1983 to 2018 from news websites, emergency management department and tourism websites around the world, sevent…
- I’ve tried to understand this project and am having difficulty completing this project. INTRODUCTION The goal of this project is the enable students practice with writing a complete Python program tha…
- You create the following dictionary, which maps country names to Internet top-level domains (TLDs): tlds = {‘Canada’: ‘ca’, ‘United States’: ‘us’, ‘Mexico’: ‘mx’} Which of the following are correct wa…
- ) Calculate Skewness, Kurtosis using R/Python code & draw inferences on the following data. Hint: [Insights drawn from the data such as data is normally distributed/not, outliers, measures like me…
- I have a question on my assignment i seem to not understand.
- Find the actors that were never unemployed for more than 3 years at a stretch. (Assume that the actors remain unemployed between two consecutive movies). data set :- https://drive.google.com/file/d/1O…
- Write Python program to prompt the user for hours, rate per hour and names to compute gross pay. Pay the hourly rate for the hours up to 37.5 and 1.5 times the hourly rate for all hours worked ab…
- The following code from my textbook is not outputting 3 random users I am only getting 1. Do you see any errors? Preparing the data We want to achieve the following data structure: we’re goi…
- . Part 1: pyLab 4 Let a user enter a numeric value as an input. For the given input, decide if: a) the value entered is a whole number e.g. 4.5 is not a whole number (i.e. a float) or 3 is a whole n…
- I wanted to use the average ratings from everyone else to put the books in order for recommend the most-highly rated books that this new user hasn’t yet read i am trying to take average of the books f…
- Design a program with a loop that asks the user to enter a series of positive numbers. The user should enter a negative number to signal the end of the series. After all the positive numbers have been…
- Demonstrate and write a code snippet for each items below. Provide the values for the elements and list/tuples/dictionary names. 1. Insert a new element in index 5 in a list. 2. Display …
- mean_elo_your_team = your_team_df[‘elo_n’].mean() choice1 = st.norm.sf(mean_elo_your_team, mean, stdev) choice2 = st.norm.cdf(mean_elo_your_team, mean, stdev) # Pick the correct answer. print(“Whic…
- you can only answer the part which you know how to calculate.
- Question 9 (10 points) Any expression that breaks down to either true or false is called a conditional, or string expression boolean expression pick-one expression thuthy expression Page 9 of 10 Next …
- Do Exercise 6.4 from your textbook using recursion and the is_divisible function from Section 6.4. Your program may assume that both arguments to is_power are positive integers. Note that the…
- Can you please help this a problem? #!/bin/python import math import os import random import re import sys # # Complete the ‘maximumProfit’ function below. # # The function is expected to return a LON…
- In Part A, you ran the algorithm on MNIST data, and wrote the final centroids to file. The fir load the results. We have provided the code for you at the bottom of analysis.py: if name main centroids …
- Write a function named replace_a(s) that receives a string, replaces all the ‘a’ with ‘@’ and returns the new string
- Python program that will send a matrix to a function. In this function, you will return an average value which is the sum of all the elements divided by the total number of the elements. Do not forg…
- The variable letter_values is a dictionary that maps scrabble letters to their scrabble point value. How can I create two functions: scrabbleValue and bestScrabbleWords . The function sc…
- Need help with question 4 & 7 with Python, I keep getting errors. Also, # 8 . Part 2: Synthesis Your task for Part 2 is to determine the sequence of tones needed to create a Rule-Based Synthesis…
- Use R software and explain the following code by running it: CODE: icecream <- readRDS(url(“https://ecnp003.netlify.app/data/icecream.rds”)) library(“ggplot2”) ggplot(data=icecream,aes(x=tempera…
- The dictionary umSchools maps the names of schools at Michigan to the year they were founded. Write code that creates a dictionary called oldSchools that has the key/value pairs from umSchools that co…
- In this final, you will be asked to analyze a data set containing historical reservations for a fine-dining restaurant that is stored in the file “data/Reservation_Data.csv”. This restaurant only acce…
- could you please provide answers on this link questions (loops) https://firas.moosvi.com/courses/2020_WT1/data531/practice/06_for_loops_exercise.html
- use this script https://drive.google.com/file/d/1JjnWba-ayQ3RSRO0x5NtMpo0gzOXu_kN/view?usp=sharing . Problem 2: Yelp Crawling- BeautifulSoup is a useful tool to crawling structured web content su…
- ASSIGNMENT HELP!! Using the function get_move() written above (in part a), and the following variable definition: robot_pos = 5 attempt to note a program that will call function get_move() ten times i…
- Describe the relationship between objects, references, and aliasing.
- Hello All I have a question as to how to start the code for the following example: Use the drawLS function to draw the string F-F++F-F-F-F++F-F++F-F++F-F-F-F++F-F . Use an angle of 60 degrees an…
- You have a text file WorldSeriesWinners.txt. This file contains a chronological list of the World Series winning teams from 1903 through 2009. (The first line in the file is the name of the team that…
- You are asked by your manager to create a short script by the end of today. Your script should search /var/log/secure for any suspicious sudo attempts, such as trying to change important system files….
- I am taking an online Python class, this was the next practice problem I have. I am unsure where to start. Any help? How could you build a program to find the best-fit line using least-squares linear …
- This project brings in all the lessons as one 1st make a function and all the work is to be completed as 1 function inside the function: a loop to run 3 times generating a random number from 1-10 add …
- Given an array of integers, change it in such a way that it follows a zig-zag pattern. A zig-zag array is an array where for each integer, its adjacent integers are both greater than or less than itse…
- In this assignment, we will practice document similarity. First, we are going to scrape philosophers’ biographies from their Wikipedia page and construct a corpus of documents. Then, we’ll match ever…
- how to write a function that takes a tuple of integers and returns the longest contiguous sequence of this tuple in which the numbers occur in ascending order. For example, if the tuple is: (97,122,99…
- 2.2: Basic while loop with user input. Write expression that executes the loop body as long as the user enters a non-negative number. Note: If the submitted code has an infinite loop, the system wil…
- Rewrite the area.py program (shown below, or in the Creating Functions section of the tutorial) so that it has separate functions for the perimeter and area of a square, a rectangle, and a circle (3.1…
- Start with the following Python code. alphabet = “abcdefghijklmnopqrstuvwxyz” test_dups = [“zzz”,”dog”,”bookkeeper”,”subdermatoglyphic”,”subdermatoglyphics”] test_miss = [“zzz”,”subderm…
- Complete function “sameNumberOf(string, a, b)” to: Return True if the character given by the second parameter (“a”) occurs as often as the character given by the third parameter (“b”) inside the first…
- Can I get help will this Question The question is on the Word document file Python Joe’s Automotive. Joe’s Automotive performs the following routine maintenance services: Oil change—$30.00 Lube jo…
- Can you Please help me with question A, in Python Please The 28×28 Images: https://www.dropbox.com/sh/kw1z4ce0yj1a1um/AADFVyGuL-F1iiSFgMpY7v3_a?dl=0 But You can just do It for just these two images…
- Given the following code: import numpy as np import pandas as pd import re import matplotlib.pyplot as plt dataset_path = “./train-data.csv” column_names = [‘Ind’, ‘Name’, ‘Location’, ‘Year’, ‘Kilomet…
- https://drive.google.com/file/d/1PP0_GgjeVP3Ilh0N6aT14uIloAbNgD58/view?usp=sharing notebook. Understand the given notebook. Identify the difference between classification and clustering. Your answer…
- Answer both below coding question and MCQs below it There are a total of A courses you have to take, labeled from 1 to A. Some courses may have prerequisites, for example to take course 2 you have to …
- Implement the function total_price, which takes in a list of prices of individual products and needs to find the total price. Unfortunately, any product that is priced greater than or equal to $20 has…
- . 4. (a) (20 points) Write a function remove_some that takes two parameters: val_list and remove_list. The function should remove the elements of remove_list from val_list. That is, if an element fr…
- Souce code: https://cryptography.io/en/latest/hazmat/primitives/mac/cmac/ . Find the last two bytes of the partial AES-128 CMAC key below (computed using the sample code found in https://cryptograph…
- Plot a scatterplot of the data, coloring each data point by its class, and use plotGauss2D to plot contours on your scatterplot for each class, i.e., plot a Gaussian contour for each class using its e…
- Welcome to Homework 4! In this homework you are to use the Pandas library to interact with the books.csv file. (The file is in the current module) This program will be an interactive program that allo…
- I need help writing a python code that takes any string, then tests to see whether it qualifies as a palindrome. Code needs to be able to show that “radar!” and “A man, a plan, a canal, Panama!” are p…
- Question: According to each method’s documentation, complete the code of the TextProcessor class and its subclass TextAnalyzer. class TextProcessor : def __init__ (self, text) : self.text = text de…
- I need help debugging my script. The script is suppose to find text files, which contain coordinates, and convert them into feature classes that can be used as inputs into a custom tool which creates …
- 5 Performance AssessmentUse Exception Handling, Debugging, Validation Program 1 Program 2 Program 3 With the previous code required #import random module import random #Main Function Definit…
- 3 can i get help in coding this function please? likely_imposters (report_location, players, location_log) [20pts ] Description: Determine which players are likely to be the imposter given what is kno…
- Question 1 In the following Python code sequence (assuming cur is a SQLite cursor object), cur.execute(‘SELECT count FROM Counts WHERE org = ? ‘, (org, )) row = cur.fetchone() what is the value in row…
- I need help defining my rentalPeriod and understanding how to approach this project. I feel really lost. ntal_car-cu… Collect Custo… x import sys Collapse Section 1: Collect customer input 1 1 1 #…
- Hi there! I always have trouble with these kind of questions asking about output. Could you explain to me the step by step process? Also, my answer was: first 21 third 17 fourth 20 Looking at the firs…
- Python Pycharm create cafe management system program in pycharm The GUI should be able to accept values and calculate costs. ‘Total’, ‘Receipt’, ‘Reset’ and ‘Exit’ Tabs should be fully funct…
- Write a Python program that connects to a sqlite database. Create a table called Cars with the following fields: • id (integer): a primary key and not null • make (text) • model (text) • year …
- stumped on what im doing wrong says 33% is correct, can someone advise? thank you 🙂 Scenario Imagine that you have some data in a list that contains a lot of duplicates that you want to remo…
- C” 1:l The voltage across a conductor with resistance 20 and a current of 5. a. Ohm’s Law states that the current through a conductor between two points is directly proportional to the voltage acros…
- Exercise 2 Quality scores are encoded as ASCII characters with the lowest being "!" (which has ASCII code of 33) and the highest being "I" (which has ASCII code of 73). Create a de…
- . ,0) r1= r2= rr1=arrow(pos=charge.pos,axis=rl,shaftwidth=.2*charge.radius,color=color.red) rr2=arrow(pos=charge.pos,axis=r2,shaftwidth=.2*charge.radius,color=color.red) El=k*q* / mag(rl)**2 E2=k*q*…
- please code this using python turtle module and keep it simple ,Thanks in advance clique Write the function clique(r, n) that draws n equally spaced red points on the circumference of a circle of radi…
- Ch 4 Program: Automobile service invoice (Python 3) (1) Output a menu of automotive services and the corresponding cost of each service. Ex: Davy’s auto shop services Oil change — $35 Tire rotatio…
- I need help with tree, I can made it link list but struggling with tree. Please help me with it. This is the class for making tree class TreeNode: def __init__(self, value): ?…
- Could you help with this 4. Write and test the following function that uses a Priority Queue: def pq_split_alt(source) : Splits a priority queue into two with values going to alternating priority queu…
- . DailyPriceList Class DailyPriceList +prices: Dictionary init_(self, prices) +getPrices(self): dictionary +getPrice (self, T): float +getOpeningPrice (self): float +getClosingPrice (self): float +g…
- python Zip – File Password Cracker Using your final code (python in kali) answer the question below: What is the statement written (message in the zipped text file) in the HomeworkW8.txt file? Turn…
- . STOR 120 – hw05.ipynb |X E music.csv X H deck.csv 3 + x 0 9 . . G > Code X UNC_fb.csv X # Python 3 (ipykernel) O P OT=0) [149] : Row(Year=2019, Opponent= ‘Mercer’, UNC 1Q=21, UNC 2Q=21, UNC 3Q=…
- CODING IN PYTHON – Avocado Plots Requirements: 3×2 subplot grid. From the original dataset, you’ll only need the following columns: Date AveragePrice Total Volume Make sure to convert the Date column …
- . Write a function called play_round that simulates two people drawing cards and comparing their values. High card wins. In the case of a tie, draw more cards. Repeat until someone wins the round. T…
- Compare Files You have a two files. You want to compare them line by line and print the differences. We need to make a program that performs the following: Opens the file 06.05 CompareFileA.txt file f…
- Here, you are asked to predict the forest cover type (the predominant kind of tree cover) from strictly cartographic variables (i.e., geographic mapping data etc.). The actual forest cover type for a …
- Kindly answer the question completely. Thank you.. With the use of input function, data types, and operators, what possible programs you can create? Cite at least one example and explain how the progr…
- Manhattan distance The Manhattan distance between the two lists a and b (both of size N) is given by d = la, – bal i=1 Notice the straight brackets mean absolute value.
- How does this python program works and how does this program run: # Print Details of the program print(“This program reads a text file patients_data.txt “) print(“Find a particular patient average …
- You will use GuessingGameApp.py and complete the TODOs in docstrings and comments to make a GUI version of the Guessing game. We need to use the tkinter module. In this GUI version of the Guessing Gam…
- zyDE 1.3.1: Basic input. Run the program and observe the output. Change the input box value from 3 to another number, and run again. 1.3.2: Output an eight with asterisks. Output the followin…
- Hello, I need to create a program that can read two CSV files and output the data. I am using Python3 and not sure where to start. Attached are the photos of the csv files to be read. and the output i…
- Dynamic Programing – City Planning. {1|} points): A city planner is asked to organize grocery shops in a new city. The city has a straight line main street that goes throughout the city. The city p…
- py This program reads the text file created in the program above and displays its data. Use f-strings to create a table of rows and columns with column headings as follows:
- from DecisionTreesYouTryIt.decisionTrees import main main() ____________________________________________________________ import os os.environ[‘MPLCONFIGDIR’] = “matplot-temp” import numpy as np …
- Run C Markdown A Gray code is an encoding of numbers so that two contiguous numbers have a single digit differing by 1. The term Gray code is often used to refer to a "reflected" code, or mo…
- The greatest common divisor (GCD) of a and b is the largest number that divides both of them with no remainder. One way to find the GCD of two numbers is based on the observation that if r is the r…
- python programming . Write a program to continue getting the date of birth of a user in this format and display the day the user was born. Hint: import datetime Enter date of birth: (dd. mm. yyyy…
- my_list = [6, 2, 8, -1, 12, 15, -7] x = Get first my_list value While x is not negative: put “Positive number!” to output x = Get next my_list value Put “Done” to output
- please let me know answers of 15,16,20,21,22. Also, explain please!!! 15. The series expansion for In Itx with -1 < x < 1 is expressed as In (1-2)= E 2 24- or In *= 2x + 3x’+ IN (2n – 1) + … W…
- suspects = [("Max Zorin", "Kills with guns", "Chip Tycoon") , ("Hugo Drax", ), ("Jaws", "Bites people", "Mutant"), ("Nick Nac…
- EEG data were recorded in all the above three phases using OpenBCI Cyton+Daisy 16 channel recorder. Repeat the above procedure for each subject. Each EEG dataset is a text file with the following info…
- I need to show just the name of it instead of show the name with priority, and can you please reach all the requirement for the test where is blow the code, the test 4 code I think it’s wrong, feel fr…
- Load the Titanic data from a CSV file and store it in a dictionary [20] Requirements: • Define the function load_data(file_name:str,types:dict)->dict, which opens and reads the file name…
- Commenting on the code used by this program.. print ( "Hello boy?") print ("Hello boy?") print ("What’s your name?") name=input ("enter your name: ")| print ( ‘…
- Write Python program which calculates a student’s final grade based upon a single assessment item. The user should be asked to enter the mark for the assessment item and the maximum number of marks av…
- Help with a python programming assignment. …………………………………………… …
- Scenario: Write a program for a retail store that will allow them to calculate discounts for their employees when they buy items. Discounts are based on the number of years worked (2% for each year…
- Assign `first_second_same` to be `True` if the first and second letters in `animal` are the same and `False` otherwise. animal = ‘aardvark’
- I am trying to insert an assert statement cause an assertion error for def str_to_seconds(time). I am unsure how to go about doing it. I made the area i am having problems with bold. Additional assert…
- . . city_connects (self, sideA, sideB) Returns True or False, based on whether or not the two sides are both cities and they are connected. (See Tile 7 for an example of a tile with two city sides t…
- Write your own function that illustrates a feature that you learned in this unit. The function must take at least one argument. The function should be your own creation, not copied from any other sour…
- function read_file that reads file phones.txt into a list. The file looks as follows. iPhone12;1000.00 Galaxy Note; 500.00 iPhone 11; 800.00 Galaxy A11; 59.00 Take this list and convert each lin…
- How to write a function that finds the machine epsilon by determining the smallest floating point number larger than 1 that can be stored? (This should return the base 2 exponent for this number) Here…
- Python program that uses a while loop to multiply integer factors entered by the user. The program should continue to accept integer factors until the user presses ENTER. The running product s…
- Could you please show how to do Q3.3? I’ve attached the previous questions in case that helps any.. Consider the function F(x) = Inx – x+4. 3.1 Plot the function over the interval x E (0, 10]. [2 mark…
- TOPIC: STACK ADTs Introduction to Stacks The definition of Stack is arranging objects on over another. It is the same way memory is allocated in this data structure. In a stack the element inserted la…
- a program that takes a sequence of numbers and determines whether all the numbers are different from each other. 1. a program to do the sum of middle three digits of a 5-digit posit…
- Lab Overview This lab uses an egg scavenger hunt to review the use of files. Please download the file lab07_files. zip from the Submitty Course Materials tab. This includes a set of large text files n…
- Question 3 (10 points) What is the output of the following program? def isEven (num) : A return num % 2 = = 0 if isEven(3) : print("3 is even") else: print("3 is not even") There i…
- This is using Coral language. Write a program that prints a formatted “No parking” sign. Note the first line has two leading spaces. Do you know of anyway to make this simple to understand besides the…
- Python: A class named BlackBoxGame for playing an abstract board game called Black Box. It takes place on a 10×10 grid. Rows 0 and 9, and columns 0 and 9 (border squares), are used by the guessing pla…
- 2.1 BasePlayer.heuristic() You must complete the heuristic () function in the BasePlayer class to return a game state value that reflects the "goodness" of the game. Remember, the better t…
- In this challenge, you will be asked to find one string in the text of another string. Python provides a function to help with this called find() that can be called on any string. To find a string …
- LAB: Warm up: Creating passwords (1) Prompt the user to enter two words and a number, storing each into separate variables. Then, output those three values on a single line separated by a space. …
- Python version 3.6 Description For this program you will be implementing one attack in a turn based battle game. Each character has the following stats StatDescriptionHPHow much life the character has…
- sentence capitailizer python program Write a python program with a function that accepts a string as an argument and returns a copy of the string with the first character of each sentence capitaliz…
- IST 140 Final Project – Ticket Picker Program Python Objective write a program that will pick a winning ticket at random from a pool of tickets. Requirements Your program should prompt the user to ent…
- I need help creating a functional python program that takes data from a published site and builds a graph based on it. the information is listed in the pictures I posted and the instructions are in or…
- def accept_array (list) : n = int(input( “Enter the element : ” )) for i in range( 0 ,n): x = int(input()) list.append(x) def show_array (list) : print( “Array : ” , list) def ternary_search (l,r,key,…
- . Chrome File Edit View History Bookmarks Profiles Tab Window Help Q 8 Wed Jan 19 3:44 PM B Homepage – Southern New Har X zy Section 1.22 – IT 140: Introduct X IT 140 Lab 1.22 Expression for ( X + C…
- The following function is supposed to add 1 to every element in a list of integers. Def addOne(values): For i in range(len( values)): Values[i] = values[i]+1 What is wrong with the following func…
- Directions: Using the following guidelines, create a new python program. 1. Name the program ball.py. 2. Add four comment lines at the top of the program that contain: a. Program Name …
- My code keeps get one part wrong, what am I doing wrong? def is_list_mult10(my_list): for i in my_list: if int(i) % 10 != 0: return False else: return True def is_list_no…
- Here is the questions to solve: Python class object method Task 4 Look at the code and the sample inputs and outputs below to design the program accordingly. 1. Write a class called Color that only ad…
- Problem 1 (Dictionary and String Methods): You have a list of strings which contain student record. Each string contains the student’s name, and their grades in Maths, Physics and Chemistry. The grade…
- Need help in doing this function. Don’t use any advanced Python, only use while, for loops, if statements, lists, dictionaries etc. from typing import Dict, List, Union # Twitterverse dictionary: each…
- Post a Python program that accepts a string as input. It should analyze some characteristic of that string and display the result of that analysis. The program must use at least one of the following: …
- Had a very long and complex assignment and lost a lot of marks, please kindly share and explain the solution to the following problem. . All data sets are provided in function documebtation. def ge…
- How to create Pizzeria Program using Python and Postgresql? Technology needed: -Django for the program -Postgresql for database Output: Every time there is an order, Jeff will add a pizza (Pizza A, B,…
- Your task is the build a classification model that predicts the edibility of mushrooms ( class variable in the dataset). You have been provide with a dataset as a mushrooms.csv file. Here is a descrip…
- What will be output of the following code? 7What will be last line printed when following code is executed. 8What will be output of the following code? What is the output of [‘P’]*4? …
- Need help writing the code below. I keep getting error notices. A team averaging 110 points is likely to do very well during the regular season. The coach of your team has hypothesized that your team …
- help give an example code of Sentence split Function name: sent_split Parameters:sentence, delimiter1, delimiter 2, … Return:A list: containing all separated strings Description:You receive one sent…
- I find it difficult to implement the Scheme function as written below. Any help would be greatly appreciated! Define a function nondecreaselist , which takes in a scheme List of numbers and outputs a …
- This assignment was locked Apr 10 at 11:59pm. Project Status 1 – 25 points out of 80 points _______________________ Your project must show the menu required. The user must be able to enter th…
- CS211 Mini Project: Design and implement a course registration system with the following capabilities: 1. The system can create a report for each student which includes the student information and the…
- 5: Functions Q Worth 1 point Checkpoint 5.40 Write a statement that uses a math module function to get the square root of 100 and assigns it to variable square_root. Type your program submission here….
- How do I do this? . 1. update [30] Write a function called update which takes two arguments: . a dictionary, which specifies both the starting string and the update rules for a particular L-system (l…
- I’m looking for some help to get some code written that will output the longitude and latitude of the International space station from my college (info needed in the attachments) you can work off my p…
- What is the support of the rule {}⇒{Eggs} in the transaction dataset used in Section 1 of this lab notebook? dataset = [[‘Milk’, ‘Onion’, ‘Nutmeg’, ‘Kidney Beans’, ‘Eggs’, ‘Yogurt’], …
- Task1: Write down Object oriented code in Python for a Digital Alarm Clock, that represents Time in both 24 hrs. and AM/PM format, that we can set in settings of clock. Full Time is shown i.e. in HH:M…
- machine learning; iris dataset imported from sklearn datasets iris=datasets.load_iris() knn = neighbors.KNeighborsClassifier(n_neighbors = 5) Xi_train, Xi_test, yi_train, yi_test = train_test…
- Can you explain this code please? #Part 1 from urllib.request import urlopen from bs4 import BeautifulSoup import random def read_wikipedia(search_string): search_string = search_string.lower()….
- The code has to be implemented by using jupyter notebook.. thank you. Q4: Check if string ‘good’ is in both string ‘thatisnotbad’ and string ‘thisisgood’. Return three Boolean results: the first two f…
- from sklearn import datasets df = datasets.load_wine() X = df.data y = df.target Given a data set (wine), split data (20% test), apply pipeline to standardize the data, classify the data u…
- I need help with the decryption process? Below is my screenshot of my code.. Part 2 — Encrypt / Decrypt Background 0 O O O O The Caesar cipher (named for Julius Caesar) is a simple method for encryp…
- https://indiana-my.sharepoint.com/:x:/g/personal/ahagahme_iu_edu/EaToQPiLNlxJg3SXuYj0xQYBVpxahOIiaR0CYTMywoN-Rw?e=BZyl3S the above link is for the data below delayed flights.csv . Q3. (Analysis…
- Array Attributes 1. Create a 4 x 4 NumPy array B1 filled with 1’s of type int. 2. Print the contents of B1. 3. Print the number of dimensions of B1. 4. Print the size of each dimension of B1. 5. Print…
- Trace the following function. Do not just provide the output. Include the state of memory for each function call . Show the value of n and the value of f(n) for each value of n. Show return values. Sh…
- # Step 3 # Here are compressA and uncompressA using the preceding functions. # Test them. def compressA(S) : Returns compressed form of s using RLE+ format.! !’ runBits = findRunBits(s) # expect 0 &l…
- Page 3 0 Question 3 (10 points) Which of these symbols is NOT a Boolean expression. O< O #
- How do I re-create this in Python? I am told that the space between x,y coordinates can be 0.2 and that the color combinations should be set to red (outside), blue (inside), and green (vertices of the…
- LifeTel Telecom is the latest entrant in the highly competitive Telecom market of Singapore. It issues SIM to the verified users. Till now verification was manual through the photocopy of approved id …
- please answer part 2 of the question Part 1 1 ) Write Python code that creates a CSV containing 10 columns of text data Each entry in a row should be different. Each entry should be between 3 and 2…
- Write a method that adds an element at a particular index in the dynamic array. Write a method dynArrayAddAt(..) that adds an element at a particular index in the dynamic array. It does not overwrite …
- I need help for python we are going to count how many of each digit (0,1,2,3,4,5,6,7,8,9) occurs for the first 10, then 100, then 1000, then 10_000, 100_000, and finally all 1 million digits. Visualiz…
- Hi I am struggling figuring out this question 2. This question asks about problem-solving and Python programming skills that are covered by the module. The question is concerned with an extension to t…
- I need help debugging this code. Using the pypcapfile library (the wk-9 setup file) along with the sample PCAP Files provided (PCAP-SAMPLES.zip), and the LookupFiles.zip that needs to be downloaded an…
- Read the script below and answer the following question. #!/usr/bin/env python3 import time class PyTimer: def_init_(self, minute, second): try: self.minute = int(minute) self.second = int(second) exc…
- As Campus Pizza has evolved, you have decided to separate your toppings into regular toppings that cost $0.75 cents each, and premium toppings that cost $1.25 each. Additionally, your co-founders …
- For this test, run program that performs some analysis of the novel Alice’s Adventures in Wonderland by Lewis Carroll. First, please download the provided file alice.txt, which is the full text o…
- Load File Load the airbnb_data. csv as a list of dictionaries into a new variable called airbnb_data. Once you load the data, you should see something like this when you print airbnb_data: […
- Given a list of the squares of the first 40 whole numbers (starting with 1,4,9…) find the earliest number in the list that is greater than 625? Given a list of the squares of the first 40 whole numb…
- Example code: #!/usr/bin/env python3 # -*- coding: utf-8 -*- “”” Created on Fri Nov 5 15:31:41 2021 @author: dallaire “”” import numpy as np import numpy.linalg as la import matplotlib.pyplot as plt f…
- write an program that generates 10,000 list that consists of 10,000 elements that have: First element is list number (i.e., 0, 1, 2, …) Then, there are 10,000 random numbers in [0,10] range The last…
- I have written a code but when I run on tester it is showing “Attribute Error” . Could any one solve this ? I am attaching my code and tester. COde: def getName(): return “li, foo” class MyTree(): ?…
- Consider the definition below for the questions. def mystery(a): b-0] for item in a: count = len(a) for element in a: if item != element: count=count-1 b.append(count) return b Question 21 What is the…
- How many bits are in 8 GB? In order to get the point for this question you need to submit calculations showing how did you come with your answer. Thinking of functions and variable in Python define …
- Q1: Below is a simple dataframe, df. Create a new DataFrame, a subset of df, with only the AAA and CCC columns, and only the first two rows. Assign this dataframe to df2. import pandas as pd df = pd.D…
- Question 2 [20 marks] (a) Write program named commonLetter.py that prompts user to enter two words, and display the positions of the first occurrence of common letter in both words. For example, if t…
- I need to make a function that does some useful computation. I need to use incremental development, and record each stage of the development process as I go. I need to print output that demonstrates …
- Please help me with part 5 and part 6, thank you!!! . Question 1. Let R’ be the Euclidean space. Let V be a subspace spanned by un = -HHOO (1) Apply the Gram-Schmidt process to find the orthonormal …
- How to define a function drawCircle which should expect a Turtle object, the coordinates of the circle’s center point, and the circle’s radius as arguments and also function should draw the specified …
- questionnnn 8. I have a CSV spreadsheet called sales. csv, which contains the following data about purchases made at a store: client date purchases 0 Alice 1/4 942.01 Bob 1/4 1348.67 2 Alice 1/5 1811….
- I’m practicing pandas and I got stuck on a question. Using the data, I need to find the average balance for white collar and blue collar in England. This is the data. And this is my code and result…
- C Capsules At some point or another, most computer science students have written a standard Sudoku solving program. This is yet another “put numbers in a grid” puzzle. Numbers are placed in the grid …
- Write a python program with explanation to read a number n from user, calculate the sum of the following series up to n-th term, and print the sum at the end: 12 + 22 + 112 + 362 + 852 + … (2 marks …
- could you please show how to program it? The Michaelis-Menten equation is a well-known model used in enzyme kinetics. It is defined as Vmax C – KM + C where v is the rate of reaction in mol/sec, Vmax …
- I am having trouble making a function that formats my 2D list from outputting: [[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]] to something that looks like this:. Col o Col 1 Col 2 Col 3 Row O O O 2 Row 1 4…
- Tasks . Implement Depth-First Search (DFS) – It is very similar to BFS, but uses a Last-In-First-Out (LIFO) stack instead of a First- In-First-Out (FIFO) queue. Hint: Check the list section in the…
- In this module you learned about making decisions, You learned about the syntax and rules used to develop programs containing decisions and how the logic can make your programs more robust. Draw a flo…
- Post a Python program that accepts a string as input. It should analyze some characteristic of that string and display the result of that analysis. The program must use at least one of the following: …
- Analytics of US Baby Names for year 1880 You are given a file that contains the national data on the relative frequency of given names in the population of U.S. births for year of birth 1880. Th…
- I’m trying to practice my coding skills and I need to know what is the answer to this coding problem. can someone please show me the code? The following are the functions you must implement: def sum d…
- The following Python statement generates this error: “ValueError: too many values to unpack”. Why? first,second = input(‘two space-separated numbers:’)
- create class called MyStackADT that implements a stack for a series of objects. What kind of objects? You don’t know, and you don’t need to know. All you need to know is that you must implement t…
- There are some examples but I don’t understand these python problems with “class” functions ****Class Example class Counter_list(list): def __init__(self, *args): super().__init__(*args) ?…
- Hi quick question, if a php code doesn’t have a while statement and only if statements do you have to keep going back up to the top of the first if statement in the code or do you just run through eac…
- I need help with this function below. get_filter_results: (TwitterverseDict, List[str], FilterDict) -> List[str]The first parameter represents the data in the Twitterverse dictionary format, the se…
- Using Python Library : users should be able to search for books by title or by author, should be able to search by book category (fiction, non-fiction, autobiographies, travel, etc.). The user shoul…
- How to use python to write the code for these two required function,? Please include detailed explaination for thoughts and codes , thanks. For example, consider the following database of phones using…
- I need help with this problem. I put this as my code and it isn’t working…. user_num = int(input) x = int(input) print(user_num/x*3) It was giving me an EOFerror? Could you tell me what I am doing w…
- Code is supposed to take original image and output a vertical mirror. Starts with making a blank green image template and then uses that template to output the mirrored image. However the result is ju…
- Given an array of non-negative integers, A, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine if y…
- Create a function that pulls a picture from a URL and creates a thumbnail saved on your local machine.
- What field or usage of python are you researching? (an example would be something like cybersecurity, networking, gaming, data analytics/visualization, AI, and others) I’m choosing Cybersec…
- Can someone help me with this problem? I have been struggling trying to create a time sample every 6 hours. Also, I’m lost with how to add labels for what’s a user, the time, and others in the output….
- Hello, I need help completing a script in Python that does the following: Using the pypcapfile library (already available in the VLE), along with the sample PCAP Files provided, develop a Python Scr…
- Encode/Decode Finally, code a “encoder/decoder” program that makes use of your three cryptographic functions. Begin by writing a program that continually asks the user to enter in an option—the…
- Problem 7 (Performance Evaluation for Bayes Classification) [15 points] Implement a Bayes Classification for the dataset RidingMowers. The probability for target class "owner" is computed as…
- ‘https://raw.githubusercontent.com/Geoyi/Cleaning-Titanic-Data/master/titanic_original.csv’ This is the titanic Dataset URL using Matplotlib plot a pie chart presenting the Male/Female proportion and …
- In a .py file, I need a function that strips the first 3 letters from all file names in a directory. If the new name is a duplicate of an existing name, Python will throw an exception. Handle that exc…
- Cut and Paste the following List of Lists of values . ExamList = [ [“Week1”,456.54,875,657.1,277.52,1241.92], [“Week2”,155.45,233.12,75,444.10], [“Week3”,415.4,715.21,577.71,727.52,842.92,392], [“W…
- How can I set up a ticket shopping cart program using flask, shelve and opp? I need a guidance to know where I can start from, thank you!
- My python code needed help. I included links to both starter_code.py and best_picture.txt : starter_code.py: https://drive.google.com/file/d/1_860rvWFBBiyLOFSivLyc-4h3TChYojw/view?usp=sharing best_pic…
- py from Walk import Walk from Graph import Graph import sys sys.setrecursionlimit(100000) class Euler(Graph): “”” COPYRIGHT SOPHIE QUIGLEY 2022 THIS FILE IS NOT TO BE CIRCULATED, OR POSTED…
- Python question. The clone() method expects no arguments when called, and returns an exact copy of the type of bag on which it is called. In the arraybag.py file complete the following: Define …
- Project Descrpiton You have learned quite a lot about the basics of Python programming. In this project, you will integrate what you have learned to develop a larger program. This program creates a c…
- rna2codon(rna) This function should accept a string representing an RNA sequence, and return the corresponding amino acid string, as transcribed by this codon table. You do not need to transcribe the …
- Explain how the Python program extracts the web links from the HTML code of the "Current Estimates," found in web links section. B. Explain the criteria you used to determine if a link is…
- Write Python code using data “IMDB_data” to Load CSV in R by skipping second row. …
- in python how do i get the average for each month in a text file with 365 lines while not using lists.
- Write program that accepts a sentence and calculate the number of letters and digits. Suppose the following input is supplied to the program: hello world! 123 Then, the output should be: LETTERS 10 DI…
- make a function named base85-decode() that accepts a triple encoded base85 string and returns the decoded value
- how to write a recursive function called reverse_string that reverses a string passed as an argument. not using any python function to reverse the string.The only python function required is len()…
- Question 1: A search algorithm iSearch and a variable ilist have been defined as follows: def iSearch (target, lyst) : left = 0 right = len(lyst) – 1 while left <= right: midpoint = (left + righ…
- Bilud a function called predictKNN(). Your function will return the classification of your data-pointIn addition to any parameters you see fit, your function should accept: k a data-point: a vector of…
- How they get the API key?. documentation url: https://developers . themoviedb . org/3/movies/get-movie- credits : param integer movie_id: a movie_id : param integer limit: maximum number of returned c…
- Solve clearly. # Question 2: Simple Function — lepts print("### Question 2: Simple Function") II II II 1. Define a function named even with meaningful argument/variable name and correspond…
- I have been stuck with the programming, and below is my codes: def finding_treasure(m, n): count = 0 list = [] list2 = [] for i in range(m): for k in range(n): if t…
- Execute the following code and comment on the output obtained. def absolute value (num): if num > = 0: return num else: return -num print(absolute_value(2)) print(absolute_value(-4)) 2. The scri…
- Hey tutors, please help me out !!! it is a python problem and I am not allowed to import packages . I am solving a knapsack problem with python,However, my problem is much more complex: 1) 500 knapsac…
- how to deal with this error :’list’ object has no attribute ‘strip’
- Do Exercise 6.4 from your textbook using recursion and the is_divisible function from Section 6.4. Your program may assume that both arguments to is_power are positive integers. Note that the…
- “”””Designing with the logic for a program that allows a user to enter the name and maximum sustained wind speed of a hurricane. The program will then display a table of the names, maximum wind speed…
- def exercise04(): ”’ Data set: Iris Generate an overfitting / underfitting curve of kNN each of the testing and training accuracy performance scores series for a range of neighbor (k) values from 1 t…
- please use the vs code Exercise 4 – Duration Conversion Write a program (called durationpy) that asks the user for an arbitrary number of days and then determines three equivalent lengths of time — …
- simplify these line of code star_coordinates = list(map(lambda star:list(map(lambda x:[x[0],x[1],star],filter(lambda x:star in x[-1].split(“;”),filter(lambda x:len(x)==6,star_dict.values())))),sta…
- We want to return a new elevation map, which is constructed from the values of elevation_map by decreasing the number of points within it. def get_lower_resolution(elevation_map: List[List[int]]) …
- write a function InsertAt(int e, int s)to Insert an element in a doubly linked list. Your function should insert a new node with element “e” after element “s”. If the element doesn’t exist then new…
- Stress-strain relationships are important in several engineering disciplines. In very rough terms, the strain of an object tells how much it has deformed, and the stress on an object tells how much fo…
- Using the Sakila database, creating a query that displays the film title, description, as well the actor first and last name for all films that begin with the letters ‘zo’. Once you have the query bui…
- lst = [] n = int(input()) for i in range(0,n): num = int(input()) lst.append(num) threshold = int(input()) for i in range(0,n): if(lst[i]<=threshold): print(lst[i],’,’) …
- PREDICTION USING MULTIPLE LINEAR REGRESSION (PYTHON) You are asked to help your company in estimating the price of a house in a certain US city. You are given a dataset of housing in the city, namely …
- I have a long, multi part homework assignment that I need help on. This is all using python with imported graphics.py The game begins by allowing the player to place a certain number of red rocks, rep…
- Python programming about the Fourier transform signal and Amplitude modulation. Given a message consists of two triangles: m(t) = A( t + 0.01 0.01 – 4 t – 0.01 0.01 The modulation and demodulation pro…
- Python program that uses a while loop to multiply integer factors entered by the user. The program should continue to accept integer factors until the user presses ENTER. The running product s…
- FOR PYTHON Sample Run: How many employees do you want to enter? 3 Enter a name: Guido van Rossum Enter hours worked: 42.5 Enter hourly rate: 285. 11 Guido van Rossum should be paid $12, 473.56 Enter a…
- Write a python script called vmarchiver.py that will create a complete backup of a single VM the user specifies. : When this script is run, it will present the user with list of the names of all V…
- Engagement Ring Problem Description: Sejal was on a month-long vacation to Europe and has a return trip to India from Lisbon, a city in south west part of Europe. However, a day before the return flig…
- PYTHON PROGRAMMING In this assignment you are asked to write the code for a book shop using the object-oriented programming. A book has the following attributes: Book title…
- For project 3 we are going to have a program to create a version of Rock-Paper-Scissors where the user plays the computer. First ask the user how many games they want to play. This should be an odd n…
- Which of the following statements of broken data sources are correct? [I A layers with broken data sources is shown with an red exclamation mark in ArcMap table of content window [I One cause of broke…
- . Content X MindTap – Cengage Learning X *Homework Help – Q&A from Onl x + V X – > C A ng.cengage.com/static/nb/ui/evo/index.html?deploymentld=577708101954892924796671128eISBN=9781337277976&a…
- please debug this program . Server Not Found X N Student Links – N X Applications | Ra X N ExtraCredit MidTEX N Calendar X Launch Meeting -X Homework Help X image.png (PNG X image.png (PNG X + X O…
- Explain what is happening in this code block: numCredits = int(input(“Enter # of credits then press Enter:”)) if(numCredits >= 120): readyToGraduate = True; else: readyToGraduate = F…
- for this practice, we are not allowed to use- string slicing, for loops, dot notation, or “import” anything. It is supposed to use while loops and a counter. I received help yesterday, but no matter w…
- If z1=8+j6 and z2=5-j2, perform the following operations: a) z=z1+z2 b) z=z1−z2 c) z=z1×z2 d) z=z1÷z2 a) z=z1+z2 = 8+j6 + 5-j2 = j6-j2+13 b) z=z1−z2= 8+j6 -(5-j2) = j6+j2+3 c) z=z1×z2= (8+j6) x…
- I need the answer step by step that use the brute force algorithm and pseudocode and find the complexity and i need to solve the question a ) , b) , c) and d) . QM M269: Algorithms, Data Stru…
- PYTHON ASSIGNMENT part 1 In this exercise, we’ll be playing a bit with pandas, its data loading capabilities, and it’s general formatting and cleaning data sets. Start by running the following: …
- Interpret both confidence intervals. Make sure to be detailed and precise in your interpretation. It has been claimed from previous studies that the average diameter of ball bearings from this manufac…
- Hello! I wrote this code: import datetime import requests import lxml.etree as etree from pprint import pprint import pickle import pandas as pd class FmiApi: “”” a minimalistic wrapper for the Finnis…
- Hello, I need help fixing style errors in my python code. The code works perfectly, but I do not know how to fix the style errors. This is the code, again it works perfectly it’s just that there are s…
- ”’ Edit the Python script named assignment1.py in the assignment1 directory. This script should compute the mean of a list of integers, but is incorrect. Fix the errors in the script so that the mean…
- Am i on the right track? Having trouble figuring out part 4 and 5… . IDLE File Edit Format Run Options Window Help $ 79% Sun Apr 10 6:54 PM Yeah! V2 Reborn vahtz <> cs x G init Searcl C Impo…
- This is how we imagine the class: it’s called Point; its constructor accepts two arguments ( x and y respectively), both default to zero; all the properties should be private; the class contains two p…
- Look up the history of the Python programming language b. Make a report including the following: i. Who invented it ii. What was it invented for iii. What were the design goals of the language iv. …
- ABC Consulting, Inc. needs some support for its analysis of annual employee performance bonuses for its professional staff. Professional staff are one of two types: Consultants or Directors. All profe…
- I need some help working this problem. Thank you. Ø create a function quadrantCalculator that accepts only the diameter of the circle and displays the total area colored in red in the format shown b…
- i need help with -the codes -pseudocode and flow chart -special features (user friendly) Objective To develop a Menu for Computer Shop and payment system using Python. The application allows users to …
- Q::Clean tweets [ ] def clean_all_tweets (df ) : pass clean_all_tweets (df ) gt_sentiment original_tweet cleaned tweet O positive Now all @Apple has to do is get swype on the i… Now all has to do …
- 22 LAB: Expression for calories burned during workout The following equation estimates the average calories burned for a person when exercising, which is based on a scientific journal article (so…
- Assume that you have 22 slices of pizza and 7 people that are going to share it. There’s been some arguments among your friends, so you’ve decided to only give people whole slices. Your pet dog Fido l…
- Consolidating the number of positive sentiments for all videos For all the videos in the usa_video_comments, help consolidate them into a dictionary, with the video_id being the key, and the value pa…
- print a python function that, given a list of pairs (a, b), returns the first a that is greater than its corresponding b.
- Compulsory Task 1 Create a file named minesweeper.py Create a function that takes a grid of # and -, where each hash (#) represents a mine and each dash (-) represents a mine-free spot. Return a grid,…
- #3 i am not sure how to arrange the function to satisfy the question
- Description In this project you are responsible for analyzing traces of Azure VM workload in some geographical region and represent them in a meaningful way. At the end of this project you have to s…
- Write code for below problem. The input below is just an example and you should implement independent from the input. You will have an orthogonal triangle input from a file and you need to find the ma…
- can you use spyder when you are compiling? [25 points] In a flask of yeast medium, there are 100.000 yeast cells at time = 0. The yeast cells are increasing their number by 30% every hour- But the fla…
- lab4_part test is a regular program I made that can complete the task but I don’t know how to change it into a iterator class like the assignment ask me to. I don’t really understand how the iterator …
- I am trying to work on a project for Spam and Ham. I am supposed to filter email messages into spam or ham using simple metrics. What python program is the best to download on a mac book for this proj…
- Find an algorithm that computes the Cholesky factor L for a given symmetric, positive-definite matrix A of size n × n. Hints: a) Start with l11 and proceed through rows. b) Finish computing each r…
- . Write a single Python program that will do the following two tasks: Task 1: Some websites impose certain rules for passwords. Write a program that checks whether a string is a valid password. Supp…
- How to modify code to use file transfer for booking tickets? #python tcp client import socket import pickle import numpy import psycopg2 import json TicPrice = 1000 heading = [“A”,”B”,”C”,”D”,”E”] …
- PYTHON GAME OF PIG ***The key thing is that I want help writing this program WITHOUT the use of function definitions like def roll () : … just simply use assigned variables and while loops etc. …
- Assume that you issued the following command: chmod 733 ~/distribution Write the newly-set permissions for the ~/distribution directory. Show your work. Write a single Linux command to set full perm…
- convert newton’s method for approximating square roots in project 1 to a recursive function named newton . ( hint : the estimate of the square root should be passed as a second argument to the functio…
- Please help with python!!! A general way of encoding a polygon is to use a list of lists so that each inner list contains the points that form each of the parts in the polygon (a part is a general ter…
- import unittest from typing import List def contains_even(values: List[int]) -> bool: “””Return True if and only if values contains at least one even number. “”” for item in values: …
- Need help. Code will not execute. import three built-in modules (time, datetime, random) and write a python program. import time import datetime import random def date_to_timestamp(d) : return in…
- I need the Python code that answers the assignment question below. The code that I came up with is what is shown. The first 5 variables are given, and will vary when the code is tested upon submission…
- Try to answer these questions and use python program. Question 2:(20 marks) a. Write a python program that writes data to a file. The data consists of a series of records, each with two fields – a nam…
- Need help with plotting 2 graphs using bokeh to a html file in python from a csv file. Google drive link for csv file: https://drive.google.com/file/d/1KMTmNQPUyDQ4dzCbyMGn4PhOG4tWcPun/view?usp=shar…
- uestion: You are expected to make a software engineering club site. The following are the details. You will make the majority of the subtleties up and adding it to the data set. For instance, Club pio…
- Python Simple airline ticket reservation program. The program should display a menu with the following options: reserve a ticket, cancel a reservation, check whether a ticket is reserved for a particu…
- Code a Lexical Analyzer program, which input source program from “src.txt” file. This program should not process comments. (comments start with \\ and end with @@, comments can be on multiple lines). …
- Write the Python Program to construct with following functions 1. Construct Data Frames with multiple python Dictionaries(2 or 3) 2. Construct data frame with (2 or 3 dimensional Numpy Array) Note :…
- write the flowchart explaining the code in item 5. (include function names used in the code inside the flowchart) and the program output. b. Modify the program in the link below. Change the number …
- def invert_dict(d): inverse = dict() for key in d: val = d[key] if val not in inverse: inverse[val] = [key] else: inverse[va…
- Note: Only in the console.. 1. Create House class with the following properties and methods a. floorSize b. no OfFloors c. noOfDoors d. lightOpen() e. ovenOpen() 2. Create TownHouse class that i…
- Inside file simple_functions . py create the functions we describe below and program code showing how the different functions can be used 1. A function is_odd (n) ) that returns True if the integer n …
- Write a complete program that reads every line from the user until EOF (i.e., until Ctri-D is entered). After all input has been provided, print three values: how many total lines were provided, how m…
- I dont get why Im getting an error here, its part of a code for the SEIR modell for calculating covid19 spread. Spyder (Python 3.8) – X File Edit Search Source Run Debug Consoles Projects Tools View H…
- Programming exercise from Parallel Computing Course: Solve these asap. 1. Code parallel program to calculate the sum of elements in an array 2. Code parallel program to calculate the a[i]=b[i]+c[i], …
- py code: import os import sys # this enables printing colors on Windows somehow os.system(“”) # code to reset the terminal color RESET_CHAR = “\u001b[0m” # color codes for the terminal …
- Exercise 4: (2 points) . Given a DataFrame (df) complete the function signature for one_hot_all to return a new DataFrame which is a copy of of with all categorical columns replaced with a one-hot enc…
- need help…….. i use python 3 and taking intro to programming, im not understandingt his assignment at all please help 1. Write program named program1.py that enables the user to enter any nu…
- I have to complete this python code : def get_potential_cases(patients, diagnostic_symptoms, min_symptom_count): “”” Args: patients: A dictionary with patient names as keys, …
- When trying to create a Rental Car project, I am having trouble with calculating the total miles. Any help is greatly appreciated! odoStart = input(“Starting Odometer Reading:\n”) #b) Prompt odoEnd = …
- A company performed a survey to understand the income of households in various neighbourhoods of a country. The data dictionary is also present. You can access the data dictionary from the following f…
- Could you explain each question? 1. In line 1, why do you put integer = [] 2. In line 3, I need an explanation about the integer = int(input()). why do you use input() and integer = int()? 3. In lines…
- Write a program that takes the following numbers as input, and outputs the average and max. Input: 15 20 0 5 Output: 2. Sort short names in alphabetic order. short names = [ ‘Jen’, ‘Sal’, ‘Al’, ‘T…
- The Pet inventory application by fulfilling the requirements given below. You must first create the classes described below. Then write driver program that will use these classes to build an appl…
- This is an ungraded problem. Please give me a Python 3 solution to the following problem: #This will be the largest, most authentic program you’ve #written so far. It will require everything you’ve le…
- Problem description If two people have to decide who gets the last piece of a birthday cake, they could play Rock, Paper, Scissors. But what if there are more than two people? The group could play a p…
- I have never learn Python before. May I know the Python Code for the below? In this problem, we will explore a basic perceptron algorithm on separable and nonseparable data. Provide your code in an…
- for def party_history(self, party: str) -> Dict[date, float]: “””Return this party’s percentage of the popular vote in each election in this jurisdiction’s history. ?…
- I am having a hard time getting this to check the password for encryption and correctness to login. The username should be stored in a file named “user file” the passwords are stored in “pass file”. A…
- Below, you are given a list of 30 hashed passwords (one password per line). The plain-text versions of these hash values are either drawn from the English dictionary or are among the most popular …
- Guessing Game: Write Python code that draws 3 positive integers between 1 and 10. Have the user guess three integers. If they get it all right, print “Jackpot”. If they get two of them right, print “N…
- Use PYTHON to create simple regression model Based on the data provided below, can we use either height or weight to predict heart rate? Height: 175, 170, 180, 178, 168, 181, 190, 185, 177, 162 Weight…
- . Random Story Generation: the context to next words dictionary Here is an example of a story list: [‘And’ , ‘the’ , ‘fan, ‘, ‘and’, ‘the’, ‘cup, ‘, ‘And", ‘the’, ‘ship, ‘, ‘and", ‘the’, ‘…
- Python Code homework The popular child’s song “10 Green Bottles” proceeds as follows: The verse then repeats with 9 green bottles, and so on until the last verse Do A function that will produce the ly…
- Welcome to my Guess the number program! You guess the number Type number and see if the computer can guess it Exit What is your choice: 1 Please guess a number between 1 and 10: 5 Too high Please gues…
- The previous solution worked.Using the same code pls help me for the below question as well Define another pytest test class ‘TestInventoryAddStock’, which tests the behavior of the ‘add_stock’ method…
- Exercise 4 and 5 How would you remove the rows that have nan values from of2. How would you remove the columns that have nan values from df2. (4) Download the sample data provided in the web page of t…
- I have a following defaultdict(list), input_dict = {‘a’:[1,3,5,7,9], ‘b’:[1,4], ‘c’:[1,2,3,20], ‘d’:[1,2,3,4,5,6,7,8]} After processing, I want to get a result to compare each keys last list value,…
- m(t)=m0*e^-λt is the expression to compute mass at time t of a radioactive isotope that decays with average lifetime τ .Also τ=1/λ.Given m0, τ, and t write a function that computes m(t)
- (20 points) Recall that a word is just a string of letters, that is, doesn’t have to be meaningful, and letters can be repeated. Write a programme wordsList (n, letters) which takes as input an intege…
- myInts = [i for i in range(1,501) ] myQuote = “The quality of mercy is not strained it dropeth as the gentle rain from heaven” Problem 6 Use a list comprehension to find all of the numbers in th…
- Fill the missing pieces of the Calculator class¶ Fill ____ pieces of the Calculator implemention in order to pass the assertions. In [ ]: class Calculator: def __init__(self, var1, _…
- # RQ1 def merge(dict1, dict2): “””Merges two Dictionaries. Returns a new dictionary that combines both. You may assume all keys are unique. >>> new = merge({1: ‘one’, 3:’three’, 5:’five’}, {2…
- Something is off in my code. I pass one unit test but not the others. #first reads in the name of an input file #open file with open(‘input1.csv’, ‘r’) as csvfile: input1 = csv.reader(csvfile, del…
- A lot of cell phones have tip calculators. Write one. Ask the user for the price of the meal and the percent tip they want to leave. Then print both the tip amount and the total bill with the tip incl…
- def lex_less_eq (a, b) : “””Determines whether sequence (a) is lexicographically less or equal to sequence (b); equivalent to a <= b. For example: >>> lex_less_eq(‘tactic’, ‘tree’) True &g…
- ii) sorts the ratings in ascending order using the Bubble Sort algorithm while maintaining the parallel relationship among the arrays F6 iii) returns nothing h) sortRevenue – similar to sortRatings i)…
- Find the tail number of the top ten planes, with the worst departure delays (average delays). You may find drop_duplicates, agg, and sort_values helpful. Report out the tail number, number of flights,…
- Please solve and then graph using python. Task 1: RK4 on a Second Order ODE (20 pts) Solve Problem 25.4 (6" edition) using Python. Create a script that runs your solution and name it a5task1.py. …
- Please help with the following: • Use dataset in link below. Ignore the labels. Clean, transform, load. Perform k-means clustering. https://www.kaggle.com/datasets/arjunbhasin2013/ccdata • Per…
- programming project 1. Objective What is the purpose of this program? 2. Program requirement as stated in the question 3. Design flow (flow-chart and pseudo code) 4. Rational of your program design? O…
- What TWO different python programs can remove all elements that appear more than once from the given my_lst and print out the updated my_lst with elements that was mentioned once only . For Example Gi…
- I’m attempting to construct a 3x3x3 Rubik’s cube using the code below. I need to account for the middle face, which has its own distinct color, and use rotations to solve for a bottom cross. I’m stump…
- Ask the user a true or false question. Based on the user’s response, tell them if they got it correct or not. Accept true, True, T, and t for responses that are true Accept false, False, F, and f for …
- picture 1 and 2 are hints and picture three is question please using the easier way to solve it .my opinion is using np.flip to invert the even row then using for loop to decide whether it’s true. …
- Write a function pass_grade that takes a list of lists of grades (integers) and a minimum passing grade (that should default to 70). Each sub-list represents the exam grades for a single student. Th…
- 9 LAB: Sorting TV Shows (dictionaries and lists) a program that first reads in the name of an input file and then reads the input file using the file.readlines() method. The input file contains an …
- I NEED HELLLP USING JUPYTER NOTEBOOK (PYTHON) . You need to build a MLP model for y = x1 * x2: Start from Step 3 and complete the Step 4 and Step 5. x1 x2 2 1 5 . .. 10 6 107 70 10 8 80 10 9 90 10 1…
- Python Help….. After 16 hours of racking my brain and just not getting anywhere, here I am. hopefully someone can help my i’m in my 5th week of my first coding class is things are sliding fast. Here…
- Oftentimes, a game will have to decide how it will load players into a game. For instance, developers will have to decide whether to load in players 1 by 1, or load a portion of each player at a time,…
- . This 75-minute exam will not have 75 minutes to work on your test. . If for some reason your internet connection fails during the exam, please join the Zoom se further instructions. The use of cellp…
- what is the program to determine the compound interest. Given the principal amount (5000 dollars) and the annual percent interest rate (APR) as 3%, the program should be able to calculate the value of…
- Write a function deposit(pin, d) that takes as input the user’s pin number and the dictionary. The function calls getAmount(), calculates the new balance and updates the dictionary. The function does …
- Definition: A prime number is a number greater than 1, that have only two factors; 1 and the number itself. In other words, prime numbers are divisible only by the number 1 and itself. Write a funct…
- We have a class defined for vehicles. Create two new vehicles called car1 and car2 . Let car1 to be a red convertible worth $60,000.00 with a name of Fer, and car2 to be a blue van named Jum…
- Please explain what is the difference between tuple and list.
- PA 11: falldown.py In a file named falldown.py, implement a simplified version of the arcade game falldown Your game needs to fulfill the following requirements: • Character – A charac…
- Get the positions where elements of two arrays match num_array1 = np.array([1,2,3,2,3,4,3,4,5,6]) num_array2 = np.array([7,2,10,2,7,4,9,4,9,8])
- I am confuse? 10.13 Data Science: Tracking COVID-19 For this lab, you will need access to your Google account (either personal or through school). We will be using Google’s Colaboratory, which is a cl…
- Which is the correct loop to iterate through each element of an array called names Select one: for index in range(0, len(names)+1): for index in range(1, len(names)): for index in range(0, le…
- list=[ ‘”Gala”‘ , ‘”HalonJ.”‘ , ‘”Hayes,aM.”‘ , ‘”RhoyaJ.”‘ , ‘”Zxu”‘ , ‘”Alth”‘ , ‘”AniniK.”‘ ] Enter a variable, which is the number of teams to generate. For example, 3, the elements in the list ne…
- total 4question. Please help and thankyou. Question 1. A museum has the following ticket policy: 0 One adult ticket costs $20 0 One child ticket costs $10 0 If the total cost is more than $100 then it…
- Import the students list from the given Python script (i.e. data.py). You may use the given script (i.e. template.py) as a starting template to address the following. here is the template.py: from …
- Which sampling method is better based on the acceptance ratios and the probability estimations? Metropolis hasting or rejection sampling? Metropolis hasting sampling method: has an acceptance rate …
- Use Spark and RDD from a text file., how do I get the 20 most common “lowercased” words (don’t count stopwords) Using the text file from https://www.gutenberg.org/files/46/46-h/46-h.htm !head -10 c…
- temp_2m_max [degC] relative_humidity_max [percent] wind_speed_prop_avg [m/s] soil_moisture_05cm_max [m^3/m^3] soil_moisture_05cm_min [m^3/m^3] 6.6 94 4 0.45 0.45 6.6 94 4 0.45 0.45 7.7 93.2 3.1 0.45 0…
- How can I solve this problem Exercise 1: runKmeans Example The function runkmeans takes as input the complete dataset rad, the sample of the rdd on which k-means needs to be run on, the k value and th…
- You are to create a menu driven program that has the following characteristics/functions: Has a function that asks the user for their first name and stores the name and a random number to a dictionary…
- You have been given the following lists of dry fruits and their current prices: dryfruits=[‘almond’, ‘walnut’, ‘pistachio’, ‘pine nut’, ‘cashew’] prices=[15, 12, 17, 7, 19] 1. Using priceDict, find t…
- Discuss how does the increasing number of threat actors complicate CCI efforts to identify, circumvent, and neutralize the CYBIINT activities of adversaries using APTs? o N/B question is complete
- Design and implement a Python program that uses the turtle library to simulate and plot the trajectory of the projectile
- This is the link for the original data: https://archive.ics.uci.edu/ml/datasets/Census-Income+%28KDD%29 This is the resource for the decision tree: https://scikit-learn.org/stable/modules/tree.html …
- 3: pears Enter a menu option: 3 Which number to delete: 3 pears was deleted Enter a menu option: 2 1 : bananas 2 : apples Enter a menu option: 4 have a great day!
- Hello there, I need help with an assignment for programming regarding heroes and villains. Here is the assignment overview below. *Manage character (hero and villain) information You are required to w…
- How would you make a shopping list in Python? B- Explain how loops can be utilized in list processing. Please provide Python examples in your response.
- I want to know how would I open a txt file in python which contains 3 different lines, assign each line to a different variable, and then run each variable through a function.
- In python, how would I construct a dictionary that counts frequencies for a given transition using the (self.) method for a given text file
- Develop an application that uses file and directory access to encode their structure in a JSON file given a root directory. Create python application that given a command-line argument of a ro…
- You decide to upload your recent project to a programming community website for feedback, and one thing that community users keep pointing to is the lack of exception handling. Realizing that they are…
- To date, we haven’t talked too much about handling possible input errors resulting from a user either accidentally or purposely entering incorrect data that is used by the program. This discussion wil…
- Option #2: Program Corrections, Lessons Learned, and Home Inventory Program Your portfolio project consists of three components: Program corrections Lessons learned reflection Final program Assignmen…
- tacos – $2.00 • nachos – $4.50 • drink – $1.00 • fries – $2.75 Write a function called meal_price() that has four parameters, one for each item (in the exact order as above) and returns the …
- I would appreciate if you can give me some hint about the function IMPORTANT: make sure that you use createAlphabetU as the helper function to generate the alphabet used by the encryptionfdecryption r…
- This is a web browser function. The purpose of this function is to read in the contents of an inventory list. This function should prompt the user Enter info file name: “, for a file to read in. The …
- Can someone please explain to me what I am doing wrong/what I am missing to be able to output a graph. I am getting an error: [float(dd[1]) for dd in data[1:]] from like 8 down. I have attached a samp…
- Prompt the user to enter a string of their choosing. Output the string. (1 pt) Ex: Enter a sentence or phrase: The only thing we have to fear is fear itself. You entered: The only thing we have to…
- i need answers as soon as possible. please look into the below documents. Part B: Short Answer (80 marks in total) Note: whenever you are asked to provide an example, it should be assumed that the exa…
- There is no reference provided. This is a complete question Infix expression example: 3+4*5/6 (operators are between numbers) Infix expression evaluation: 6.3333 Postfix version of the infix expr…
- I need some help planning the logic by creating a flowchart and pseudocode of a Python program in Flowgorithm. I have tried to plan the logic of this program in software called Flowgorithm, but unfort…
- Please help me understand why my program won’t display and run the bar graph. I also need to only print the first 5 states with the highest population. . 312 def get_data3 () : 313 314 function us…
- python program Write a program in a script file that calculates the cost of renting a car according to the following price schedule: —— Duration of rent Free Cost of Free Cost of additional addit…
- Your company is offering two salary increases. Employees earning less than 35,545 will receive 8.5% increase while those earning $35, 545 or more will receive $3,000 + 2.5 % amount over $35, 545. A pr…
- PROBLEM 4 A shipping company allows customers to choose between standard or express delivery. Standard deliveries are charged the following rates: Weight Rate per 4 pounds or less $1.05 Over 4 pounds…
- How would you write this program in PyCharm? Discuss any difficulties you were faced with. . Problem 1: A Cup of Coffee o Declare a list called coffeeCup and Initialize it using the following values …
- . A __________ -controlled loop uses a true/false condition to control the number of
- How to create Pizzeria Program using Python and Postgresql? Problem: Jeff has a small restaurant which serves 3 different types of pizza (Pizza A, B, and C). In order to cut down on costs, the owner o…
- Écrire un script qui afficher à l’écran le menu suivant: a. Programmation b. Réseaux c. Bases de données d. Formation générale Votre choix: (a, b, c, ou d) Le script va lire un…
- Come up with a Program that displays repeatedly a menu as shown in the sample run below. The user will enter 1, 2, 3, 4 or 5 for choosing an addition, substation, multiplication, division or exit …
- How do you store these unit conversions in a dictionary? (They’re all plural for consistency) 1 inches = 2.54 centimeters 1 feet = 12 inches 1 yards = 3 feet 1 miles = 1760 yards 1 leagues = 3 miles 1…
- What is Pandas name for the IP Reputation Database csv file? 2. What are Columns names of the Pandas data frame?
- Need tutoring on this: sum_extra with the total extra credit received given list test_grades. Full credit is 100, so anything over 100 is extra credit. For the given program, sum_extra is 8 because 1 …
- Write a Python program that opens an output file with the filename personal.txt, writes your full name to the file, then closes the file. 2. Write a Python program that opens the personal.txt …
- . Is there a way to make a python program that can generate random sentences? Like in Microsoft word if you type =rand() it will automatically generate text.
- Exercise 3: (2 points) – Given a DataFrame (df), the name of the column containing the responses (target), and a boolean value (log), complete the function signature for partition_cols. The function s…
- In this task, you are supposed to writ an efficient algorithm to check whether the elements of a given list of even length can be rearranged to form a palindrome (not whether the list is already a pal…
- I need help to write a function that takes a String as a parameter and returns the GC content (the proportion of bases that are either a G or a C) of that string using python
- The following includes concepts taught in Chapter 11 Write a python class library called Sentence that evaluates and manipulates an English sentence. Your program will be called Sentence.py and contai…
- Design a recursive function that accepts an integer argument, n , and prints the numbers n down to 1 counting backwards. Place your Python code and a screen shot of the output from your program for #1…
- Using the urllib.request module, you must write a function [could be called find_current_temperature(city)] to connect to https://weather.gc.ca/city/pages/ city_code and obtain and return the cu…
- Can you solve this python assignmnet? There’s three things in this, 1. the python code where the assignment/coding will be completed 2. woe py code that has some functions in it 3. data on a google sh…
- You are designing a script that may be imported as a module in other scripts. What variable can you use to check whether the script has been imported as a module, or is running as the main script? …
- Number Analysis Program Design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data: ● The lowest number…
- This is the code given that has to be edited according to instructions. #!/usr/bin/python3 # ————————————————————— # Python starter code for assignment 2, fro…
- Submit one .py file for the entire homework (filename is specified below). You may submit multiple times right up until the deadline. The handout on dictionaries might be helpful. Your solutio…
- Let’s say that we have a contest the details of which we don’t care about apart from one simple rule. “If a contestant earns a score equal to or greater than the k-th place finisher, they will advance…
- please help . Question 14 (5 points) a. Open a file for writing. Write the days of the week, one per line, to the file. Do this in one single write() statement. Close the file. b. Open the same file …
- Debugging lists three possibilities to consider if a function is not working. 1. if Precondition is violated 2. if Postcondition is violated 3. if Wrong placement of return value Describe all 3 of the…
- I am new to python and can you help me with solution to this activity. 1. How to write a temperature conversion program to convert from Celsius to Fahrenheit. The formula for the conversion is ….
- Ask for a file name. The file should exist in the same folder as the program. If using input() to receive the file name do not give it a path, just give it a name like “number1.txt” or something simil…
- Cr3ate a file named multipy.py and create a function inside called multiply_list() multiply_list() should take in as input a list The function multiply_list() will multiply all of the elements in t…
- How do I get rid of these random blank spaces that follow after the NAME variable? I don’t see any spaces after my code why is there blank spaces when I run the code? . 4 m m L m N H name = input(…
- Create a user-defined function that converts from degrees Celsius (◦C) to elec- tronvolts (eV ). Note: K = ◦C + 273.15 and eV ≈ K/11604.5, where K is in Kelvin units.
- an application using PyQt. The user must enter the name of an Olympic sport and a single character (e.g ‘a’). The application must read the name of the sport and count the number of occurrences of the…
- Falling Distance When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period: d = ½ gt 2 The variables i…
- ne function named get_common_movies. This function should have one parameter, which you can assume will be a list of sets. Each set in the list will contain movie titles (strings) representing someon…
- Filename: wheel.py Data file: puzz.txt https://course.ccs.neu.edu/ds2000/homework/hw6/puzz.txt Download the txt file linked above. It contains a whole bunch of puzzles from America’s favorite ga…
- Can anyone give me details information with example about the PEP8 Coding standard to follow in Python Programming language. Such as Naming Convention, Indentation, Inline comments, Spaces, Brackets, …
- from PIL import Image, ImageChops, ImageStat, ImageOps import numpy as np import cv2 from itertools import combinations class Pictures: def __init__(self): pass def…
- Please don’t copy from chegg and course hero How would you do this python question? Q9. Write a code while working on a text file, CSV (comma separated value) format, to add and retrieve infor…
- Write a function upper_lower that consumes a string plain and produces a string with the same characters as in plain except that all letters in the first half of the string are in upper case and all t…
- In this question, we will be implementing classes that abstract different weapon types in the game VALORANT. Doctests for this question are in the method q2_doctests() . You are required to create…
- Hi tutors, im new programing (Python) and im trying to finished but I need to code this “menu-options” to complete it (its very confusing for me). I really appreciate if someone can help me out with t…
- Learning Journal Unit 6 Part 1 Write a Python program that does the following. Create a string that is a long series of words separated by spaces. The string is your own creative choice. It can be n…
- (FILL-IN) You use__________to document code and improve its readability. 2.(IPYTHON SESSION) For the values 47, 95, 88, 73, 88 and 84 calculate the minimum, maximum and range. 3.(Fill-In) You can wr…
- python3 notebook. Problem 1: Find Crossover Indices. You are given data that consists of points (𝑥0,𝑦0),…,(𝑥𝑛,𝑦𝑛)(x0,y0),…,(xn,yn), wherein 𝑥0<𝑥1<…<𝑥?…
- I need help in figuring this program out in Python 3!!! The program will require me to create an basic parser for an input string that is somewhat like Python. Python has an older parser module an…
- For the array: x = np. array ([ [0, 1, 2, 3 ], [4, 5, 6, 7], [8, 9, 10, 11] ]) 1. Find: array([4., 5., 6., 7.] o Changing integer to double means we’ve divided, therefore looking at mean i. mean=sum(r…
- import pathlib from collections import deque class Solver: “””Build a ladder of words””” def __init__(self, filename: str): “””Initialize sets of 3-, 4-, and 5-letter words””” self.words3: set[str] = …
- Describe the difference between objects and values using the terms ” equivalent ” and ” identical “. Illustrate the difference using your own examples with Python lists and the ” is ” operator…
- please give me the py file thx!!!!!!!!!!!!!!!!!!!!! 1. (Composition) Write a Piz za class so that this client code works. Please note that it is ok if the toppings are listed in a different order. >…
- Database Design and Analysis The following database project will create educational attainment “demand” forecast for the state of California for years greater than 2010. The demand forecast is the exp…
- The program output need . 9.12 (LAB) Program: Soccer team roster (Dictionaries) (Python 3) This program will store roster and rating information for a soccer team. Coaches rate players during t…
- Start with the following Python code. alphabet = “abcdefghijklmnopqrstuvwxyz” test_dups = [“zzz”,”dog”,”bookkeeper”,”subdermatoglyphic”,”subdermatoglyphics”] test_miss = [“zzz”,”subderm…
- Programs required: Q1-Write a program to read the file "Subject.txt" and store the data in various variables. The data about a student are to be stored in a list. For example, data of the fi…
- FOR THE QUESTION IS IN THE PICTURES HERE’S THE LINK FOR (confirmed_cases_data = time_series_covid19_confirmed_global.csv) https://data.humdata.org/hxlproxy/api/data-preview.csv?url=https%3A…
- Python Programming Code – to find significant temperature change e in time series data. Steps to follow are below. Here are the required files https://drive.google.com/drive/folders/1Rck95WJsRzaMdSfB…
- Hi, I am currently working on Code 2 as presented in this document ( https://www.coursehero.com/file/20208367/Chapter-2-Code-Exercises/?justUnlocked=1#/question ) but I am having trouble getting the c…
- Ask the user for the number of roads, n. After that the user enters n roads of the form <city1>-<city2> . This indicates there is a road between city1 and city2 (you may assume cities dont…
- QUESTION 9 A committee of IST majors has been formed at the dean’s request. The committee has 10 seniors and 12 juniors. How many different possible ways can the Chairman and Treasurer be selected. (A…
- Discuss the mistake of using incorrect questions to determine inclusion in a range
- Python and SQLite Need to make a program that allows someone to manage a task list that’s stored in a database. Thank you for the help The Dropbox link has the both files inside it. dropbox /sh/ckvg…
- Just true and false can someone help with the real quick please. You are given the following lines of code in no particular order, each labeled with an alphabetic letter: A: n. append(37) B: q. append…
- For the next few problems, we’re going to write code to keep track of a list of movies that the user has viewed in the file viewed_movies.txt. We will define a function that invites the user to tell …
- Given the following S-Boxes: S1=[15 10 2 5 8 4 11 6 1 0 14 7 9 3 12 13 ]; S2=[ 4 0 15 10 8 9 7 13 5 …
- ADD COMMENTS TO THE FOLLOWING FUNCTION def swap_values(user_val1, user_val2): swap = user_val1 user_val1 = user_val2 user_val2 = swap return user_val1,user_val2 if __name__ == …
- CHALLENGE ACTIVITY 5.7.2: Function with loop: Shampoo. Write a function shampoo_instructions() with parameter num_cycles. If num_cycles is less than 1, print "Too few.". If more than 4, prin…
- Write a Python program that plots graph in the figure below: In order to answer this question, you need to use subplot command. Title for the graphs is optional. X-axis label for all the graphs is “Ti…
- Question 2. Adaline Fail ? Unlike the perceptron, adaline does not guarantee that the output will actually separate 2-label data points that are linearly separable. Construct a 2-dimensional data set …
- I need help with this question. N M Ctri Alt Q1. Write a program that accepts a sentence and calculates the number of letters and digits. Fina find the difference between two. Points (10) Suppose the …
- Required : No if for/while or list comprehensions for anything besides assert statements. Use maps, filters, and/or lambda functions. You may find these built-in functions useful across thi…
- Please Remove errors and plot the output and attach the corrected code and outputs.( Tell the compiler name also).. import numpy as np from sympy import * import helper as h T = 1 tau = 0.001 L = 40 N…
- Exercise (On-Your-Own) Write a program that uses three functions to print a triangle shape pattern of integers according to the user’s input. For example Enter an integer greater than 0: 5 Enter an in…
- I need to create program for an on-line CD store. The program has to create list of records about CDs by reading the data from a file. The program should then display a menu that allows the user to so…
- hey I’m trying to make my first sudoku game on python and the site that I got the instructions off has gotten a little confusing. Ive attached my code and the next part that I want done. https://…
- Write a GUI app that converts Celsius to Fahrenheit and vice versa
- Write a function that takes as parameter any PCR primer pair (and gene sequence, if applicable) and checks at least 4 different quality features regarding the primer design. Please include the source …
- morse code converter 4. Morse Code Converter Morse code is a code where each letter of the English alphabet, each digit, and vari Punctuation characters are represented by a series of dots and dashes….
- Please help solve this.. Question 5: Checking account We’d like to be able to cash checks, so let’s add a deposit_check method to our CheckingAccount class. It will take a Check object as an argument,…
- Hi, with the code below, I need to make some adjustments and plt.hist function to plot histograms for all_scores1 and all_scores2 together in the same plot. Code: # Loop for 20 times for _ in range…
- Tensorflow Based Optimization w = np.array([1.0, 1.0]) b = 0.5 X = np.array([[ 0.82, 2.67], [-1.68, 4.07], [ 2.36, 1.28], ?…
- Python error while verifying the code for the correct result.
- python- Which of the following methods overloads the ‘*’ operator? __mod__(self, other) __mul__(self, other) __prod__(self, other) __int__(self, other)
- Teachers in most school districts are paid on a schedule that provides a salary based on their number of years of teaching experience. For example, a beginning teacher in the Lexington School District…
- Can u make sure to separate the function and the main file. Also, can u please make sure to use loops (in the function). As well, can u use the .format (from python 3). Lastly, can u make sure to only…
- please answer the following 3 questions, files can be found here: https://drive.google.com/file/d/17lYpW6Ymc_7_PfHYUq0tqo-nzBI58Jbu/view?usp=sharing In: In: In: In: H result = Booked_in_Advance(lea) a…
- Program specifications: The program will have will prompt for the age of one infant (age 1-5 years) who is attending camp and convert the age in months to years via a function call then print the resu…
- Please think about the design and the UML diagram for the Python 3.9 program. Assignment Specifications: Design classes to model the following things: a simple, euclidian circle and a bare-bones instr…
- Q2 Using pit.hist draw a histograms that overlaps three datasets. Use the Customer_churn data (as shown below). 1) Age distribution by country Manipulate parameters like alpha, bins, legend (ncol, loc…
- task is to write a program which is able to simulate the work of a seven-display device , although you’re going to use single LEDs instead of segments. Each digit is constructed from 13 LEDs (some lit…
- The question is “Write a GUI-based program that plays a guess-the-number game in which the roles of the computer and the user are the reverse of what they are in the Case Study of this chapter. In…
- Download the Letter Recognition Data Set from the UCI Machine Learning Repository. This dataset contains 20,000 examples. Divide the set so that the first 15,000 examples are for training and …
- Could you please help me with this python question Define a function write Scores with two parameters . The first should be the name of a file , and the second should be a list of integer scores . The…
- Create a module in pseudo code that accepts two numbers and returns the lower number. In addition, also demonstrate in psuedo code how that function is invoked or called.
- Please complete this in 30 mins Question 12 Write a function called write_file() that accepts three parameters, a string called filename that represents the name of Not yet answered the file to read i…
- You can use your previous program as the starting point, or you can improve it with the knowledge you have accumulated (for example, include error handling routines, consider using Object Oriented P…
- Please answer this question with Python code. Thank you! Write a function glmnet_vanilla that fits a linear regression model from the gimnet library, and takes the following arguments as input: 1. X_t…
- need help coding this in python . Problem 4: lntersecting Lines Given two intersecting lines 3; 2 must —l— my 2 m1: + bl at a single point (r’,y’) means that y’ = muz’ +b0 and y’ = mlz?…
- Given the list lst of positive integers, assign the largest duplicated element to the variable named max_dup. If the list contains no duplicates, assign -1 to max_dup
- PYTHON program that takes the radius of a sphere (a floating-point number) as input and then outputs the sphere’s surface area. The Surface Area of a Sphere is Surface Area = 4πr² Surface Area =…
- WRITE PROGRAM IN PYTHON MUST PROVIDE BOTH RECURSION AND ITERATION SOLUTION, NOT JUST RECURSION Write program to solve the Towers of Hanoi problem for a tower of size n, using both recursion and ite…
- Computer Science Please do it as soon as possible. Write a Python code to check a correct order of POS tags to form a sentence. Write a Python code to check the difference between the words peace and …
- Problem: For this particular assignment, the data of different types of wine sales in the 20th century is to be analysed. Both of these data are from the same company but of different wines. As an ana…
- Change brown to red in a photo. It can be your photo or any photo you find on the internet. Using JYTHON JES CONSOLE
- DO NOT RESPOND IF YOU HAVE ANSWERED THIS BEFORE Please respond with the following code modified for a program in python that I can paste on a ide like pycharm so that it builds a list of integers from…
- looking for some help with this question. the program has to be altered so the robot does as asked in the instructions attached.. 4. Stop the robot after it drives forward over the black band. (10 mar…
- Can I get the “Pizza Study Design Assignment” memo that needs to be prepared for the peer graded assigning in the “understanding and visualizing data” course on coursera?
- Write a program, which will find all such numbers between 1000 and 3000 (both included) such that each digit of the number is an even number. The numbers obtained should be printed in a comma-separa…
- Please solve using Python & Numpy: . concentrate: (20 points) This function takes a positive odd integer N and a NumPy array a whose width and height are both a multiple of the integer N. For each…
- Solve the joint probability function to solve the given equations :
- Linked Lists Consider the implementation of the Ordered Linked list class, implement the following functions as part of the class definition: ▪ index(item) returns the position of item in the l…
- I’m having trouble going about the following class and defining the functions accordingly. How would I go about this while keeping in mind that I have to run this through a tester. (This is just one p…
- I have attached images of the specifications for this python program along with what the UI should look like and all of the additional information needed. I am really struggling with this as i am new …
- Project Name: Scrape top Spotify songs name and Some information about songs Project Description: In this project, we have to scrape data from Wikipedia for top Spotify songs and some information abou…
- E-commerce Security or E-Banking security using Asymmetric Encryption written in Python. There should be three machines (virtual boxes). One is Sever, Second is the client and third is used to att…
- Do you have python document?If you have,could you please send to me?
- Lab 5 – Programming Loop Structures in Python (60 points) Part I: Q1. (40 points) Convert the algorithm into Python code. For the coin flipping problem: Simulate the coin flipping process by usi…
- Here is the python exercise and the exercises’s situation. ——————————————————————————– Exercise (1) Lab Exercises Situation: Hints of Exercise (1) …
- Do a flowchart of the algorithm for the following problems: A company is giving out bonuses to the employees relative to the number of years worked. For example, if the person is employed for 1 year…
- python- Please a show me a code that represents a Bank Account. Each account instance should have an account number and a balance amount. Then, please write methods to deposit to and withdraw from the…
- What does the following Python code do? cursor = arcpy.da.UpdateCursor(fc, [“TOT_ENP”]) for row in cursor: if row[0] <100000: python
- Write the pseudocode for the following: Assume names is a String array with 20 elements. Design a while loop that will display each element of the array.
- . class Pet: f init (self, name, species): self . name = name self . species = species def getName (self) : return self . name def getSpecies (self) : return self . species def _str_(self) : return …
- . Part 1: Using your own words, describe what abstraction is for you in OO programming. You should state at least one example to illustrate your point(s). You will need to describe at least 2 …
- After creating required classes, write a program that will use these classes to build an application for an Employee Database. All employee data is stored in a …
- Use the knowledge from adversarial search find optimal solution. Write python code to check if any King is unsafe on the Chessboard or not. Given a matrix board [8][8] comprising of the king (K), t…
- ) Fight Night – Must implement 2 functions Part1- Define a Python function that takes a list of integers that are greater than or equal to 0 as input. The integers represent the “energy levels” …
- I am working on a code to generate patterns with random numbers. I did the first pattern, but I get stack in the others two patterns. I have attached an image showing how the output must be. I did the…
- Before you start to write the next script, first run the ‘who’ command at the UNIX prompt and redirect it into a file named users.txt. (Then, look at the file and study its format!) Afterwards, wri te…
- hello i am in IT-140 working on Project 2. # dictionary links a room to other rooms, key:value pair rooms = { ‘Garden’: {‘South’: ‘Bedroom’, ‘item’: ‘no item’}, ‘Bedroom’: {‘North’: ‘Ga…
- This is to repair some code that I took 8 hours to write yesterday. I am sure for you, this will practically mean piecing together the code to get the desired outcome. Here goes: I. Write a function w…
- In the assignment, you will analyze which factors are associated with the number of likes a Facebook post gets. The dataset is from https://archive.ics.uci.edu/ml/datasets/Facebook+metrics. All post…
- Binomial distribution (20 + 10 points) Write a program to simulate an experiment of tossing a fair coin 16 times and counting the number of heads. Repeat this experiment 10**5 times t…
- Here is the python exercises’s situation and use the following example to revise the code. ——————————————————————————– Exercise (1) Lab Exercises S…
- # Return the index of the maximum value in the list def getIndexMaximum (numList) : # init the maximum maximum = numList[ 0 ] max_index = 0 # loop through the rest of the list for index in range( 1 :l…
- [Count occurrence of numbers] 1iiii’rite a program that reads some integers between 1 and 100 and counts the occurrences of each. Here is a sample run of the program: Enter the integers between 1 a…
- I can’t come up with 4.3 (the function spellcheck_file) for some reason. class Trie : ”’Fields: data”’ def __init__ (self, data) : ”’Set the data to the given data. To start with an empty tree, pas…
- Using Python and basic nested for loops help with following code
- Section 6.9 of your textbook (“Debugging”) lists three possibilities to consider if a function is not working. · Describe precondition, post condition and return value possibility in d…
- PYTHON PROGRAMMING I am at the part in my assignment where I have to find the difference between the hour hand and the the minute hand. The assignment specifies that I have to find the smaller angle b…
- Please give me the Python 3 code to solve the following problem: num = 5 #You may modify the lines of code above, but don’t move them! #When you Submit your code, we’ll change these lines to #assign d…
- # Print the entire 128 characters of the ASCII table and their corresponding decimal (ordinal) value.
- Assume the variable g refers to the adjacency matrix of a graph, i and j, refer to two specific vertices, and there are two collections of vertices a and b. Give a Python expression that evalu…
- You are the nutritional coach for a local high school football team. You realize that some of the players are not up to par having returned from summer break. Realizing nutrition plays a key in a prod…
- Can anyone help me figure out what I did wrong? Thank you!
- Could you please help me with this as i’m stuck, thank you Modify the code and plot the output according to the given instructions. #Add the required packages to make the program work. Names1 = [‘Sect…
- Use python to implement Binomial Probability Sums. Program should include a user-defined function that should compute Binomial Probability Sums and should plot the corresponding graph. It should consi…
- A DECODE dictionary is suplied. The user will be asked to enter a baudot RTTY message encoded one character at a time with a space between each letter. Implement the code_to_letter function to c…
- I need help in solving the question below both analytically and then in Python. Make sure that the python solution is also provided Using a Lagrange multiplier method, provide the analytical solution …
- Create a code snippe t that will create a text file with the names of the 7 days of the a week and then (2) open the text file to retrieve and display each of the 7 stored text values.
- 92% ; ~ Q 2 4 Fri Oct 8 9:52 PM Messages View 0 File Conversations Window Help A tom Or x + *Course Hero X C Get Home To’ lordi Mova < > Photo 88 Open with Photos 2 C coursehero.com/tutors/hom A…
- This week’s assignment involves writing a Python program to compute the weekly pay for a paper carrier. Your program should prompt the user for the following numeric values: the number of papers on th…
- py : class BinaryTree: def __init__(self, rootElement): self.key = rootElement self.left = None self.right = None ”’getter…
- Please download the authlog.txt file and create a Python script which does the following: 1. Opens the file and reads the file line-by-line 2. Prints out the time and date of the first attempte…
- Question 1: What is the observed value of the statistic in the data from the Framingham Study? You should convert prevalences to proportions before calculating the statistic! In [8] : observed_diabet…
- A food fest is organised at the JLN stadium. The stalls from different states and cities have been set up. To make the fest more interesting, multiple games have been arranged which can be played by t…
- At the end of June, a bunch of customers all having birthdays in July enter a bakery to order cakes for their July birthday celebrations. How many such customers must there be so that there is at l…
- In Python code, what is the correct way to output text. O print("Hello") out("Hello") output("Hello") write("Hello")
- The Higher/Lower Game is the traditional game where a person tries to guess a number. After each guess, they will be told to guess higher if they guessed too low or told to guess lower if they guessed…
- Hi I’m looking to complete this assignment and I need assistance. The Professor allows collaborations with other sources CHI Ill I’ll-mi. I Etllcflu- Eli-I DleIflII. Wale Billie Pythm Flagrant thIt …
- Hello I need to create a python that script that: Uses the PIL library to create a simple covert communication capability within the true color image provided. I need to make these changes 000, 001,…
- Q1 [10] A drug company would like to introduce a drug to help patients with Alzheimer’s. It is desirable to estimate θ θ, the proportion of the market share that this drug will capture. The company…
- *Name your program Probleml Lastname.py and submit it on Blackboard. Also submit a screenshot of your output result in the word document. 5. You are asked to develop a Python program to process "…
- I have an issue with my code below. On line #318 response = response = requests.get(complete_url) I’m getting an error below: NameError: name ‘requests’ is not defined I am unable to include ths lin…
- I have two datafiles that I used to build a dictionary, matching up the columns that end with a “_b” and a “_p” column on both files. How can I use this to call only these matching columns on the orig…
- MIPS guessing Faithfully translate the following Python code into MIPS code: secret = 42 found = 0 while found == 0: print ("Enter guess: ") guess = int(input( ) ) diff = secret – guess if d…
- Python programmimg. Please help with this question. A projectile is an object moving only under the force of gravity. In modeling the motion of a projectile we assume no air resistance. In this case, …
- I need help with tasks 4 and 5 please!. a + Code Python 3 (ipykernel) O # O [5]: df_fake = pd. DataFrame(fake) df_fake [5] : title text subject date Donald Trump Sends Out Embarrassing New Donald Trum…
- R-8.4 What is the running time of a call to T. height2(p) when called on a position p distinct from the root of T? (See Code Fragment 8.5.) def height2(self, p): # time is linear in size o…
- there are three exercises question, i am confused about some of the steps in here. Many e-mail servers ignore the presence of periods in the username part of an e-mail address: foo , bar @mailserver ….
- 1) Given the following keys: 1, 4, 6, 8, 11, 12, 14, 15, 16, 25, 26, 27, 50, 51, 52, 88, 89, 92, 99, describe the following: a) The distribution and output of these keys across 3 reducer…
- Concurrency (15) 1. (3 point) What is concurrency ? Give an advantage and a disadvantage of using concurrency. 2. (6 points) Define the following terms: Race Condition : Critical Section : Deadlock : …
- Given an integer N as input, program to check whether Least Significant Bit (LSB) of a number is set or not. Use bitwise operator to solve the problem. Your code should NOT use conditional statement n…
- Write a function sublist of sum (lst,x) Write a function sublist_of_sum (Ist, x), that returns the first sublist of 1at that sums exactly to x. Otherwise, it should return None if no such sublist exis…
- Write a function named sort and get_original_indexes that takes a list as an argument and returns a new list of the same length as the list to be sorted in an ascending order and containing the origin…
- A template of program including the function to read in the input data is given here :- from z3 import * import re class Instance: def __init__(self): self.number_of_students = 0 …
- n https://learn.zybooks.com/zybook/SNHUIT140v3/chapter/6/section/2?content_resource_id=40689423 <S My library > IT 140: Introduction to Scripting v3 home > 6.2: List methods zyBooks catalog C…
- Fix the Error tree_list = “oak” print(“tree_list before =”, tree_list) tree_list.insert(1,”pine”) print(“tree_list after =”, tree_list)
- Define function print_popcorn_time() with parameter bag_ounces. If bag_ounces is less than 3, print “Too small”. If greater than 10, print “Too large”. Otherwise, compute and print 6 * bag_ounces foll…
- Stock You have a file that has the stock prices for a week, one per line. We need to make a program that performs the following: Defines a function called “percentchange” Accepts today stock price (fl…
- Let L=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47]. Use a list comprehension to produce a list of the gaps between consecutive entries in L. Then find the maximum gap size and the percentage of gaps tha…
- . Btyp &: Confidence Intervals for the Average Relative Skill of All Teams In Your Team’s Yours Replace Ficlit and akkukinlythan no Python newhed and spotthe probably ive skill in the year’s aim…
- After importing time and using start and end time, I was trying to figure out the average time to check on the performance/monitoring. I wanted to use a decorator to measure average time to avoid repe…
- Hi is there anyone to please help me with the following in python language please Stage 1: Data Entry Write a program which requests that the user enters aname for the product, year purchased, name of…
- While self-isolation has recently been removed, NHS wants to have its system prepared, in case it needs to be re-introduced (unlikely, as some people are against such policy, in fear it could ruin the…
- Python program that takes two lists and calls a function that determines their intersection. Ex. Input: list1: [0,1,2, 7,5,3]; list2: [1, 0, 3, 2, 6] Output: 0,1,2,3. As a comment in your code write t…
- ### list_node.py ### “”” list_node.py Contains a simple ListNode class, which simply has ‘val’ and ‘next’ fields. “”” class ListNode: “”” Models a single node in a singly-linked list. Has no methods, …
- How do you format the movements and collection of items?. # A dictionary for the simplified dragon text game The dictionary links a room to other rooms. rooms = { Great Hall’ : {‘South’ : ‘Bedroom’ },…
- Write a program for a store’s Express Checkout cashier. This express checkout allows up to five different items , but shoppers can have multiple quantites of each item. In the main function, prompt t…
- 2- [5 points] A model that describes the relation between position, velocity, and acceleration of a mass in a simple sprin-mass-damper system is given by mx + bx + kx = F(t), where F(t) is the force a…
- Need some help fixing my code where it calculates grade scores according to the final grade in the class. Such as A= 90% of the score and up, B= 80% of the score and up, C=70% of the total score going…
- Pls help me solve this question! Thx a lot! Given an integer n, you need to print the following pattern:. n 2 3 Pattern 222 33333 212 32223 222 32123 32223 33333 Hint: Notice that the number 1 is surr…
- Answer the following questions: a) What are the two contexts and the two associated meanings? b) Explain each of the two meanings. c) For each meaning, that is directly related t…
- Given a fair coin flipped 100 times, find the probability of a user-defined number of flips coming up heads. Find the mean and variance of the binomial distribution. When 27 is input The output sho…
- Please include inline comments. In this PA, we will try to hide a message image within a context image. Then we will also implement a function to recover that message image from a combined image. CSE8…
- This is an open-ended lab. Using Python, run a linear regression analysis on data you have collected from public domain. Recommended packages: scikit-learn numpy matplotlib pandas Deliverables…
- Data in this: url = “https://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz” Using Deep Learning/tensorflow to Find the 20 most positive and 20 most negative reviews under the best model N…
- Define a function called flip_coin() which randomly returns “heads” or “tails”. Since we only know a function to get a random int, not a random string, you’ll have to use ints as stand-ins for your tw…
- NEED HELP IMPLEMENTING THE FUNCTIONS IN THIS CLASS (DOCSTRING EXPLAINS REQUIREMENTS): from typing import Iterator, Iterable, Tuple, Text, Union import numpy as np from scipy.sparse import spmatrix NDA…
- def reverse_engineer (seq) : “”” Reverse engineer an input sequence Parameters: seq – list of strings Returns: list of values corresponding to each letter present in the sequences (smallest possible v…
- The answer should be written in R programming. Since there is no subject for R, I just chose python. Show me a program in R that prints the numbers from 1 to 100. But for multiples of three print “Fiz…
- What is wrong with my code? ***HANGMAN GAME*** So the secret word is set to be “banjo” but as long as you input one of the correct letters, the letter will be display in the order you input it, for ex…
- I need a python file for the pseudocode mentioned below. It’s a program that prints a sales report (showing each sales person’s ID, their sales, their total sales as well as the total from all sales …
- For exercise to be beneficial to the cardiovascular system, the heart rate (number of heart beats per minute) must exceed a value called the training heart rate (THR). A person’s THR can be calculated…
- binomial option pricing model codes in R programming language
- # q9 – create function translateMorse() to meet the conditions below # – accept two parameters: a Morse-code-to-English dictionary and # a tuple of Morse code characters # — dict…
- I need help with the following: Define cryptographic hash function (CFH). List and define the main properties of an ideal cryptographic hash function. Give at least 2 applications or uses for a CFH (e…
- The text file named WorldSeriesWinners.txt contains a chronological list of the World Series’ winning teams from 1903 through 2019. The first line in the file is the name of the team that won i…
- def file_read(file_name): with open(file_name) as f:#to open file data =f.readlines()#read content of file data =[int(i.rstrip()) for i in data] return data# return data on whi…
- Calculating the Factorial of a Number In mathematics, the notation n! represents the factorial of the nonnegative integer n. The factorial of n is the product of all the nonnegative integers from…
- Problem 1: Create an array that contains the days of the week. Problem 2: Create a loop to print Problem 1 Pseudocode describing how to calculate for Problem 1. Flowchart illustrating how to program f…
- Define a function named posterize. This function expects an image and a tuple of RGB values as arguments. The function modifies the image like the blackAndWhite function developed in Chapter 7 and sho…
- I have a two txt file first one is lessons second one is student name and grade for example lesson.txt Math Geo Physic Art History and more lesson. grade.txt john 80 70 0 50 70 0 10 elton 80 10 0 0 39…
- Please use Python (sklearn etc) for this. Dataset to be loaded is inside this repo (please copy-paste the link in your browser to open it): https://github.com/summerwaters11/polydata Problem 3. Polyno…
- I’m having trouble defining this function. I know I have to use nested for loops but am not sure where to begin or how to start to define this. I cannot import libraries or use copy.
- Suppose that a set of samples 331, :32, …, :3″, all real numbers, are drawn i.i.d. from the same distribution. Also assume that this distribution is a Gaussian distribution, which can be repres…
- Many newspapers publish a cryptogram each day; for instance: VZ FRYSVFU VZCNGVRAG NAQ N YVGGYR VAFRPHER V ZNXR ZVFGNXRF V NZ BHG BS PBAGEBY NAQ NG GVZRF UNEQ GB UNAQYR OHG VS LBH PNAG UNAQYR Z…
- I have a program in Python I need help with. I can provide more information when talking with someone but the book says the following: “w rite a program that prompts users to pick either a seat or a p…
- Create a computer program in Python that finds the Maximum Element in a Finite Sequence (Algorithm 1)
- Level 1: Program the VR Robot to move through the maze from Start (green square) to Finish (checkered square). Level 2: Program the VR Robot to move through the maze stopping on each of the numbers in…
- The following python class is required: RE UEST You have just been hired as a data analyst and the lead of the analyst team has asked for your help. The team needs a simple way to generate two sequenc…
- no chegg Can someone help me with this problem? I have been struggling trying to create a time sample every 6 hours. Also, I’m lost with how to add labels for what’s a user, the time, and others in th…
- 9 LAB: Car value (classes) Complete the Car class by creating an attribute purchase_price (type int) and the method print_info() that outputs the car’s information. Ex: If the input is: 2011 1800…
- I have a question about Spark coding. I have this dataset to use. sensor_measurements = spark.sparkContext.parallelize([ (“Sensor1”, 12.3), (“Sensor2”, 9.3), (“Sensor3”, 2.7), (“BrokenSensor”, 1000…
- Please help me find the solutions for the above screenshot. A code template is provided. Thank you in advance
- . Good Apple Strategy To say that there are a few "bad apples" in a group suggests that if we just avoided the bad apples, we would have a good group. That will be the strategy to solve th…
- https://play.fresco.me/course/292/progress/topic/1427/content/9738/quiz (NLP using Python) What is the output of the following expression? import nltk porter = nltk.PorterStemmer() print(porter.stem(‘…
- 12 LAB: Seasons Write a program that takes a date as input and outputs the date’s season. The input is a string to represent the month and an int to represent the day. Ex: If the input is: April …
- function solve_sudoku(file_name) that finds the solution for the given sudoku. Input: a file name file name, where the file contains n lines, and each line contains n entries separated by commas. Each…
- Two-sample t-test Use the titanic.csv data set. Subset the data set into male and female. Choose the correct t-test to use to determine if male and female passengers paid the same mean fare. Ex: If th…
- import os def Find_row (row_no) : i = 10 this_row = list() print( ‘=====================’ ) for line in fred: if i == row_no: this_row = line i = i + 1 return line with open( ‘fred.csv’ , ‘r’ ) as fil…
- Task: Apply PCA and K-Means on Face Dataset. Olivetti dataset: https://scikit-learn.org/stable/modules/generated/sklearn.datasets.fetch_olivetti_faces.html Step 1: Load Olivetti face dataset. [1′] Loa…
- f= open ( “CityStateData.txt” , “r” ) lst=[] for c in f: # extract the city name from the element of the list cityname = c. split ( “,” )[ 0 ].strip() # after extracting the city name, extract the sta…
- Python Project: You will display a line chart of a dynamic dataset. It is advised that you start with assignment 3 and add the capability to update the display you will add the capability of dyna…
- The task is: Problem: An Internet Service Provider (ISP) must, as part of its service to customers, provide a Domain Name Server (DNS). A DNS is a server that maintains a database of domain names, suc…
- “Python program that has a function named nums that will accept a variable number of arguments and then compute and return the arithmetic mean, geometric mean, and harmonic mean of the numbers in the …
- Hi there, I have to write an algorithm for my assignment and i was wondering if someone could help me understand what my assignment is about. i will send what my outline of the assignment Overview Stu…
- Which Python expression tests whether the string ‘foo’ is a member of set s?
- The Vernon Hills Mail Order Company often sends multiple packages per order. For each customer order, output a mailing label for each box to be mailed. The mailing labels contain the customer’s comple…
- Write a program in PYTHON 3 that does the following: Generates random strings of string length m at random in between 1 and max ( 1<=m<= max ). The length m is stored as a variable…
- Write in python and Make sure the include correct output and code Question-1: Using class ArrayQueue, write a function that splits a given queue into two halves, upper half and lower half. The functio…
- I need help developing or starting this code Directions In Project One, you designed pseudocode or flowcharts for the two main actions in the game: moving between rooms and gathering items. In this…
- Let’s start by learning about indexing. Indexing allows us to access the ith element in a sequence. For example, if we have the list lst = [`a’, `b’, `c’, `d’] and we want to access the `b’ we can ask…
- ***************************************************************************PSET_7 — DESCRIPTION***************************************************************************I need help writing a program…
- . 2.1.1 Link Formulation Let at”) be a binary decision variable equal to 1 ifwavelink (I, w) is used in granting a request between node pair (a, d), i..,e wavelink (t, w) is part of a lightpath es…
- An Optical Character Recognition of Handwritten English Letters using Artificial Neural Networks (Presentation Topic: Pattern Recognition) Optical character recognition or optical character reader (OC…
- Predict the output of the following program segment. i = 5 print(“i = “, end = ” “) while (i <= 5) : i = i + 1 print(i, “\t”, end = ” “)
- python code please. 2.16 (HW) Musical note frequencies On a piano, a key has a frequency, say f0. Each higher key (black or white) has a frequency of f0 * rn, where n is the distance (number of keys) …
- Split the data into training and test. The test data should start in 1991.
- How to write code using continue/break statements stop/continue the while loop in python program that has a valid PIN (4-digit combination). Asking the user for a PIN. If the PIN is correct output “Yo…
- Question 3: Matrix Multiplication Write the function matrixMultiply(A,B) that takes in two 2-D arrays A and B. It treats these lists as matrixes and multiplies them together. If the dimensions are inc…
- How do I use this class example method for my home work problem, can someone explain the concept to me?
- Please help me resolve the following function. I am trying to submit my code, and and not getting the expected result. I believe this is coming from my GridSearchCV function. def SVMBestScore(self, sc…
- import unittest # Part 2.0 def substring(sub: str, s: str ) -> int: start = 0 end = 0 while start < len(s): if s[start + end] != sub[…
- class Sample: def __init__(self,coordinate1,coordinate2): pass def distance(self): pass def slope(self): pass
- Program 2: Drawing snowflakes (25 marks) a) Write a program to draw a snowflake pattern on an image containing three background rectangles according to the following criteria: . Your program "L9Q…
- produce a function called wanderTurtle that will take three parameters: a turtle called t, maxWanderSegments and maxDistance. Have the turtle wander from the center of the screen, making random right …
- Sheela is working in a Cyber. Her current task is to create Username and Password for the users and make the list of all the users visiting her Cyber and sort (ascending order) them according to the…
- Write a python code that will basically implement what is given in the example in the picture . Given a column vector that has a random combination of capital letters, exclamation marks (!), and the s…
- def assign_data(data_point, centroids): “””Assign a single data point to the closest centroid. You should use the euclidean_distance function (that you previously implemented). Arguments: data_point: …
- Solve number arranging puzzle using A* algorithm in python please no copy paste from any source,,if you do I will give you bad rating . 2 3 -A 5 6 7 8
- Display each with coding: [1] Read the text file and Write codes to satisfy the following requirement Requirement a. Read ‘exercise.txt’ from Canvas, remove \n if needed b .Extract numbers from tex…
- def isPalindrome(s): def ladder(n): Problem 3: isPalindrome Write a function called isPalindrome that checks if a (possibly empty) string is a palindrome. Given a string, return true if it is a palind…
- While the print() function will print whatever and however many things you send it, the write() method of a file object must be given a single _______ (data type) to write to the file. Whats the mis…
- Given three floating-point numbers x, y, and z, output: the square root of x the absolute value of (y minus z) the factorial of (the ceiling of z). For example, the absolute value function is math.ab…
- GIVEN THIS CODE: x = int(input(“Please enter an odd number from 1 to 99: “)) print(x) y = input(“Please enter a flower: “) print(y) z = float(input(“Please enter a floating point number from 1 …
- Please refer to the photo below. Given the code below: Plain text def bar (x, y): if y > 0: if (y * 2) : return bar (x, y > > 1) + bar(x, y > > 1) + x return bar (x, y > > 1) + ba…
- Select the correct syntax used to remove bowling from this list: [‘football’, ‘baseball’, ‘hockey’, ‘basketball’, ‘bowling’] a. sports.remove (‘bowling’) sports.pop(3) b. sports.delete (‘bo…
- Develop a program that reads and plots the high, low and closing stock prices found in the attached csv files: Amazon.csv Marriot.csv Netflix.csv United.csv Zoom.csv. Your program should work …
- Hi I’ve been stuck in this question for a while an I need the gist of how to solve it: ID = 0 NAME = 1 LATITUDE = 2 LONGITUDE = 3 CAPACITY = 4 BIKES_AVAILABLE = 5 DOCKS_AVAILABLE = 6 IS_RENTING = 7 IS…
- Please share PYTHON codes with a detailed explanation CSV FILE – https://drive.google.com/file/d/1m0qw0fNRrejEmd8lQHeU6T_SdEXs95iz/view?usp=sharing. In Mar 2018, Cold Storage started getting co…
- . Introduction to Programming $1 x f Facebook X Python Programming Tutor Onlir X X CO chicagosouth-chancelight.agilixbuzz.com/student/175566611/activity/hqwje6d8089f145a8ae6f7a32a3c7fe3_QEDYE OT htt…
- Can I get help writing a small python ‘personal tracker program’ that allows users to manage personal finances and keep track of their daily expenses and help them monitor their budget. User registrat…
- python question Write a function colex_bitlists (n) that accepts as input a non-negative integer n and that returns as output a list of all bitlists of n elements in co-lexicographic order. For exampl…
- Google Translate Superior Reflectiv… A ALEKS- My library > COMP 061: Introduction to Programming for Data Science home > 6.23: LAB: Exact change – functions zyBooks catalog Help 6.23 LAB: Exac…
- Project 4 – Return on Equity Objective: The goal of this project is to gain practice with file I/O, lists and functions. Background: The World Health Organization (WHO) compiles data about immunizatio…
- Question 1 : Consider a 256K x 64 DRAM chip. (a) Determine the parameter ? and ? of the chip, respectively. (b) Determine the capacity of the chip (in Mb). (c) Determine the number of b…
- Answer these four questions: 1. 2. 3. 4. . Given the following declaration, which of the following statements is NOT true. distance = 18 + 29 * 18 0 ‘distance’ is the name of a variable that w…
- Filtering based on conditions Suppose in ‘ipl18’, you want to filter out the teams that have an NRR greater than zero, and for which the ‘For’ score exceeds the ‘Against’ score, i.e. both the conditio…
- Hi – Can you please help me with the solutions for the below assignment. ”’ Assignment #3 1. Add / modify code ONLY between the marked areas (i.e. “Place code below”). Do not modify or add code elsew…
- You are presented with the following filesystem structure: library2 — non-fiction biography food — lost+found. bin – – politics domestic — post-1945. ref pre-1945 . txt — international — …
- Design and implement a simple board game, and then animate a random play through of that game by two computer-controlled opponents. This will allow you the opportunity to work with more complex nested…
- txt is 3 6 9 12 15 21 23 19 17 15 13 11 10 9 6 3 2 1 0.. Create a program called Lab5A3 that will do the following: Read a set of integers from the text file, Lab5431.txt. Put the numbers into…
- In Python, let’s suppose that we want to store today’s date (8/19/2020) in variable “todayDate.” How do we do it?
- The Syracuse (also called the Collatz Hailstone) sequence is generated by starting with a natural number and repeatedly applying the following function: jQuery224041507266738893955_1591176959328?(?) =…
- python class question! i finish the Circle function, but i do not know how to write the polygen and area. please help! class Shape: def set_origin(self, x, y): self.x, self.y = x, y def move(self, dx,…
- I’m having a hard time figuring out this project. I understand how to do the list parts, but I can’t seem to understand how to do the rest. Any help is appreciated. CS115 INTRODUCTION TO COMPUTER PROG…
- PYTHON PROGRAM Implement A-Star search on the given map.
- Unit Testing using nose in Python Need Script/code for the below : Perform the following steps: Create a folder named ‘Project’, mkdir Project. Go to the folder ‘Project’, cd Project. Create two subf…
- py: graphics.py: please help asap 1 Animated Linked List In this project, you’re going to be doing an animation, but this time, you will be animating insertion into a sorted linked list. S…
- class named car that has the following data attributes: _ _ year _model (for the car’s year model) _ _ make (for the make of the car) _ _ speed (for the car’s current speed) The Car class should…
- Python: help with classes and read function please. given a file with 2 values in each line. Read file and create a class to store each line as name and title add operators or functions to the class s…
- . Problem Write a program that reads a text file and prints the contents in reverse order. Expected Output The first two lines of your code must look like this: import sys test_file = sys. argv[1] T…
- S = input( ‘Enter the string: ‘ ) if len(S) < 50: print (S.isalnum()) print (S.isalpha()) print (S.isdigit()) print (S.islower()) print (S.isupper()) else : print ( ‘String is greater than 50 chara…
- What direction would, i go because, I’m not understand. I need help….with this assignment: You decide to upload your recent project to a programming community website for feedback, and one thing tha…
- Question 1: Python function without built in functions, comments and documentation about what each function does will be much appreciated. I’m not sure, but I’ve heard people to use median of media…
- # LetterE.py – This program prints the letter E with 3 asterisks # across and 5 asterisks down. # Input: None # Output: Prints the letter E. NUM_ACROSS = 3 NUM_DOWN = 5 for row in range(1, NUM…
- Help solving 1.1 – 1.5. Use Decision Tree Attribute Selection Method to determine the splitting criterion. Dataset Information: Coronary artery disease, also called heart disease, causes roughly 735,0…
- Define a second function which, when called, will “sleep” for approximately three seconds, and while doing so will display a “z” on the screen about every ½ a second. D…
- This is a Jupyter Notebook assignment for Python. You will be reading in 14 csv COVID-19 files which I will provide, I also have additional files as well to help you with the code, but I will provide …
- How do I make a RDD based on a text file? i.e read in a text file and make it into an RDD.
- Need help with this code! below is an image of instructions. In this problem, you should write one function named (get_highest_neighbor). This function should have three parameters. The fist will be a…
- What would the following code print? text = ‘cold’ result = ” for index, char in enumerate(text): result = result + (char * index) print(result) (Hint: The code involves multiplying a chara…
- # Q9: Operations on sentences #S1= “the first column F will contain only 5 unique values” #S2= “the second column S will contain only 3 unique values” print(“Enter two sentences :”) S1 = input(“Senten…
- This project is for my python class. Please use python 3 to complete.
- THIS IS THE COMPLETE QUESTION: YOU HAVE TO WRITE 3 DIFFERENT CODES (modVerifyDate.py, modVehicle.py, AND testVehicle.py) Create functions to test the validity of month, day, year, and s…
- A travel company wants to fly a plane to the Bahamas. Flying the plane costs 5000 dollars. So far, 29 people have signed up for the trip. If the company charges 200 dollars per ticket, what is the pro…
- ( Bioinformatics: find genes ) Biologists use a sequence of letters A , C , T , and G to model a genome . A gene is a substring of a genome that starts after a triplet ATG and ends before a triplet TA…
- Question 1 (1 point) Saved (32/16) returns: O2 2.0 ValueError: SyntaxError: Previous Page Next Page
- Each of the following Python functions is supposed to check whether its argument has any lowercase letters. For each function, describe what it actually does when called with a string argument. If it …
- @staticmethod def heapsort(da: DynamicArray) -> None: “”” TODO: “”” pass from static_array import * class DynamicArrayException(Exception): “”” Custom excepti…
- Home alarm system design Design a home alarm system using Raspberry Pi. The alarm system should be able to: -Detect any movement inside the house -Detect the opening and closing of doors and windows -…
- I am not sure how to code this correctly. Codio Project File Edit Find View Tools Education Help Node version Project Index (static) Configure. BFEDELL bonacci.py X 6. 5. Fibonac… X VOUTAWNY # Get N…
- A Go Card account maintains a balance that may be spent on public transport. Users may request a statement that shows all transactions. The only transactions are to top up the account with some positi…
- please see below this is practice questions, not to be submitted for marks. this course has a 100% final 3. (30) Dictionary of dictionaries can be used as a simple database. For instance, dictionary i…
- a) Using the “single linkage” method, run the hierarchical clustering algorithm on the dataset, and get a 3-cluster result (by cutting the dendrogram at a certain height), and report SSE and RI. …
- TASK Reward 4 Shop (R4S) has employed you to develop an application to help them calculate the reward points and discounts for their customers. The rates are calculated as follows: · E…
- how do i disallow spacing or enter as input?. myLib.py outfile.dat 0 X Hello > ~ main.py > … test.dat main2.py 1 D VD … def answer_check(prompt) : N while True: 3 4 choice = input(f"Q{i…
- I have this program here that was created but can’t seem to figure out why I keep receiving error message “invalid syntax” I am in desperate need of help sumQ = 0; for i in range (0,10): print…
- class Number(Value): def __init__(self, number): if isinstance(number, (int, float)): # add code here to call the __init__ method of the Value class #…
- Project 1: Book Recommendations CS 1410 Background When buying things online you have probably noticed that you are often presented with other items that “you might also like” or that “other customers…
- This exercise will involve a game that simulates a landing craft descending to the surface of the moon. You may have played this game before, we’ll implement a simple version of it. In our version, …
- show me how to program – Reads the data.txt which represents the sales of marketing agents for the last 12 months. – For each agent find the average over the past 12 months and plot it. – ?…
- Your company needs 1,000 widgets. You have obtained 2 bids, one for $1.29 each and the other for $1.34 each. What percent will you save on the bid rounded to 1 decimal place?
- import pickle def main(): courses = [[“Python”, 3], [“Trig”, 3], [“Physics”, 4], [“Yoga”, 2]] with op…
- Need help implementing the find_min and the find_max functions. Everything else is done. The find_max solution already provided works but only for the two specific test cases, and I need it to be more…
- Use 5 Functions in Python Math Module and print the results Python Libraries – Pandas, OS Module
- Please solve the following Data Science problem using Python (Google CoLab Platform) Step 01: KNN Regressor: 1. Import data set 2. Seperate x and y (y=Weight) 3. Train = 70%, Test = 30% 4. ApplyLinear…
- Mention 4 technologies from the fourth industrial Revolution that were helped in fighting covid-19 ?
- . In [20]: # Define a function named flex_product_of_Lists that takes *Lists as a parameter # Read the dicussion of *args in the functions handout # Initialize on empty product_list # zip *Lists and…
- What steps should we take to ensure the reliability of our code?
- Which of the following loops is best implemented with a while loop? checking to see if a list of integers contains the value 12 counting how many keys in a dictionary start with the letter A asking th…
- Need help with this function please I have provided all the information below def load_profiles(profiles_file: TextIO) -> TupleEDictEstr, ListEstrJJ, DictEstr, ListEstrJJJ: """Return…
- Use a query to calculate the total cost of order#1008. Name the output field as Total Invoice.
- what’s the code in python for this function? Task You will implement some basic classes and methods to manage telephone plans. A Plan can have multiple Phone lines and include a record of multiple Cau…
- PROBLEM 3 Design a program to calculate sales tax, tip and the total amount of a meal purchased at a restaurant. The program asks the user to enter the charge for the food. It will calculate and disp…
- . Question 1 Explain in your own words why we cannot use a for loop to solve Slot Machines. Question 2 What is the problem in the following code? = 10 while x > 1 : yay – 1 Question 3 Listing 4-2…
- Inital preparations In PyCharm or Eclipse, create a new project with the name “assignment10_1”. In this project, create a module tennis. Description of the exercise In module tennis, write a progra…
- make an object oriented Python program to analyze the following air standard Otto cycle and output T-s and p-v plots. Specifications for the cycle: compression ratio = 8, v 1 =0.02ft 3 , T 1 =540 o …
- Write a recursive function that takes a positive integer, say n, and RETURNS the sum of the integers from 1 to n. Call your function with an argument of your choice and print the results. NOTE: We can…
- Part 3: Complete the Python code Write the Python code to complete the program. Some hints and details necessary to accomplish this task: . The main() function should prompt the user to enter 5 input…
- How can i split a string of mathematical expression in python? for the outcome to look like [(”, ‘4’, ‘y’, ‘<=’), (”, ‘8’, ”, ”), (‘+’, ‘1’, ‘x’, ”), (‘-‘, 9’, ‘k’, ”)]=4y<=8+1x-9k
- . 12. Given the following python code, provide the output if invoked with each specified arguments. [Answer by the letter.] a. soln(1,4,4) b. soln(1,3) c. soln(1,-1,-6) d. soln(1,1,10) def soln(*arg…
- Write a python script called vmarchiver.py that will create a complete backup of a single VM the user specifies. The specific details of how it works are below: When this script is run, it will p…
- Some topics this question might cover include: if statement and elif While loops with no if statements While loops with if statements There is no for loop. Also, please don’t use break statements t…
- Hello, I need help with the following: -Create two parallel arrays that represent a standard deck of 52 playing cards. -One array is a string and holds the values (Ace, 2,3,4,5,6,7,8,9,10,Jack,Queen,K…
- Consider the following code fragment, what statement should be inside the loop to achieve the desired output? a = [1, 2, 3, 4, 5, 4, 3, 2, 1, 0] for i in range (1, 10) : ? …
- def addUser (name) : ”’add a user with given user name”’ … def listUser () : ”’return a list of shell users”’ … def listSysUser () : ”’return a list of system (non-shell) user”’ … def find…
- I could really use some help with this! Mall_Customers CustomerID Gender Age Annual_Income_(k$) Spending_Score 1 Male 19 15 39 2 Male 21 15 81 3 Female 20 16 6 4 Female 23 16 77 5 Female 31 17 40 6…
- Sorting is a frequently used operation in many data processing applications. Excel has a powerful sorting tool, available from the Data/ Sort menu. If it is desired to sort data under control of a VBA…
- The following pandas data frame df consists of information about product sales of a particular company. There is one row per customer per product. Items with the same ITEM_ID have the same price. The …
- PVIL What value is assigned to sum variable? result = 0 for index in range(5): result = result + index sum_variable = result Hint: Don’t just say result – looking for a specific number
- markov chain using python for real estate valuation code
- This is a week4 assignment in CPT 200 class, I need step-by-step explanations, too! For this assignment, you will continue to use variables, functions, and control structures to improve the “Vie…
- Please refer to the attachment to answer this question. This question was created from pdf lab 5.pdf.
- Build a Python program that shows a turtle walking back and forth between two vertical walls with the following attributes: (a) Design a 800 X 600 Turtle Graphics window (b) Draw a vertical line at x-…
- A babysitter charges $2.50 an hour until 9:00pm when the rate drops to $1.75 an hour (the children are in bed). Assuming that the start and ending times are in a single 24-hour period, and partial hou…
- I want save the surface temperature from many netCDF files into a many Geotiff file one by one an saved into a file output. I use the comand For to make every proces for every ‘i’ indice… Everithing…
- Define a function called duplicated_items. It takes a list as input and returns a list that has only the items that appear more than once in the list. For example, if passed the input [1, 2, 3, 2, 4, …
- Adjust the program code so that there are two users that can log into the system. One is ‘Joe” and the other is ‘Natalie’. They will both have the same password (‘swordfish’). Ensure that you change t…
- Write a program to drop the lowest two scores from a list of scores. Use lists to solve this. Submit a working program that mimics the output as shown below. . EXAMPLE 1: Please enter a score: 2…
- the python code should be of the following the code should correct Guess counter.and set it to zero. Generate a list of size 50. Populate the list with random integers between 1 and 100.Find the third…
- Identify the errors in the following codes, i.e. tell where the errors are, explain why they become errors, and show how to fix the errors. a. class Triangle: def __init__(base, altitude): se…
- DO NOT RESPOND IF YOU HAVE ANSWERED THIS BEFORE Please respond with the following code modified for a program in python that I can paste on a ide like pycharm so that it builds a list of integers from…
- Write a program that uses input to prompt a user for their name and then welcomes them. Note that input will pop up a dialog box. Enter Sarah in the pop-up box when you are prompted so y…
- I started this program but I’m not getting the correct answer. I get 1.004. Can someone tell me what I did wrong? Thanks,. Python 3.7.0 Shell X File Edit Format Run Options Window Help File Edit Shell…
- Hello I have a final output here in my zip file. I just needed some changes from what my professor said. Zip file: https://drive.google.com/file/d/16E-ePWZCm4hV9SGAUmonK6qSw0_yeUlD/view?usp=sharin…
- 1-What is the result if you turn the following list into a min heap. Write down each intermediate step of the process as a list. [71, 49, 28, 32, 90, 24, 13, 36, 14, 46, 51, 61] 2-What are the re…
- Python Please! Given Code: import numpy as np from scipy.optimize import curve_fit def my_exp ( x, *p ) : ”’ Exponential decay function: f(x) = a exp(-x/tau) Let p[0] be ‘a’ a…
- Database Design and Analysis The following database project will create educational attainment “demand” forecast for the state of California for years greater than 2010. The demand forecast is the exp…
- Help Me, please . 1. Using python and SQLite, create a database called ‘company’ 2. In company database, create 4 tables named department, employee, project and works_on 3. Input the following data …
- Give the table below, we would like to predict customer Harry’s response. Please use 3-neareast neighbors. If we adopt cosine similarity, what’s Harry’s response? Please show you calculation and…
- In one of your research or a research article that interests you , identify the methodology and methods used ? Summarize the research process 2. List three (3) IT research domains that interest you…
- program that asks the user for the name of a file. The program should display only the first five lines of the file’s contents. If the file contains less than five lines, it should display the file’s …
- Initial Experimentation This question involves making some small extensions to the given KB. However, your answers to this part should be written in your hard-copy report submission, not as a progr…
- Please refer to the attachment to answer this question. This question was created from WS09.pdf.
- Hello, please find attached. Thanks Here is a Python program. import turtle sides = 3 def p1us(): global sides if sides < 18: sides += 1 turtle.clear() for i in range(sides): turtle.forward(1@9 – s…
- In python I need to write an function named ” hourly_employee_input” that asks the user for a name (string), hours worked (int) and an hourly pay rate (float) and prints a string including that inform…
- Gaaty Carriers has stepped up in digitizing their logistics. As a part of this, they wanted to locate each cargo inside a container which makes it easier for them to identify the probability of a ca…
- I am having trouble converting my early program into a list comprehension. I either get double of the same string or an error. I am fairly new to Python. Such as when I have tried…
- Ask the user a true or false question •Based on the user’s response, tell them if they got it correct or not •Accept true, True, t, and T for responses that are true •Accept fals…
- Python code that converts Fahrenheit temperature to Celsius and prints on the screen with user input write. (Including an explanatory text with the value entered in the screen printing process must …
- can i get a help with this lab plz? Write A python code Programming Problem You are to write a Python program that computes the relative frequencies associated with flipping a fair coin as well as com…
- this question thank you 2 Note: The add_days test depends on the __eq__ magic method working
- This is a python script. Labs Write a python script called hoster-toaster. py that is used to update a machine’s local hostname resolution file. The details of how it works are below: It requires one …
- I have no idea how to solve this question, can you help me? Remember the Collatz function? If x is odd, then collatz(x) = 3 . x + 1 but if x is even then collatz(x) = x/2. (remember to use // to divid…
- Walk through the STAIR process as it would apply to a hypothetical software development cycle for a video game developer. Explain what each step would look like for such a project. As a reminder, STA…
- Exercise 4.1 Raccoon University is holding an event to recognize distinguished alumni. For alumni receiving recognition, we have prepared a dictionary that contains their names and class of graduation…
- import sys from math import factorial def f(n): ”’ >>> f(0) 0! is 1 There is no 3 in 1 >>> f(10) 10! is 3628800 There is one 3 in 3628800 >>>…
- Need help with a python code that is similar to the recent popular word game called “wordle”. Instructions and sample output is given below. A word file list is required to test the program, and here …
- Programming Project 4 Attached Files: badIP_list.txt (22.808 KB) server_logs.txt (599 B) Statement: There are two files. One file, “badIP_list.txt” has a listing of known bad IP addresses. T…
- Write a function that takes a string as an argument, converts the string to a list of characters, sorts the list, converts the list back to a string, and returns the resulting string.
- Enter a list of ten colours. Ask the user for a starting number between 0 and 4 and an end number between 5 and 9. Display the list for those colours between the start and end numbers the user input.
- Implement the following function in the PyDev module functions . py and test it from a PyDev module named t08 . py: def draw_hollow_triangle(width, char): VOUTAWNY Prints a hollow triangle of width…
- Python 3 – All sample outputs should match when sample input data used. Sample Input 0 5 2 0 150.8586 -33.5872 144.7548 -37.7099 31.4162 -28.3352 113.8974 30.5215 -110.5385 41.7794 Sample Output 0 0 0…
- The following Python program draws a single line of length 30: import turtle sc = turtle.Screen() moxie = turtle.Turtle() moxie.hideturtle() moxie.forward(30) sc.exitonclick() Modify it to draw the fo…
- Complete the program to read the needed values from input, the existing output statements can use to output a short story.. ry > IT 140: Introduction to Scripting v3 home > 1.9: LAB: Input: Mad …
- I need help with those exericese I have to write them in python; is a preparation we have to design a game : sort of hangman game, it calls Pyrdle: basically the idea of the game is that the user i…
- python solution- Read two numbers N1 and N2 from the user,and in one line of code interchange values of the variable and print it. You are NOT supposed to use conditional statement for this project.
- Can you help me make the functions work with the 3 imported modules only? I need to write the code inside each functions to make it work. The instructions are given in quotations (“”) under each funct…
- This week’s assignment involves writing a Python program to determine whether a password exactly meets the following requirements for a secure password: The length of the password must greater than …
- Carrinho de compras O carrinho de compras é a entidade que representa o conjunto de artigos que um cliente pretende adquirir numa dada compra. Caso se tratasse de uma loja física, seria o conju…
- Write a decorator function for your taking input for you any kind of function you want to build. For example-you make a fibonacci series function,in which your input range is been defined by the decor…
- Is there a way to code this without using lists/arrays? # take the low and high integer input from the user low = int(input(“Enter the low number: “)) high = int(input(“Enter the high number: “)) # li…
- Alternate Checkpoint 3 (B): Get Images from the Web This alternate checkpoint is going to use a new module for getting images from the Web. It also uses a list which you will not officially see until …
- . The Like Operator and Wild cards (% and _) 1. Create query that returns all albums by the artist named ‘Umami’ in an alphabetical order. [schema: om] | Result Grid | ! * Filter Rows: artist title …
- I am trying to create a pong-like game using python IDLE and an imported module for my course. So far, I have been able to make the ball, its random movements, as well as a paddle that the user can co…
- py: class BoundedQueue: # Creates a new empty queue: def __init__(self, capacity): assert isinstance(capacity, int), (‘Error: Type error: %s’ % (type(capacity))) # thro…
- Write a program print_all_subdirectories . py containing a recursive function print_subdirectories (dir_path ) that prints the name of all subdirectories for a given directory and moves on (by calling…
- Build a graphical user interface for the Rankine problem on exam 2. The GUI should: accept low and high isobar values and inform the user of saturated properties for these pressures allow th…
- How do you construct a python program for this? . Write a function get_num_type(num) that returns the following output based on the value of num . You can assume that num will always be an integer…
- Hi Given the week number, the day on which the first month falls, and the number of days in a specific month, how do I make function that returns each day of a specific week ? e.g week(1(for first wee…
- Please advise on developing the source code in C language or python to solve the following problems. Create a program which will encrypt a file using the following approach: 1) Create a master key …
- Implement a function grid graph(m, n) that takes as input two positive integers, and returns the adjacency matrix of a m by n grid graph, i.e., a graph with m*n vertices that, when drawn on a regular …
- Question: 1. Find a piece of text, and save it to your computer as a .txt file. Historical texts such as speeches are easy to find, and usually in good shape (no unusual encodings or weird charac…
- Question 3 (25 marks) This question is similar to question 2, but with multiple players competing against each other. (Qn2 is at https://www.coursehero.com/qa/wait/38429331/?question_id=38429331) Yo…
- #Function that takes a transition matrix , initial state s0, #transition steps t, final state st and return the probaility of P(st(t)|s0(0)) p=function(A,s0,t,st){ n=dim(A)[1] #size of Transition matr…
- TypeError: __init__() missing 1 required positional argument This is the code that I created. class FullTimeEmployee(Employee): def __init__(self, name, addr, veh, sal, expn): super().__in…
- I was trying to understand a few things about this code so that it makes more sense to me. Initializing the year as an integer in the remaining years makes sense and all, but why is remainingYears var…
- Consider this recursive implementation of Horner’s method for polynomial evaluation: def recHorner (a, i, n, z) : if i > n: return 0 return a[i] + z * recHorner(a, i+ 1 , n, z) Which one of the fol…
- Write a program whose inputs are three integers, and whose output is the smallest of the three values. Ex: If the input is: 7 15 3 the output is: 3 247772.1945406.qx3zay7 LAB ACTIVITY 3.11.1: LAB: Sma…
- I need step by step guide on how to solve problem with python functions which are related to machine learning
- please helpp 3) Write a script that plots the given f(x) function and its derivative for 100 data points between 0 and 10. f (x) = 5×2 + 6x+2
- P2F = {‘Jesse Katsopolis’: [‘Danny R Tanner’, ‘Joey Gladstone’, ‘Rebecca Donaldson-Katsopolis’], ‘Rebecca Donaldson-Katsopolis’: [‘Kimmy Gibbler’], ‘Stephan…
- Craps is a dice-based game played in many casinos. Like blackjack, a player plays against the house. The game starts with the player throwing a pair of standard, six-sided dice. If the player rolls a …
- Could you explain me step-by-step how to solve this? List names are entirenutrients_prices.txt, grocerycontainer_prices.txt, haltandbuy_prices.txt, speciality_prices.txt, Tobuy.txt Implement the funct…
- Hello, I need help figuring out how to count multiple ‘.pdf’ files in the/a pdf folder, & ‘.jpg’ files in the/an image folder. The assignment was to unpack a ZipFile/ files.zip folder (Path = C:/f…
- For each of the following questions; include your script and a sample output. Part 1: Make a Python script that allows a user to input three exam scores. Display a congratulatory message if the averag…
- I have this json, it always follow the same pattern. There will be singles and compounds, the only difference between them is that the compounds have the same time interval and server. But: { “singles…
- #Plot the high, low, and average temperature vs. month in one same figure #using the data we read from file “Temperature.txt’ in class on Feb 18. #Use different lines and markers for each curve (o…
- Hi! I’m learning Python 3 and I am stumped with the following practice problem. This program takes the following file1: name,capital,population,continent India,New Delhi,1173108018,AS United States,Wa…
- python code for a function which will take a single string argument. The purpose of the function is to read each cell of the spreadsheet which contains information, and search for the word passed …
- i need help writing a test function for these three codes. USE FDR method you can use check_equal from unit_testing file: the code should give example of what should be displayed on the terminal but a…
- Part 1 Section 6.2 of your textbook describes incremental development. Do the exercise at the end of that section: As an exercise, use incremental development to write a function called hypotenuse tha…
- Problem Statement: Design a program that asks the user to enter a string. The string will then be displayed back to the user. This is followed by determining the number of alphabetic characters, nu…
- HOW TO DO FOLLOWING QUESTION? In this lab, you’ve to implement 3 classes. Detailed information of these classes is as below: Class name – dataset Parent Class – None Methods Details: __init__(): In …
- DO NOT RESPOND TWICE IF YOU HAVE ANSWERED THIS BEFORE Please respond with the code for a program in python that I can paste on a ide like pycharm that has a loop that continues to prompt for two numbe…
- Question 3 1 pts Mary wrote the following code to replace the word "crazy" with "strange". message = "He had a crazy, crazy dream!" message . replace ("crazy", …
- Help, need guidance on a program assignment to process utility information for exactly five(5) customers. The utility information must be in a file seperate file. You can type one in yourself using ID…
- Notes • The name of your file should be people.py. • This exercise does not require the use of command-line arguments. Download the following files and place them in the same directory as yo…
- Need help with the Python / Flode chart (From CODIO) – to help, I presented an EXAMPLE question similiar to the one I am asking, explaining the diagram and what each symbol represents, etc – to give a…
- a Python program to print the even numbers from a given list. 2. a Python function to find the Max of three numbers. 3. Python function to multiply all the numbers in a list. 4. Python fu…
- Solution Solved in Excel. Background: One of the most important hydrological processes in river basins is the generation of runofi (flow) at the outlet of a catchment due to precipitation falling on…
- Please help what should I write in the ‘#Your Code Here’ Problem 1 (Reocurring Characters: dictionaries) For a given string s, return the first reoccuring character in the string. Try to get an approa…
- Define the function show_new_integer(). This function takes an integer as its argument. The function should call the function magic() on the integer and return the result. Nothing more. The functio…
- please share screenshots of output and also write comments in code. Problem 5 (5 points): Modify the grading program script lecture to incorporate the following functionalities. Functionality 1: calcu…
- This question provides an opportunity for you to demonstrate your understanding of the problem-solving approach taught in TM112 and the patterns introduced in Block 1 Part 4 and Block 2 Part 2 ….
- How do I do this? . 1. sum_of_key_values , attempt #1 [10] def sum_of_key_values (data, key1, key2) : " ""Return the sum of the values in the data dict stored at key1 and key2. &quo…
- Assignment 6a: numpyPurpose Using libraries is a key part of any programming language. Python is rich with libraries that help solve mundane problems or provide frameworks, so that you can solve your …
- I’m trying to make a function called continuous1234 so that it returns an inexhaustible (never-ending) generator that yields the numbers 1, 2, 3, 4 forever. I need to use something from itertools. >…
- Question 1 [40 pts] : a) [10 pts] Write a Python program that accepts a list of marks then prints the letter grade and description according to the Grading System of the Chang School of Continuing Edu…
- I need help with functions, we just learned it. The requirements are below EPA Data . Background o The EPA makes publicly provides information on all automobiles (including mileage standards). o You a…
- A function that save a line chart of daily closing prices with an overlay of the daily volume as a bar chart for a single stock to your desktop
- Program in python class called ShipGame that allows two people to play the game Battleship. Each player has their own 10×10 grid they place their ships on. On their turn, they can fire a torpedo at…
- The objective of this homework assignment is to demonstrate proficiency with reading files, and using string methods to slice strings, working with dictionaries and using-step wise development to comp…
- When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This can be done by normalizing to values between 0 and 1, or throwing away outliers…
- This is my code, but it keeps printing out other when it shouldnt and with the other test cases. It should only print other when it doesnt fit into the other categories shown. Also, in the input funct…
- #MyBSTMap.py https://codeshare.io/0gBoxe #BSTMap.py https://codeshare.io/78Xygb #testmybstmap.py https://codeshare.io/1Yx31B . – returns the generated BST – e.g. bat1 = MyBSTMap . frompreor…
- How do I actually import all the files into my code.
- PYTHON PROGRAMMING USE WHILE LOOP SEE THE PHOTO BELOW 0 Prompt the user for three integers. Then — in reverse order — output every integer that follows both of the below conditions: 0 The integer is…
- Hello, can you please help correct (and improve) the code below and add a few more codes to correctly answer the complete question posted at the bottom. This is the almost finished but wrong code: A=[…
- Consider the following Binary Search Tree, what is the result of Breadth-First Traversal Select one: a. 10, 5, 20, 4, 15, 30, 11 b. 4, 5, 10, 11, 15, 20, 30 c. 10, 5, 4, 20, 15, 11, 30 d. 30, …
- Please help with the find_logW function using Python code. Thanks! In [ ] : some_X = np . array ( [[ 0, 1, 12, 3, 4] , [ 5, 16, 7, 8 , 9] , [ 0, 11, 12, 13, 4], [15, 16, 17, 8, 19] , [ 0, 1, 12, 3 , 4…
- please help me whith these questions QUESTION 1 Version control does not allow programmers at remote locations to work on the same files at the same time. (True/False) True False QUESTION 2 With ve…
- Python**help fix homework problem with using standard deviation as a function. score = [98, 100, 68, 97, 72, 89, 99, 83, 75, 82, 87, 89, 81, 85, 93] def find_stDev(score): diff = score[i] – averag…
- . Like a kid in a candy store, except without money def candy_share ( candies) : A group of children sit around in a circle so that each child has some number of identical candies in front of them. …
- Blackjack game: Python 3 · To begin, the player and the dealer are dealt an initial hand of two cards each. · If the dealer has Blackjack (the first two cards dealt total 21 points) and the…
- . (e) Write a main() function with exception handling for the following: (i) Create the following Flight object with the following golfers’ details. Flight Golfer’s Name Membership Handicap PC Expir…
- plz solve both part A and B. 4:07 0 y y O 41% Binary number The value of any binary number will be equal to the sum of its digits multiplied by their respective weights. These weights are multiples of…
- Imagine we have a die ( a six sided cube, each side has a number 1-6) We can represent that with single byte Rolling the dice (tossing it on the table and seeing which side ends up showing its value…
- Generate N = 5,10,100,1000,10000,1000000 normal random variables with mean 10 and standard deviation 5. For each value of N, compute the average of these random variables and write the results to a cs…
- please use this link to access the document: https://drive.google.com/file/d/1Zi0zYVSgkVQXoJ3aVPqw_K63fBjYSzqr/view?usp=sharing Please base the code on Phyton.
- firstNumber = -50; secondNumber = 53; thirdNumber = 78; # write the assignment, if, or if else statements here as appropriate # Output largest and smallest number. print(“The largest value is ” + st…
- Using Python allow a user to load one of two CSV files and then perform histogram analysis and plots for select variables on the datasets. The first dataset represents the population change for specif…
- Show a simple Python application and save the file in an appropriately named file. The application should be unique (something you create) and be less than 10 lines of code. For example, it could be a…
- Hello, Can I please get help with writing the following assert statements? Right now I have the following: assert type(s) == str, ‘Precondition violation’ assert (‘(‘ in s and ‘)’ in s) == ‘()…
- Naive Bayes for text classification In this question you will implement Naive Bayes as a technique for spam filtering. This method works fairly well for certain text classification tasks. This is inde…
- From this, you are to generate an insurance report (example printed line): You are insuring a bungalow of 1296 square feet. If any of the data is invalid (less than the minimum or maximum, or not one …
- program that uses a two-dimensional list to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and highest and lowest temper…
- Submit one .py file for this homework (filename is specified below). You may submit multiple times right up until the deadline. Some handouts that might help: writing functions ; functions and sco…
- Using python language not java please!!!!!!!! tip:RAISING EXCEPTIONS There will be occasions when you want your program to raise a custom exception whenever a certain condition is met. In Python we ca…
- Exam efficiency code in python In an examination with multiple choice questions, the following is the exam question pattern. X1 number of One mark questions, having negative score of -1 for answering …
- Python program about words counting 201107/blob/master/data/opinion-lexicon-English/positive-words.txt] and here (https://github.com/jeffreybreen/twitter-sentiment-analysis-tutorial- 201107/blob/maste…
- Question: Complete the following problem as described below. You should submit a .zip file (Windows) if you plan to submit more than one file. This would be in Word format (docx). Software tools a…
- This is the full question, there are two .py in the problem and I’m a bit confused. Thanks The __str__ method of the Bank class (in bank.py ) returns a string containing the accounts in random o…
- Define a named tuple Player that describes an athlete on a sports team. Include the fields name, number, position, and team. from collections import namedtuple Player = namedtuple (‘name’, ‘number’…
- solve the following question: Chef is playing a card game with his friend Chefu. The rules of the game are as follows: –>There are two piles of cards. One pile belongs to Chef and the other to Che…
- Please explain how this python code works? What is this useful for?. def register () : from configparser import ConfigParser file = ‘project. ini’ config = ConfigParser() config. read(file) print(&quo…
- Need assistance with syntax errors two python scripts: cat testdata2.txt | python kmeansMapper.py | sort | python kmeansReducer.py #kmeansReducer.p y #!/usr/bin/python import sys currId = None # this…
- Can any help me answer this MCQ? In on inheritance in python
- Problem : Make a function that counts using a while loop and/or a for loop. The function header code should look like: def count (start, step, stop): “”” start = starting integer number step = integ…
- Make a Python linting script that will fail if the files(Xml) don’t meet formatting standards. Make the script configurable as well so I can change the formatting options(tabs, spaces, attribute align…
- Load data from a public API: https://gbfs.fordgobike.com/gbfs/es/station_status.json Links to an external site. Display two lists of top 25 stations that require immediate attention one for stations …
- I need a great amount of help for writing out this program. Thanks. In this lab, you create a derived class from a base class, and then use the derived class in a Python program. The program should cr…
- Write a Python program that uses the cryptography.io API to encrypt plaintext ‘ Crypto is fun and entertaining ‘ using 3DES in OFB mode with the following combination of keys and nonce: k = b’12345678…
- Program Requirements: The Boundary value analysis technique checks the program with input values that are on or close to boundary values. The Boundary value analysis is best suited when input values…
- . Problem The objective of this project is to simulate Nondeterministic Finite State Automata (NFA) with A-transition. The inputs to the simulation are: 1. The alphabet Number of states in NFA…
- # Import the necessary modules house = # Code to read in kc_house_data.csv # Display the correlation matrix for the columns price, bedrooms, and sqft_living, in that order print(# Code to calculate co…
- How would I write a function to add two polynomials… see below. idx1 = [4, 2, 1, 0] coef1 = [3, 2, 2, 5] idx2 = [3, 2, 1, 0] coef2 = [4, 3, 1, 2] add_coef (idx1, coef1, idx2, coef2) == [3, 4, 5, 3, …
- I NEED A FASTER SOLUTION THAN THE ONE GIVEN BELOW!! The solution below runs in quadratic time, I need one faster than this. I REPEAT I NEED A FASTER SOLUTION!! THE SOLUTION GIVEN BELOW IS TOO SLOW! Sl…
- Please help with practice example problem. https://pastebin.com/fzEcVz0C https://pastebin.com/AsjTKuSd https://pastebin.com/f5ZYVjqK https://pastebin.com/m7QnTnMV 5. 6. 7. . Defining an expression c…
- Can you make an algorithm for this: if __name__ == “__main__”: # step 1 if len(sys.argv) != 2: print(usage()) sys.exit() # step 2 month_name = [‘Jan’,’Feb’,’Mar’,’Apr’,’May…
- I come across syntax with this code ————————————————– #from ThinkPython textbook it was given: d = dict() for c in s: if c not in d: d[c]= 1 else: …
- . Given an array nums of size n, return the leading element. The leading element is the element that appears more than [n / 2] times. You may assume that the majority element always exists in the ar…
- A class should be created that is called PlotViewer. It will serve as the both the view and the controller for the plot generator classes. The PlotViewer class will be able to register any plot genera…
- Please help me with this Python program. In Lab 05 you wrote the code for class LinkedSet. Rewrite that class so it inherits from class LinkedBag. This new version of class LinkedSet should have onl…
- python 3 please, Write function max_magnitude() with two integer input parameters that returns the largest magnitude value. Use the function in a program that takes two integer inputs, and outputs the…
- Describe the difference between objects and values using the terms “equivalent” and “identical”. Illustrate the difference using your own examples with Python lists and the “is” operator. Desc…
- . ms 1 2—si11 2:: for cos and sin. Remember to import the library math before using this command. . Calculate the numerical integral of this function: h(a:) : for a: between 0 and pi/4. Tip: math….
- 19 LAB: Exact change – functions Write a program with total change amount as an integer input that outputs the change using the fewest coins, one coin type per line. The coin types are dollars, q…
- PLEASE MAKE SIMPLE PYTHON QUEUE AND FOLLOW THE FOLLOWING INSTRUCTION BELOW. THANK YOU! 1. Create Python program that check if the input all words/products is QUEUE 2. Use OOP approach for the program …
- Use Gradient descent methods to find a “better” values for theta0 and theta1 that minimizes the error. Gradient descent is an iterative algorithm. It computes values of theta0 and theta1 in the direct…
- Python Programmin g: Q1.Move Terms Function I am now writing a mini calculator for solving equations. How can I write a python program to move terms in order to solve complicated equations? I can now …
- Do Exercise 6.4 from your textbook using recursion and the is_divisible function from Section 6.4. Your program may assume that both arguments to is_power are positive integers. Note that the only po…
- In contrast with Task 1, the program in Task 2 will prompt to the Subject Coordinator (the user) and allow her type in all students’ assessment marks. This is achieved by repeatedly asking the Subject…
- Hi, can you please help me with my assignment? Please see the instruction is below. Step 8. You loaded the climate dataframe at the top of this exercise. Let’s say you wanted to know how many day…
- Simulation Problem: Construct a program to : Simulate the following single-server queueing system for the first 10 customers. (It means that the simulation starts when the first customer arrives i…
- This problem seeks to level up your expertise in using numpy arrays, and doing arithmetic with them. Indexing is also stressed. Let A be an mxn numpy array. Let’s interpret the columns as the coeffici…
- Programming Logic and Design Do you have an example test or (test(s)) from the past that I can download and practice on?
- Define a named tuple Player that describes an athlete on a sports team. Include the fields name, number, position, and team.
- Hello, I need help solving this Lab simulation, It uses Filter and sort a list for Lists and Dictionary statements and I am very new at python on so I need help solving it. It is very difficult. It is…
- Class Material Private String _type Public Module Material(String type) _type = type End Module Public Module display() Display _type End Module End Class Class Furniture Private Material _material Pr…
- I am getting an error on python with the code: subprocess.call(‘clear’, shell-true) the error says the word “shell” is not defined, how do I define a word
- —FULL CODE — class Jurisdiction: “””The election history for a jurisdiction that is a parliamentary democracy. === Private Attributes === _name: the name of this jurisdictio…
- Please help me do the 5.3 part because I cannot understand.. Course Hero | HKUST – myPortal: Home X HKUST Canvas – COMP1021 X COMP1021 Lab 5 – Amazioc X Can you remove document X How do you check your…
- A class that models a GoCard account requires methods to: • set up an account with an initial balance; • adjust the balance when a trip is taken that costs a given fare; • adjust the balance whe…
- I need to write python code for ngram model using add-k smoothing: class NgramModel(object): ”’ A basic n-gram model using add-k smoothing ”’ def __init__(self, n, k): pass def g…
- Previous Page Next Page Page 20 of 20 Question 20 (1 point) Which of the following best describes the order in which these lines are processed in Python? 1. def SayHi(): 2. print("Hi there")…
- Data: all_movies.csv https://drive.google.com/file/d/1cg_oWxjLvHEerU5Tyf6xWvfzIdsmngDB/view?usp=sharing from the http://www.omdbapi.com/ Use Dash and other packages in Python, Make a dashboard …
- would like help . switch letters (string) : Make the following changes to string a) Switch the first two chars with the last two chars b) Switch the fourth char with the third last char For example,…
- 3.6. Function frames2string This function takes a list of 8×8 frames and a fill character. This function iterates over each frame and converts each frame into a string. For each frame in the list o…
- Hello! I am looking for a step-by-step explanation. Thanks so much in advance, I really appreciate it. Learning python is hard! . Sample run #4: Display consumption of invalid country &q…
- You will implement a simple program that uses a two-dimensional nested list to represent a rectangular grid of cells on a map. Each cell contains a value that represents the housing price for a typica…
- how properies are useful in python? compare methods of properties with methods of classes with the help of pythonic code.
- Below is the code for a tic tac toe game, everytime I try to run it some errors occur. The board doesn’t display and everything else please help me understand or fix the error in this for it to run. A…
- is my AVL implemented correctly? class Binary_Search : class __BST_Node : def __init__ ( self , value) : self .value = value self .left = None self .right = None self .height= 1 def insert_element ( s…
- Hello, I need help solving this Lab simulation, It uses Password modifier for loops statements and I am very new at python on so I need help solving it. It is very difficult. It is very confusing sinc…
- develop a program based on incremental development processes of collecting user requirements, designing, coding, testing and debugging to compute your term grade based on the following information: Ru…
- N-Gram Model with Interpolation class NgramModelWithInterpolation(NgramModel): ”’ An n-gram model with interpolation ”’ def __init__(self, n, k): pass def get_vocab(self): …
- I need some help on code. I have uploaded my code and csv file on mediafire. https://www.mediafire.com/file/l4m1oef2nkacgvn/Q2_SQL.py/file https://www.mediafire.com/file/xihgomn8d2w5y5x/movie_cast.csv…
- This question is based on the Auto data set in ISLR package. You will develop a model to predict whether a given car gets high or low gas mileage. You can get the data set using the following comma…
- How would I go about this? Design a program to create two types of utility bills: water bill and electricity bill. Both types of bills have customer’s name and address. They calculate charge differe…
- write a single expression/statement that refers to the specified variables for each part of this question. Assume that the variable fruit refers to a list containing the names (strings) of different k…
- . Question 1 2 pts All questions in this quiz refer to the array pictured below: Write a single Python statement that creates the array (use a Python List) shown above with zeros in each of…
- Select an example of the use of dictionaries. Write a brief summary of the selected example.
- The sales team wants to understand our vendors a bit better. Their… The sales team wants to understand our vendors a bit better. Their questions are: a) Is there any order imbalance per vendor in…
- Hey, can someone help me with this problem using the block in the (drag from here) box, thank you!! . Parsons Problems Problem Statement Calling hop returns a curried version of the function f (x, y…
- It has been rumored that professor has a reading level of a 5 year old. Being embarrassed of this, he keeps his books encrypted so that others cannot find out what he is reading. You somehow stumble i…
- How to write function in Python that takes three parameters a, b, and c and returns their greatest common divisor
- Design and implement a function generate_primes(y, d) that generates the next d prime numbers ≥ y. For example, for y = 20 and d = 9, your function is expected to return a list with values [23,…
- clustering Goal: For this, we will look at clustering using the kMeans algorithm from scikitlearn Part 1: Setup Familiarize yourself with the information available at https://scikit-learn.org/stable…
- Sorry, very long post…but I need a lot of help.. PLEASE!! Directions: Using the following guidelines, cre ate a python program. 1. Create the zigzag.py program from the book listed on pages 72 – 74 …
- “fill the code wherever it s #..” from graphics import * from time import * import random #given top and lower left corner, draw the tires and car body def draw_car(win,p1,p2): carlist1=[] tire_left= …
- Write a function called getColourthat prompts the user to choosea colourfrom”red”, “blue”, or “yellow”. If the user enters anything other than “red”, “blue”, or “yellow”, the function should display a…
- How do I go about this? Use python language only exponent_map: This takes in an integer n as its argument and returns a new function. The new function should take in a list L as an argument and ret…
- Background: The mode is the value or values that occur most often in a list of numbers. Here are some examples: List Mode [1,2,3,2] [2] [1,2,1,2] [1,2] [] [] Q: Write a function CalcMode( ) that : 1) …
- Working with Python to collage an antelope and a jackrabbit to make an jackalope. Here is my code: def animalCollage(): antelope = makePicture(pickAFile()) rabbit = makePicture(pickAFile()) an…
- class Cylinder: def __init__(self, radius, height): self.radius = radius self.height = height def get_volume(self): volume = self.radius**2 * 3.14 * sel…
- I am trying to build a program that will grab a picture from the internet, save it on my local computer, resize the document into a thumbnail and save the new picture on my local machine. I run my pr…
- In Python 3, how do I print a concatenated string “Hello there!” by concatenating “Hello”, “there”, and “!” together. What is the code written out?
- Using python, include docstring if you can. Define a function called max_duplicates (). This function should have a single parameter, which is ex- pected to be a list. The list may contain data of dif…
- So I’m kinda stuck here : Kinda new to functions We are supposed to edit this demo function : def print_example(first, last): for index in range(4): print(first, end = “”) print(last) return None to…
- Use a recursive function named list_max that takes as its parameter a list of numbers and returns the maximum value in the list. You can assume the list contains at least one element. If multiple …
- . We now delete the last column of U, the last two colmnns- of V and the last row and last two. Making the matrices U and V even smaller comes at the expense of changing our picture A. Write 38.7986…
- Can I get the project? Mozart’s Musical Dice Game. How can I attach necessary file to this problem? Description:1 In 1787, Wolfgang Amadeus Mozart created a dice game (Mozart’s Musikalisches Wür…
- We will pass in a list of numbers. Your job is to find the largest number in that list and output its index , not the actual value. Tip: you will need to use a utility variable to store the maximum …
- My test for a valid phone number is not working, it will ask you to renter the phone number every time, then will continue even with an envaled phone number. Please help. def validate_phone_number(): …
- I need help with continue writing codes for this problem. Can you provide me with the codes for this problem? Thank you so much.. COSC 1336 — Programming Fundamentals I Program 9 — Functions, List…
- The data file used in this question is downloaded from (https://www.kaggle.com/aungpyaeap/supermarket-sales) and converted to a CSV file. The supermarket_sales.csv is a delimited text file containing …
- Part 1, 2 and 3 needs to be done by using Python codes.. Enter your total PASS credits: 40 Enter your total DEFER credits: 0 Enter your total FAIL credi:s: 80 Exclude Would you like to enter another s…
- Exercises 353 d) Display the last seven rows of the DataFrame. e) Use the DataFrame method describe (which looks only at the numerical col- umns) to calculate the descriptive statistics for the numeri…
- obviously i was not one of the best students as i got this wrong when i tried it. Can anybody help me work it out so i know for future reference This is meant to be a challenging problem that only the…
- what would be a solution to make commas between the numbers
- Line Integral Convolution In this assignment, we will be implementing Line Integral Convolution (LIC), a technique for visualizing the flow of 2D vector fields developed by Brian Cabral and Leith L…
- Hello, I need to write the code for this exercise: 1) You have to request monthly observations from the API provided by Finnish Meteorological Institute. I wrote this code: import datetime impor…
- Explain the term overloading in the context of Java constructors and methods. [2 marks] (b) Without describing the details of either, outline the relationship between the Java methods System.out.print…
- Sometimes, the primary purpose of regression analysis is to learn something about the slope or intercept of the best-fitting line. When we use a sample of data to estimate the slope or intercept, our …
- TAS KS WRITING SIMPLE PYTHON PO RG RAM: Using a Nested List to Store Employee Data You are going to store table data using a nested list. Imagine this: you are currently working in an IT company and a…
- KINDLY SHARE EXPLANATION WITH PYTHON CODES . Problem 1 Cold Storage started its operations in Jan 2016. They are in the business of storing Pasteurized Fresh Whole or Skimmed Milk, Sweet Cream, Flavo…
- (***IN PYTHON***) plagiarism: This Boolean function takes two filenames. If any line occurs in both files, return True. If not, return False. I suggest using nested loops. With nested loops, we call t…
- You have just been hired by a tech startup that is planning on releasing a new e-mail service to its clients. They have asked you to create a prototype of this service using your Python skills. The fi…
- Please can you assist me. How do you create Trace table using 12, 33, 45, 67, 999 for the following program that will accept an unknown number of integer values, as well as find their sum and average….
- Age prediction from facial images we are going to develop a program (in python) that would be able to guess age of a person given his/her photo. It is expected that you will first do the principal com…
- question 8 missing # PROBLEM 8: continuing to add mechanisms for Checking books Out of and Into libraries # Add the following methods to the Book class (no need to modify PaperBook or ElectronicBook) …
- %matplotlib inline import numpy as np import matplotlib.pyplot as plt a = 1 + 5 b = 2 c = a + b print(a / b) print(a // b) print(a – b) print(a * b) print(a**b) a = np.array([[3, 1], …
- Question 1 (1 point) Given the following program segment, select the minimum set of data required to test all cases. print "what was your score on the test?" input score if (score 1 90) them…
- stuck on the hierarchy of dice values and the higher value wins
- . * C a park.instructure.com/courses/652844 Show Instructions STAY Sorng 1 2127 Home Syllabus D Question 20 Announcements Consider a data file containing a student name and three scores per line, li…
- Copy the countdown function from Section 5.8 of your textbook. def countdown(n): if n <= 0: print(‘Blastoff!’) else: print(n) countdown(n-1) Write a …
- made simple crout method program (code) using python
- Greedy Residual Fitting: The relevant link: https://drive.google.com/file/d/1Mvt3EDArVGdIEiN9h-OmvhB6yfApIGt0/view?usp=sharing We start using a greedy approach to multivariate regression. Assume a dat…
- Solve the problem in an algorithm Code it in Python Problem: Cookie Calories A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10 “servings” in the bag and th…
- I need some help with this assignment. We were required to use Python for this. I have done the first 3 and I believe they are right. I would love some help with the other 2. Problem 1: Find the gener…
- I’m making a data collector with the OPC protocol. I want to have all the tags in the json file read according to the time interval of each one and that it did not depend on the end of the reading of …
- Write a program using integers user_num and x as input, and output user_num divided by x three times. Ex: If the input is: 2000 2 Then the output is: 1000 500 250 Note: In Python 3, integer division d…
- What is the best way to write function for checking the speed of drivers. Function has one parameter: speed. If speed is less than 45, it should print “ok”. Otherwise, for every 3 miles above the sp…
- A program is needed for playing a game with the computer. First, generate a random integer in the range of 6 through 9. This will be the computer’s pick. Then generate three random integers for the hu…
- Displays a rectangle by outputting lowercase letters, starting with a, in a “snakelike” manner, from left to right, then from right to left, then from left to right, then from right to left, w…
- Question: Answer each of the accompanying inquiries utilizing R. Show your work by incorporating any R code in your reactions. You will observe this most straightforward utilizing R-Markdown, which wi…
- Python Programming Create a class named Employee which contains an employee name, available to the entire program (public), and an employee ID number and hourly pay rate, available only to the me…
- The question is here: http://hr.gs/eq5 My code is here: if __name__ == ‘__main__’: list = [] list1 = [] final = [] for _ in range(int(input())): ?…
- Hello, I need a python program that does the following: allows the user to play Rock, Paper, Scissors against the computer. When the program begins, you randomly choose a number from 0 to 2, which wil…
- ### School Summary * Create an overview table that summarizes key metrics about each school, including: * School Name School Type Total Students Total School Budget Per Student Budget Average Math Sc…
- I have a function that generates random strings of string length m at random in between 1 and max ( 1<=m<= max ). The m -th character is set to 0 in order to mark the end of the stri…
- Implementing a Stack ADT using a linked solution. The implementations are linked Nodes. class Node: def __init__(self, data, node=None): # Initialize this node, insert data, and set the ne…
- python 3; Write a function that calculates how many cupcakes we need to bake for the party. The function will take the guest list as a parameter and will return the number of cupcakes. We assume…
- Looking for simple python code using only standard libraries (not even numpy and pandas) for implementation of Kmeans and bradley fayyad reina algorithm ====================== You will write the K-Mea…
- 2 The Problem There are three related investigations in this assignment: Power Usage, Power Modelling and Power Simulation. You can use Python programs, Bash scripts and/or Jupyter Notebooks for the a…
- So the function I have to write is as follows: In python, write a function that takes, as arguments, a positive integer n and a string, myString, and creates a file, named nCharacters.txt, containing …
- Turtle Lab #4 Going on a Vacation For this lab your turtle will go on a vacation to the Procupine Moutains Wilderness State Park (https://www.porcupineup.com/#) in Michigan’s prestine Upper Pennisu…
- I need help on Decision tree A bank wants to use performance of an in-house credit product to create risk model. A sample of applicants for the original credit product was selected. Credit bureau data…
- ary > CIS261: Python Programming | home > 4.6: Membership & identity operators E zyBooks catalog ? CHALLENGE ACTIVITY 4.6.1: Boolean operators: Detect specific values. Write an expression us…
- Hello, I am trying to figure out how to make a tic tac toe game out of this. Any chance to some assistance? I have provided a sample code below Python code: “”” File: guessversion1.py Lays out the …
- 1 Activity 1 – Turn in this one Working together as a group (I don’t want one person to dominate this question!), and without reviewing your notes or the slides or videos, see if the group can re-crea…
- I need help with this implementation of an AVL Tree – FIND_MIN & FIND_MAX Skeleton code is provided – Must be in Python AVL Tree Implementation Complete the AVL tree implementation by using the sk…
- python only python only python only python only python only python only python only python only . You will use Python version 3.6.5 or later. ~ . The only external frameworks/libraries allowab…
- I need to learn how to append a list of users and their email addresses from a csv using regex in Python.
- What is the difference between objects and values using the terms equivalent and identical in python and what is a function that modifies a list passed in as an argument?
- . These exercises are designed to increase familiarity with the basic syntax of reading and writing with files. open() function. close() method read(), readline(), readling "mes() methods write…
- Create a conditional expression that evaluates to string “negative” if user_val is less than 0, and “non-negative” otherwise. Example output when user_val is -9 for the below sample program:-9 is nega…
- Given this program and its output, determine which object is accessed each time. str1 = “Hello World” str2 = “123” print( ________.find (“World”) ) print( _________.find (“World”) ) OUTPUT: 6 -1
- def invert_dict(d): inverse = dict() for key in d.keys(): values = d[key] for value in values: if value not in inverse: inverse[value] = [key] ?…
- python question. i want you guy to fix mine code :B3.py i want to the result that return like: >>> wchange(2, []) >>> wchange(5, [1, 2]) [] [1, 2] >>> wchange(1, [2]) >…
- Problem Statement: GMU members Implement a simple program which takes details of people of GMU and displays all details with respect to their role. The purpose of this lab is to gain experience in pyt…
- Given the following recursive function, mystery_func, answer each of the following questions. def mystery_func(a_word): if len(a_word) <= 1: return a_word elif a_wo…
- { “cells”: [ { “cell_type”: “markdown”, “metadata”: {}, “source”: [ “<h1>Scraping Fidelity.com</h1>\n”, “In this assignment, you will scrape data from fidelity.com. Th…
- Objective Work with files Working with formatted output Work with dictionaries Assignment Part 1 program to ask for a series of part names and prices. Ask for a part name until the user enters a blank…
- CS 112 Program Design Section 26.11 is a part of 1 assignment: Lab 11 Storing DNA Sequence Information Learning Objectives: Dictionaries String methods DNA translation Random Numbers For this lab, …
- Consider the following code. What is the output of divide(2,4)? def divide(a, b): z = -1 try: z = a / b except ZeroDivisionError: print(‘Can not divide by zero’) finally: print(‘Result is’, z) a Can…
- Problem: I need help writing function that does these three things at the end: A function to calculate the mean of a list of numbers and print the result. A function to calculate the median of a…
- # CS2021 – Lab07 # A “simple” adventure game. class Player(object): def __init__(self, name, place): “”” player object.””” self.name = name self.place = pl…
- Using the Queue, help me to edit and to implement a new function called remove_item(self, item) that searches through the queue, and removes and returns the item if it is found. If the item is not…
- Question 1.3 is no need to work. It can deal with both cases of even and uneven sampling. def integral(y, dx): # function c = integral(y, dx) # To numerically calculate integral of vector …
- Implement RDT 2.2 over an unreliable UDP channel with bit-errors Project description: The TCP/IP stack has five layers, namely application, transport, network, link, and physical. In Phase 1, each stu…
- Function 1,3 please This is the dictionary https://drive.google.com/file/d/1WfipW3gtr4OBCmWkD7Ocvp2uzcioKxSU/view?usp=sharing. T Normal 1 No Spac… Heading 1 Head Paragraph Sty 1 D P3 Task 1: Sorting…
- I am unable to solve this python problem “”” Task 1: Assign to a variable called “theList” the list that contains “horse”, “bee”, and “cat”. Print this list. “”” print(“Task 1:”) “”” Task 2: Add “Char…
- I have a very long and confusing word question I need help writing an algorithm on . I don’t know where to start. please help. The jackpot of a lottery is paid in 20 annual installments. There is als…
- Could you possibly aid with this. Make sure to separate the function and main file, make sure to only use 1 return statement in the function and also , use the .format (format) method for python. Ques…
- Project – Create A Film Program ( like a simple Rotten Tomatoes) – PYTHON (Please help to the best of your ability with whats provided it was all I was given and I am super lost.) The instruct…
- . 7.2 Phone Number Converter This lab will be available until January 28th, 11:59 PM EST You are very likelyr familiar with phone numbers like EDD-GOT-MILK that many oompanies use so the number is e…
- Question-Based o n Privacy and Security in Online Social Media. Jupyter Notebooks / Google Colab is strongly recommended for doing this Question and showing analysis, graphs, and code. Link for Parler…
- Please make these 4 small Python programs Thanks in advance… Program 1 Write-a Python Program to Find is user input (Number) is Divisible by Another users input (Number) and display it. You should c…
- Write a Python script that reads in a phrase, calculates the average word length in that phrase, and then displays the result. As an example, the phrase “Thirty days hath September” has an averag…
- Can you define each artificial neural network ? with brief explanation of their function? Epoch Dropout Nodes Hidden layers Activation relu to sigmoid Softmax to sigmoid Intitalizer(Henormal) Regu…
- coding with python. i want the algorithm so i can understand it. its complex. PROBLEM 5 The jackpot of a lottery is paid in 20 annual installments. There is also a cash option, which pays the winner 6…
- . Task 2: The Bounded Stack Class 1. Implement a class named BStaclc An instance of this class is a stack with a limited capacity. Like the bounded queue you saw in class, this bounded stack will re…
- I have attached a screen shot of an equation below as it has special character.
- Implement Gibbs sampling in R, Matlab, Python, or Winbugs and obtain the posterior distribution of θ (plot the density). . 3. Genetic study. A genetic study has divided n = 197 animals into four ca…
- Data Mining for Business Analytics: Concepts, Techniques, and Applications in Python (First Edition) Galit Shmueli, Peter C. Bruce, Peter Gedeck, and Nitin R. Patel. 2019. Problem 10.3 Sales of Riding…
- You have to complete following exercises Create two variables x and y enter x = 3 and y = 3 Task1 Create nested list based on x and y for example as mentioned above and fill them with 0 [[0,0,0]…
- . – Exchange a and b with b and a + b. – Increment i by 1. . Write b (nth Fibonacci number). Problem 7. (Sum of Powers) Write a program called sum_of_powers. py that accepts n (int) and k (int) as c…
- Questions 1, 3,4, and 5.. 1. In the given data set, identify the number of missing values by column; treat the missing values by the following two methods: . keeping the rows with valid values . fi…
- Tiles remaining after the move: [‘B’, ‘S’, ‘U’] Calling getTiles(myTiles) function… Printing the tiles. Tiles : B S U E I N A Scores: 3 3 1 1 1 3 1 his should be the output of the code i am stuck to…
- ONLY allowed to use “Numpy, PIL, matplotlib, os, and random” First clone git below! git clone https://github.com/zalandoresearch/fashion-mnist.git fashion_mnist_dataset I finished number 1. I need hel…
- Instructions Add three methods to the Student class that compare two Student objects. One method ( __eq__ ) should test for equality. A second method ( __lt__ ) should test for less than. The third …
- Hi, can you explain how to fix this code? Please don’t copy the answer from other websites. Thank you! 3. Write a function file_analysis that takes a file handle as a parameter and returns a list of t…
- Can you explain the importance of knowing how and when to use and modify variables, and using branches in a car rental script? Examples of types of errors and methods for fixing them.
- #training model from sklearn.linear_model import LogisticRegression lr = LogisticRegression(max_iter = 10000) lr.fit(train_x,train_y) #getting confusion matrix from sklearn.metrics import confusion_ma…
- # Please help me to check my code for this error: # There is an assertion error if something is not defined in the # def exercise03(neighbors,split): # NameError: name ‘neighbors’ is not defined # Nam…
- I have typed this program as a hobby; Everything works except when I type in the programmername “Jeffrey?” Why does the program stop and can you debug the program so it produces its proper output for …
- tm269 python The following function should go through all the integers in the argument list, count the number of even integers (i.e. integers divisible by 2), and return that count. def even_count(int…
- For this you are given two files. Booklist.txt and librarylog.txt Booklist.txt includes a line for each book in the library in the following form: <book name>#<number of copies>#<r…
- (25 points) Model Your manager wants you to implement the following approach that will predict all price jump events. 1. Randomly sample the dataset you synthesized in step A, creating N < T sam…
- Please solve only 4 c) through Python. what is the truth y(x) of the function? give comments in program and screenshots of program and output 4. Solve the following ODEs (from above) for y(r) again us…
- Project 1 In video game culture, an adventure game is a video game in which the player assumes the role of a protagonist in an interactive story driven by exploration and puzzle-solving. Early adv…
- Your company has invented a new mixer drink – to be mixed with spirits such as vodka or gin as a kind of cocktail, but sold to the home market. You have been asked to estimate how much the company sho…
- a program that uses a custom function named as you wish and the main function. In main, prompt the user for a first name and an integer less than 10 and then execute the custom function wit…
- I’m having difficulty fixing my seek function. The question prompt for the seek function is in 4.1.PNG, data definition of a Trie is in 3.1.PNG. The problem with my function is that it doesn’t properl…
- Hi, could you please help me to run this program, when I was trying to test it, it gives me an error message rather than unexpected indent or out of the loop. I can’t figure out where is the problem. …
- Write a program to record the details of employees in an organization (e.g., Name, ID, Qualification, Address, etc.) in a dictionary as follows: Employees = {(Name, ID): (Age, Qualification, Address, …
- Problem 3.1 [10 points] Purpose: Edit/modify a program that uses if and boolean variables. Modify the program in the attached program to print the correct answer for any year using the following fo…
- JRoBLEM 2 Each student in a course needs to submit 3 lab assignments and take 2 tests. Design a program to do the following. Ask the user to enter 3 lab scores and 2 test scores. Calculate and displa…
- def exercise01(): ”’ Data set: Iris Return the first 5 rows of the data including the feature names as column headings in a DataFrame and a separate Python list containing target names ”’ # —-…
- Geneate a python script that parses out the Bionet file. And stores the enzyme name and cut site in a dictionary. For the dictionary to be useful later, we need to convert the cut site into a regular …
- # Coding Challenge 1 # Name:Callem English # Student No:1014184 # A Simple and Compound Interest Calulator def print_intro(): print(“Welcome to the Wolving compound interest calculator”) pri…
- . Content MindTap – Cengage Learning *Homework Help – Q&A from Onl C ng.cengage.com/static/nb/ui/evo/index.html?deploymentld=57770810195489292479667112&eISBN=9781337277976&…
- Can you please explain to me how to program a small python library that parses .ma (maya ascii) files and returns a list of dictionaries describing mesh objects. Mesh object description has to include…
- Giving a string of odd length greater 7, write a function that returns a string made of the middle three chars of a given string. Call the function get_middle print(get_middle_three_chars(“Hi Batman”)…
- Chocolate orders made simple. Ask the user for white or Dark Chocolate. Ask for their chosen size: small, medium or large. Then print the cost: For Dark, Small = $3, Medium = $4, Large = $5. White cho…
- Section 6.2 of your textbook describes incremental development. Do the exercise at the end of that section: As an exercise, use incremental development to write function called hypotenuse that retu…
- Hi, Im writing a python program and am stuck with defining some functions to clean up my code and one to use for repeating code. There are some must and must not restrictions which must be followed:…
- THE DATA FRAME arr = np.arange(50).reshape(10,5) df = pd.DataFrame(arr,index=’A B C D E F G H I J’.split(),columns=’V W X Y Z’.split()) df Drop row J, make sure this is done in place
- done with Regex function name is_valid_bc_license_plate returns true if the parameter matches this pattern: three letters then three digits, or three digits then three letters, or two letters, digi…
- This problem should not be solved with loops. For this assignment take all your loops and replace them with list comprehension, map functions or numpy array math. write script that will count the numb…
- . In this problem, you will be creating a plot that looks identical to the following figure: Polynomial Color Gradient 10 violet indigo blue 8 green yellow orange 6 red Figure description: A graph t…
- #create the function named exampleFive, that will have one input array parameter and one singular #return an input array with second parameter added to it When I use the .append it always returns “non…
- Tell in the space below, why the following code does not work. Your answer should be brief (one line) and should not be an error message from Python : Reminder: The code uses Python’s sort() method, w…
- Solve both parts below in Python Code: 1) Train the network for k epochs, and then using warm start continue the training for another k epochs (4 points). Here k is a parameter of your choice. …
- Murach’s Python Programming Case Study by Section: Blackjack For this case study, you will develop a program for a Blackjack card game using the skills that you learned in Murach’s Python Programming….
- class Parabola: def __init__(self, h, k, a): ################################################################################ # PUT YOUR CLASS DEFINITION ABOVE! #…
- Modify your program from Learning Journal Unit 7 to read dictionary items from a file and write the inverted dictionary to a file. You will need to decide on the following: How to format each dictiona…
- Use python create login screen page with sign up and forget password option
- I need help with this question In PYTHON ONLY PLEASE!!! 8.17 Lab: Strings of a Frequency Write a program that reads whitespace delimited strings (words) and an integer (freq). Then, the program output…
- Can someone please write a Python code for the given Tasks. Thank you. An example for the Input File is on the bottom right.. Task 1: Finding the longest open reading frame Write a function tha…
- create class called Employee Use the init function to collect the employee information Name, email and mobile number Instantiate the Employee class two times with different information Display all the…
- *USE JUPYTER NOTEBOOK* A python program that does the following: 1. Reads a ‘numbers.txt’ file (2 lines at a time) that contains numbers (integers) 2. Reads a ‘operators.txt’ file (1 line at a …
- Drive link to dataset file : https://drive.google.com/file/d/1GYEgM-ZbZLPV4OPygPPBTsFJQ-IbJorL/view?usp=sharing. Download the “teapots.mat” data set containing 100 images of teapots of size 3…
- Write a program that reads the records from the golf.txt file written in the previous exercise and prints them in the following format: Name: Emily Score: 30 Name: Mike Score: 20 Name: Jonathan Score:…
- Write a function that takes two lists of values, return a merged list from lst1 and lst2 in an order of: non-overlapping lst1 elements, non-overlapping lst2 elements, and overlapping items in the same…
- Please wrte a program to save the students and subjects information which is registered by a student. The standard procedure is as follows: The system will run and greet to say hello and welcome to th…
- Consider 10 assets, each defaults with probability p, independent of each other. These assets are bundled into one asset, and this asset defaults if two or more of the original assets default. a) Calc…
- How do you solve this? . Write a program that prints We like Python ‘ s turtles! 1000 times. . Write a program that uses a for loop to print One of the months of the Year is January One of the months …
- How to make this matlab code to python? X = cell(1,k); [X{:}] = ndgrid(v); Especially these two lines? Really appreciate it. function y = selectk(v,k) m = length(v); X = cell(1,k); [X{:}] = ndg…
- please assist Use Seaborn (FacetGrid and scatterplot) to create six scatter plots, one for each zipcode in the list of zipcodes [60623, 60663, 60609, 60660, 60615, 60622]. In each zippcode scatter plo…
- Please solve problem 1 and 2 Problem 1 template(please follow it) Problem 2 template (please follow it) . Goals In this homework you will: 1. Write higher order functions that accept one or more …
- Reflect on your most recent visualisation project and try to sketch or write out the approach you took. What stages of activity did you undertake and in what sequence? Did it feel efficient or chaotic…
- I need help developing a Python program that displays the value of the pi variable up to five decimal places after the assignment of pi as 3.141592653589793238.
- Define a function named “countCharacter” that accepts a sentence as parameter (string) and calculate the total number of letters, total number of uppercase letters, total number of lowercase letters, …
- I’m having issues generating folders named after each PDF title, scraping images on each PDF file, and then storing those images in each folder. My current code gives me the below error: FileExis…
- Hi, Can you please help me out with my assignment? It is asking to extract the latitude and longitude from https://gbfs.citibikenyc.com/gbfs/en/station_information.json. Below is the instructions….
- please write program to print first 10 odd numbers.Use conditional statement. python please
- INSTRUCTIONS : 1) Python Programming 2) No use use of built in libraries and built in functions 3) Use comment out for understanding better 4) Use Functions name and parameter name is same as given in…
- I am not understanding why the output for the all in one is not right. This is what I have. w7_last_first.py from MyLib import * cont = “y” #looping cal = Calc() while cont == ‘y’: #exeption to ch…
- write program. IGHT bj Based on the given simplified UML class diagram below for modelling a class of sale record COP objects. write and define a Python class with the following requirements. SRecord …
- I need help solving these in python3 to study: Given a string for a number spelled out as a word, return the number as an integer. The number will only be ‘zero’, ‘one’, ‘two’, ‘three’, or ‘four’. …
- import sys #Initial beginning balance account_balance = float(500.25) #defines balance def account_balance(): #print the beggining balance amount print(“Your current balance:\n$%.2f”%account_bal…
- Written in Python 3. Due as soon as possible after date posted. Reference the sample lists nouns_v1, nouns_v2, nouns_v3, no_change_nouns, irregular_and_exceptions_singular and irregular_and_exceptions…
- Instruction algorithm (pseudo code and flowchart) and program for the given problem below and use #define directives or const (as needed) and other arithmetic operators. Determine whether the letter e…
- Suppose message a is one block long. Suppose that an attacker has received the MAC t for a using CBC-MAC under some random key unknown to the attacker. Explain how to forge the MAC for a two-block mes…
- File Format Each input file will contain a list of records with one record appearing on each line of the file. The format of a record is as follows: @TWEETER “TWEET” YEAR MONTH DAY HR:MN:SC Functions …
- def time_seconds (time) : “””Take a time in MM:SS format and return the corresponding number of seconds Parameters: time: str — time in MM:SS format Return: int — number of seconds of a time specifi…
- I need help writing a class definition named Account. The Account class will have data attributes for the account owner’s name (str), the account number (int), and the current balance in the…
- Graduate students and undergraduate students who are taking CS 410 for master credit will need to add an additional feature to their program to identify the defective part(s) of the 9×9 grid. It shoul…
- Arrays 1Which is the indexer/subscript operator used to access an array? < > ” ” . { } [ ] 2. int[] items = new int[] { “hello”, “world” }; Debug.Log(“2nd is: ” + items[1]); which is correct? Wo…
- 2-1 Discussion: Python: Scripting or Programming? Python is used by thousands of people to do things from testing microchips at Intel, to powering Instagram, to building video games with the PyGame li…
- Data Ink Maximization Steps For each of the visualization tasks below, which you have already created in previous labs, modify your code so that it increases the data ink ratio by accomplishing the fo…
- Hello, may I please get some help as to how to program this code in Python?? I have no clue how to complete my project, never-mind start it and I am very afraid that my grade may drop. Thank you in ad…
- How can I get the below result? You are preparing an activity for the orientation camp, and you are interested to develop it with reference to a number guessing game (18:RAMP][=) from a popular TV sho…
- Python language that asks the user to enter a word and a specific letter to be replaced with the % character. If the letter entered does not appear in the word, print an appropriate message. Hint: – r…
- for number in range (2, 6) : print (number) Worth 1 point Checkpoint 4.19 Write a for loop with the range function that prints the following output. Name the target variable number. 100 200 300 400 50…
- Write main program that calls the ship_cost function and in a while loop repeats the calculation as long as the user answers ‘yes’ to a prompt asking if they want to repeat. here is the while loop: # …
- mu-q1.py: Complete the following unfinished script so that when executed, it will prompt the user to enter the postal abbreviation for one of the ten provinces in Canada and print out the largest ci…
- What is the value of the autocorrelation function of lag order 0? options are 1 .Above 0.95 2. 1 3. 0
- a program that reads dates from input, one date per line. Each date’s format must be as follows: March 1, 1990. Any date not following that format is incorrect and should be ignored. Use the find()…
- What would the Python code for this question be? Question 3 [15 Points] Write the most_similar_patients function, which identifies the patients that have symptoms that are the most similar to those o…
- I want to create a class named HeadingParser that can be used to parse an HTML document, and retrieve and print all the headings in the document. I need to implement my class as a subclass of HTMLPars…
- CIS 115 Final Project A Ten and Thirteen Digit ISBN Page 1 of 3 Ten digit ISBN numbers are created so that the first nine digits are information digits and the last digit is a check digit. This last n…
- Please see the question below . The university is creating a new application that can either assign student awards and bursaries or provide academic warnings based on several criteria. The universit…
- Directions: * Complete the graph algorithm functions given below. Note that it may be helpful to define auxiliary/helper functions that are called from the functions below. Refer to the README.md file…
- Using python mrjob (mapreduce) How do i output twenty most common words from a zyz.txt file How do I output all words from a xyz.txt file
- You are the head programmer at Python Inc. You are tasked with writing a program to take input for an employee. Prompt the user for a name, hours worked, and hourly rate. If the employee works over 40…
- Tasks 1. Develop an algorithm using pseudocode or a flowchart to: 0 access the confpack text file and read the records into an array 0 access the employees text file and loop through the records (chec…
- Can you plz check what’s wrong with the code please, I cannot open the file. thank you . FileNotFoundError: [Errno 2] No such file or directory: ‘parker. txt’
- starter code can be found here: https://pastebin.com/mebYQdbg Programming #2: Word Game 0 Starter code: 0 wordlist. tact (download this into the same directory as your .py files, but don’t submit i…
- Hello, I have some problem with a python programming. I wanted to make a model for predicting the heart disease and predict disease for the following two persons. age sex cp trestbps chol fbs restecg …
- n robots are placed along the edge of a circular area at the middle of the OAT. Each robot will move along arbitrary tracks inside the circle while leaving behind a heat signature along its trail. How…
- . Write a python script that is used to update a machine’s local hostname resolution file. The details of how it works are below: It requires one argument on the command line: the absolute path to a…
- What is the output of the following odd_stuff function? def odd_stuff ( ) : number = 4 for count in range (1, number + 1) : print (number) number = number / / 2
- Decision Tree, Linear Regression of this csv table using python? var_0 var_1 var_2 var_3 var_4 …
- dont copy This link has my code and the example output https://files.fm/u/vpncrxvcz My output is : barely -> FOUND carats -> FOUND confabs -> FOUND corepulent -> F…
- my json file is not loading even though its in my juypterhub account and it ‘s saying that there is “No such file or directory”
- Write a function first_character(s) that takes a string input s and returns a tuple , the first value of which is the first alphabetical character in the string, and the second value is the first deci…
- “””CP1401 – Practical 8 – Debugging.””” # Debug program 1 – friends’ names names = [“Abby”, “Jerome”, “Olivia”, “Monique”] print(“My friends’ names: “) for i in range(1, len(names)): print(f”{…
- I’m working on the Highway Robbery project for CIS 115 and I keep getting a name variable undefined error. I’ve looked through everything here and I’m stuck. My code is exactly(aside from some variabl…
- In Python. In the task provided, you will be provided with a CVS file of books which will have information such as the title, authors, language, rating, publisher, and page count. Note: the CVS file n…
- . I: Fonz-Lt rl: deli: – C1353 Fr: ‘ AMEEF’éEDJC’SEPH’B-EEDAVOMlDEr’Downlcradsg’ 55ignment3-CDMF1D’lE-WmlerZDZEpdf ASSIG NM ENT 3 DEPARTMENT AND COURSE NUM BER: COMP 1012 Question 2: Calcul…
- Hi, I need help with implementing a function inferred_conditions(pos_ex, neg_ex) . Please show me a step by step guide and comments/ explanations on how you wrote the methods you used I am at straws o…
- In Object-Oriented programming, an Object communicates to other Objects to use functionality and services provided by that object. Have you wondered how an object of a class is an attribute of anothe…
- Given Program need to make in future work need to be followed. Question need to be answered (No need to build programs) What information is stored in data file for this project? Are all the d…
- please help me to solve this question, in order to code you should use python 3 and may using spyder or Jupyter, for the csv files you can open this link (below) to download it then merge it together …
- Write a function max_magnitude() with two integer input parameters that returns the largest magnitude value. Use the function in a program that takes two integer inputs, and outputs the largest magnit…
- How do you do energy calibration on python for PHY 3802L class ?? This question is from Compton scattering lab.
- ##FIX THE ERROR## import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.datasets import make_blobs from sklearn.model_selection import train_test_split from sklearn im…
- Could you please provide a python program to compare alternative weather forecasts. For 3 or 4 of the following weather forecast sites: weather.yahoo.com weather.com weatherchannel.com weather.cnn.com…
- How to run Birch Clustering on MTCARS dataset of 20 rows and 10 columns in R? Need the R-code. Birch package is not available for latest R. Hence, even Python Code would work. Objective is to run B…
- What is the proper convention for the layout of a program (Python)