Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Implement the function find_roots to find the roots of the quadratic equation:= ax2 + bx + c = 0. the function should return a tuple containing roots in any order. If the equation has only one solution. The Equation will always have at least one solution. 

The roots of the quadratic equation can be found with the following formula :

-b = +- square_root b2 - 4ac


for example, find _roots (2, 10, 8) should return (-1, -4) or (-4, -1) as the roots of the equation 2x2 + 10X + 8 are -1 and -4

"\\lnot"

I don't have the question but I can explain.


if given n=4,

we should able to give 4 rows and 4 column matrix as input. matrix consists of 0's and 1's

ex;- 0 1 0 0

0 0 1 0

0 1 0 1

1 1 0 0

 the 0 represents an empty space. the 1 represents a mine. you have to replace each mine with a x and each empty space with a number of adjacent mines

above example should print

1 X 2 1

2 3 X 2

3 X 4 X

X X 3 1


so sample input

4

0 1 0 0

0 0 1 0

0 1 0 1

1 1 0 0


and output should be

1 X 2 1

2 3 X 2

3 X 4 X

X X 3 1


Average of given numbers



You are given space-sparated integers as input. write a program to print the average of the given numbers



INPUT


The first line of input contain space-seperated integer



OUTPUT


the output should be a float value rounded up to two decimal places



1 0 2 5 9 8


4.17

write the program to replace all the elements of a guven value with new value


Admission Price ​- A particular zoo determines the price of admission based on the age of the guest. Guests 2 years of age and less are admitted without charge. Children between 3 and 12 years of age cost P140.00. Seniors aged 65 years and over cost P180.00. Admission for all other guests is P230.00. Create a program that begins by reading the ages of all of the guests in a group from the user, with one age entered on each line. The user will enter a blank line to indicate that there are no more guests in the group. Then your program should display the admission cost for the group with an appropriate message. The cost should be displayed using two decimal places. 


mean median mode assignment question

input:1

Mean: 4.67

Median: 4.5

Mode: 2

input:2

Mean: 5.45

Median: 3

Mode: 2 3

not getting desired output for input1 in median case, please debug the code


Hallow Inverted Full Pyramid - 1

Given the number of rows N, write a program to print the hallow inverted full pyramid pattern similar to the pattern shown below. * * * * * * * * * * * *

Input The input will be a single line containing a positive integer (N).

Output The output should be N rows containing the asterisk(*) character in the hollow inverted full pyramid pattern. Note: There is a space after each asterisk(*) character.

Explanation For example, if the given number is 5, the pattern should contain 5 rows as shown below * * * * * * * * * * * * Sample Input 1 5 Sample Output 1 * * * * * * * * * * * *


write a program to print numbers from 1 to N in each row forming a square pattern of N rows and M columns


python special characters vowels and consonants in string


write a program to count vowels and consonants in string


Create any program using python programming language. Use at least 10 Python built-in functions. Submit the program file of your program ( .py) for those who uses desktop or laptop in code and screenshot of the code and output for those who uses phones to code.

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS