756 Answered Questions for the topic Python

Python

04/12/24

(Financial application: compute the future investment value)

Write a function that computes the future investment value at a given interest rate for a specified number of years. The future investment is determined using the formula in Programming Exercise... more
Python

04/12/24

(Occurrences of a specified character)

Write a function that finds the number of occurrences of a specified character in the string using the following header: def count(s, ch): For example, count("Welcome", 'e') returns 2. The str... more
Python

04/12/24

(Convert milliseconds to hours, minutes, and seconds)

Write a function that converts milliseconds to hours, minutes, and seconds using the following header: def convertMillis(millis): The function returns a string as hours:minutes:seconds. For... more
Python Statistics

04/10/24

Construction of 21 by 21 total games matrix in python

I have 8 by 8 matrix for possible game scores during a set of tennis, for example 6,0 6,1 0,6 1,6 tiebreaks represented like 7,6 and 6,7. Assuming matrices for 2nd and 3rd set are the same,... more
Python Calculus

04/03/24

(a) Find the critical values of the function.

4. Given{ f(x) = (10 −1/4x^2 ,if x < 0 {5e^(x−2)/2 − x ,if x ≥ 0.(a) Find the critical values of the function.(b) Find the absolute extrema of f on the interval [−5, 5].(c) Plot f on the... more
Python

04/02/24

(Financial application: compare loans with various interest rates)

Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an... more
Python

04/02/24

(Find the two highest scores)

Write a program that prompts the user to enter the number of students and each student’s name and score, and finally displays the student with the highest score and the student with the... more
Python

04/02/24

(Count positive and negative numbers and compute the average of numbers)

Write a program that reads an unspecified number of integers, determines how many positive and negative values have been read, and computes the total and average of the input values (not counting... more
Python

04/02/24

(Hex to binary)

Write a program that prompts the user to enter a hex digit and displays its corresponding binary number.Sample Run 1Enter a hex digit: BThe binary value is 1011Sample Run 2Enter a hex digit: bThe... more
Python

04/02/24

(Business: check ISBN-10)

An ISBN-10 (International Standard Book Number) consists of 10 digits: d1d2d3d4d5d6d7d8d9d10. The last digit, d10, is a checksum, which is calculated from the other nine digits using the following... more
Python

04/02/24

(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 equiangular). The formula for... more
Python

03/30/24

Assume there is a variable, h, already associated with a positive integer value.

Write the code to count the number of perfect squares whose value is less than h, starting with 1. (A perfect square is an integer like 9, 16, 25, 36 that is equal to the square of another integer... more
Python

03/30/24

n to a positive integer question

Given that n refers to a positive integer, use a while loop to compute the sum of the cubes of the first n counting numbers, and associate this value with total. Use no variables other than n, k,... more
Python

03/30/24

K and Total variable Question

Use the variables k and total to write a while loop that computes the sum of the squares of the first 50 counting numbers and associates that value with total. Thus your code should associate 1*1 +... more
Python

03/27/24

A bank account that accrues continuously compounded interest grows in value at a rate pro- portional to its current value.

The current value is modeled by the exponential equation y = y0e^rt, where r is the annual interest rate, t is time in years, and y0 is the initial value of the account. Suppose after 2 years, the... more
Python

03/19/24

"Broccoli is delicious" question

Assume that sentence is a variable that has been associated with a string consisting of words separated by single space characters with a period at the end. For example: "This is a possible value... more
Python

03/13/24

Creating a form with Python FASTAPI anf fastUI

Hello,I'm trying to create a form using python libraries FASTAPI anf fastUI for frontend. I have some issues with my code. Thank you
Python Calculus

03/07/24

Consider the curve given by x^2 + 2x + 3y^2 = 8:

(a) Find dy/dx .(b) Find the points (x and y coordinates) where the graph of the equation has a horizontaltangent line.(c) Find the points (x and y coordinates) where the graph of the equation has... more
Python Calculus

03/06/24

given the equation x^3-y^3=12xy:

a) find dy/dxb) Find the points (x and y coordinates) where the graph of the equation has a horizontal tangent line.(c) Find the points (x and y coordinates) where the graph of the equation has a... more
Python

03/06/24

Computer Science | Python | Clunker Motors Question

Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002. Given variables modelYear and modelName, write a statement that assigns True to recalled if the... more
Python

02/26/24

Python question.

what is the concept of metaclasses in Python and provide me by practical example of their usage.
Python

02/21/24

Given f(x) = √ x^3 + x^2 sin (π/x ) + 2:

(b) Find limx→0 g(x) and limx→0 h(x), and use the Squeeze Theorem to determine limx→0 f(x).
Python

02/21/24

Stirling’s formula says that a good approximation to f(x) = x! (factorial)

g(x) = √2πx (x/e)^xwhere x! = x(x − 1)(x − 2)...3 · 2 · 1 whenever x is a positive integer, but it’s also defined for non-integers as wella)The sense that g(x) is a “good” approximation of f(x) is... more
Python

02/11/24

Help writing a PYTHON program that generates a random number and the player tries to guess it.

You wont be using any LOOPS, creating any Functions(other than using the random number generator) and NO MODULES at this point. Everything at this point is in sequence(Line-By-Line). You can add... more
Python

02/08/24

tutor ended session todaay at 4:32

Tutor was not great and then he suddenly ended the session he also came lateplease do not charge!

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.