tutorbin

python homework help

Boost your journey with 24/7 access to skilled experts, offering unmatched python homework help

tutorbin

Trusted by 1.1 M+ Happy Students

WhatsApp Support

Get Instant
Online Homework Help
via WhatsApp

Get instant homework help from top tutors—just a WhatsApp message away. 24/7 hw help support for all your academic needs!

A
S
M
R
★★★★★
2M+ students trust TutorBin
Your WhatsApp Number
phone
or
⚡ Instant reply
🔒 100% private
👨‍🏫 Top tutors
🌍 All subjects
*Get instant homework help from top tutors—just a WhatsApp message away. 24/7 support for all your academic needs!
2M+ Students Helped24/7 Live SupportExpert TutorsAll Subjects CoveredInstant Response100% ConfidentialTop Rated ServiceMoney-back Guarantee2M+ Students Helped24/7 Live SupportExpert TutorsAll Subjects CoveredInstant Response100% ConfidentialTop Rated ServiceMoney-back Guarantee

Recently Asked python Questions

Expert help when you need it
  • Q1:In this coding project you will write a simple client-server program using python sockets. Your program will emulate a simple chat client. For extra-credit , turn your chat program into a simple ascii multiplayer game (see below for spec).See Answer
  • Q2:Introduction to Engineering Computing 1. Write single line expressions (in each cell) that will accomplish the following in Python using Numpy from the following arrays A and B. a. Sum the columns of A to create a 1 x 2 vector p. b. Sum the rows of в to create a 1 x3 vector q. c. Sort each column of A independently in ascending order. d. Sort в such that the rows are kept together but the second column is in ascending order. e. Join A and B to form a single 3 x 4 array c.See Answer
  • Q3:2. The solubility of oxygen in water is a function of the water temperature. Let S represent the solubility of O2 as millimoles of O2 per liter of water. Let T be temperature in °C (see data below). a. Generate a 3rd order polynomial fit for the data. On a single matplotlib figure, plot the experimental data (in the table above) as black square markers as well as the 3rd order line of best fit as a dotted black line. Add axis labels and gridlines. b. Use your model fit to estimate S when T = 8°C using Python.See Answer
  • Q4:3. Solve the following system of simultaneous equations for x, y, and z using Numpy in Python. 3x + y -z = 8.5 -2x + 7y + 0.5z = 25.5 -x + 2y = 7.5See Answer
  • Q5:4. (4 pts) Using estimates of rainfall, evaporation, and water consumption, the town engineer developed the following model of the water volume in the reservoir as a function of time: V(t) = 10^9 + 10^8 (1 - e-t/100) - rt Write a function called reservoir (t) to compute the volume in the reservoir as a function of time. The function should have one argument, time. For r, user = 107 L/day. a. Plot the volume in the reservoir as a function of time (0 to 100 days; use r= 107 L/day). b. Use the Scipy fsolve function and your reservoir function to compute how long it will take until the reservoir is empty. Again, use a value of r = 107 L/day.See Answer
  • Q6:5. (6 pts) The circle described by the equation x² + y² = 4 and the ellipse described by the equation x²/4 + (y-1)²/ 9 intersect at three locations, as shown in the diagram at right. Use the fsolve function in Python in combination with a user-defined function to determine the x- and y-coordinates of all three points of intersection. See Answer
  • Q7:6. The typical soda can is 2.5 inches in diameter and 4.5 inches high. You would think that the cans would be designed such that the total surface area is minimized, thus minimizing total material costs. However, the size of a soda can (2.5 inches in diameter and 4.5 inches high) is NOT the optimum size that minimizes total surface area. a. (9 pts) Using Python, solve for the size of a can that would minimize the total surface area that has the same volume as the typical soda can (2.5 inches in diameter and 4.5 inches high). b. (1 pt) Based upon your result from part a, why do you think soda cans are designed the way that they are? In other words, why do you think a soda can is 2.5 inches in diameter and 4.5 inches high and NOT the dimensions you find in part a?See Answer
  • Q8:1. Write a python program that asks a user to enter the value for three resistors R1, R2 and R3. Include one or more functions that: a. Validates the data by ensuring a positive numeric value was entered. If the entered number is negative or zero, a message should display that this is not a valid resistance. Please enter a positive number. b. Calculates the total resistance when R1 & R2 & R3 are in series configuration. Then display a message: "if R1, R2 and R3 are in series, then the total resistance is _". Refer to the figure below. You can use the following equation. c. Calculate the total resistance when R1 & R2 & R3 are in a parallel configuration. And display a message that "if R1, R2 and R3 are in parallel, then the total resistance is _". Refer to the diagram below. You can use the equation. R1 R2 R1 R2 d. Calculate the total resistance when RI & R2 are in parallel, and the result is in series with R3. And display a message that "if R1, R2 are in parallel and the result to be in series with R3, then total resistance is Refer to the figure below. You can use the equation: R3 R3See Answer
  • Q9:2. Write a Python program that plots the following two functions in one graph for x between -2 and 2 with 100 samples. yl-2.5x-2 y2-x^4-6 a) Turn the grid on the graph. b) Add the title as "two functions plot". c) Add the x-label as 'x' and y-label as 'y'. d) Find the approximate coordinate of the points where yl collide with y2. What is the meaning of these points? e) Plot the points (found in part d) on the graph of the two functions with red color and symbol. f) Add the label to each plot and display the legend. g) Your result should be as shown below. 75- 3.0 2.5- aa- -3.5 Two functions plot 31 point 2 -20-15-10-05 00 05 10 15 20 Save the python program for this question under "MidtermQ2.py"See Answer
  • Q10:1. A current-carrying ohmic metal wire has a cross sectional area that gradually becomes smaller from one end of the wire to the other. The current has the same value for each section of the wire, so charge does not accumulate at any one point. (i) How does the drift speed vary along the wire as the area becomes smaller? (a) It increases. (b) It decreases. (c) It remains constant. Explain (ii) How does the resistance per unit length vary along the wire as the area becomes smaller? Choose from the same possibilities as in part (i).See Answer
  • Q11:1. Port Entries Package Create three new Python modules, one for reading the dataset, one for finding ports, and one for comparing two ports. Put the three modules (util.py, find.py, and compare.py) into a package named port_entries. 1a. Data Utilities Create a util.py module that has two methods: download_data, get_data, and parse_data. 1b. Finding Items Create an find.py module that has two functions, port_by_state and port_by_name. Both functions should return the ports that match the given name and/or state. port_by_state should take one parameter, the state name, while port_by_name should take two parameters, the port name and the state. However, the state is optional so if the user does not provide the state, the function should search across all states. 1c. Comparison (15 pts) Create a compare.py module that calculates comparative information between two ports for a given date. Given a port code and two date strings as parameters, the diff_dates function should return the difference in values for each measure between the two months. Given two port codes and a date string as parameters, the diff_ports function should return the difference between ports in values for each measure. 1d. Package Make sure all three analysis modules live in a single port_entries package. Add an __init__.py file for completeness. It may contain documentation and the pass keyword. See Answer
  • Q12:Part 1 - Write-up Consider these two scripts that determine whether a number is divisible by 5 or not: DivByFive_NoFunction.py and DivByFive Function.py Please write a brief paragraph (4-6 sentences) about the following: The differences between the two scripts The pros of each of the scripts The cons of each of the scripts Why functions are useful See Answer
  • Q13: i. T F Python lists are mutable, but strings are not ii. T F len() function is used to find the length of strings and lists iii. T F Python comments start with the symbol # iv. T F A function can return only integer type values v. T F In Python "4" + "5" is "45" vi. T F range(start, end) function does not include the end value inthe sequence generated vii. T F A list can hold any type of elements vii.F Opening a file in "w" mode will clear the contents of the file ix.T F"in" keyword is used to check for membership in strings x. T F Strings are not iterableх. Т xi. T F The output will show "True" for the expression: "abc"> "aaa" xii. T F The output will show "True" for the expression:[1.2.'one'.'two'l<(3.4.5.61 xiv. T F Given, X=3, the expression (X>2) or (X>5) yields “True" хiv.T F Given, X=3, the expression (X>2) or (X>5) yields “True" XV.F In Python, to access the type of a variable, you can use thetype () function.See Answer
  • Q14: (10 points) Write a Python program that prints all the numbers between 1 and100 that are either divisible by 2 (or) 3. Example: 2, 3, 4, 6, 8, 9..... .......See Answer
  • Q15: (c) (5 pts) Say an is a sequence that satisfies a,n = an-1 + an-2 (n>= 3) with a1 = 1 and a2 = 1. Code a function to compute an given the argument n.See Answer
  • Q16: Submit a one-page description about what you learned from each article (there are two articles).Use 1.15 spaces between lines, times roman, 12 font. Submit them as word documents. I am providing the two articles. Article #1: AI Based Injection Molding Process for Consistent Product Quality Hong Seok Parka, Dang Xuan Phuongb, Saurabh Kumarc Article #2: Modeling and Optimization of the Injection-Molding Process: A Review CELIO FERNANDES, ANTONIO JOS´E PONTES, JULIO CESAR VIANA, ANTONIO GASPAR-CUNHASee Answer
  • Q17: (i) (5 points) Insert the missing line of code so that the following adds the integers from 1 to 10, inclusive. (ii) (5 points) What is the output after the following code is executed? See Answer
  • Q18: 3. (25 points) Execute each of the following code snippets, just as if they were written in a program. (Each one is a sequence of statements.) See Answer
  • Q19: In this problem, you'll re-create the classic race of the tortoise and the hare. You'll use random-number generation to develop a simulation of this memorable event. Our contenders begin the race at square 1 of 70 squares. Each square represents a possible position along the race course. The finish line is at square 70. The first contender to reach or pass square 70 is rewarded with a pail of fresh carrots and lettuce. The course weaves its way up the side of a slippery mountain, so occasionally the contenders lose ground. A clock ticks once per second. With each tick of the clock,your application should adjust the position of the animals according to the rules in the table below.Use variables to keep track of the positions of the animals (i.e., position numbers are 1-70). Star teach animal at position 1 (the "starting gate"). If an animal slips left before square 1, move it back to square 1. The percentages produced by producing a random integer i in the range 1sis 10.are Begin the race by displaying BANG!!!!AND THEY'RE OFF!!!! Then, for each tick of the clock (i.e., each repetition of a loop), display a 70-position line showing the letter T in the position of the tortoise and the letter H in the position of the hare. Occasionally,the contenders will land on the same square. In this case, the tortoise bites the hare, and your application should display OUCH!! beginning at that position. All output positions other than the T,the H or the OUCH!! (in case of a tie) should be blank. After each line is displayed, test for whether either animal has reached or passed square 70. If so, display the winner and terminate the simulation. If the tortoise wins, display TORTOISE WINS!!! YAY!! If the hare wins, display Hare wins.Yuck. If both animals win on the same tick of the clock, you may want to favor the tortoise (the"underdog"), or you may want to display It's a tie. If neither animal wins, perform the loop again to simulate the next tick of the clock. When you're ready to run your application, assemble a group of fans to watch the race. You'll be amazed at how involved your audience gets!See Answer
  • Q20: (a) (5 pts) If X = [0, 1, 2, 3] then you can index its i-th number by X[i-1]. Declare a new variable Y that can index these four values by Y['a'], Y['b'], Y['c'], Y['d'].See Answer

TutorBin Testimonials

I found TutorBin Python homework help when I was struggling with complex concepts. Experts provided step-wise explanations and examples to help me understand concepts clearly.

Rick Jordon

5

TutorBin experts resolve your doubts without making you wait for long. Their experts are responsive & available 24/7 whenever you need Python subject guidance.

Andrea Jacobs

5

I trust TutorBin for assisting me in completing Python assignments with quality and 100% accuracy. Experts are polite, listen to my problems, and have extensive experience in their domain.

Lilian King

5

I got my Python homework done on time. My assignment is proofread and edited by professionals. Got zero plagiarism as experts developed my assignment from scratch. Feel relieved and super excited.

Joey Dip

5

Popular Subjects for python

You can get the best rated step-by-step problem explanations from 65000+ expert tutors by ordering TutorBin python homework help.

TutorBin helping students around the globe

TutorBin believes that distance should never be a barrier to learning. Over 500000+ orders and 100000+ happy customers explain TutorBin has become the name that keeps learning fun in the UK, USA, Canada, Australia, Singapore, and UAE.