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

Compute the total quiz and average quiz of three (3) scores. Determine if the average score is greater than or equal to 70, if TRUE , display Remarks is “ PASSED” otherwise display “FAILED”.


Using dosbox and tasm. Create an assembly program that would check if the input character is a numeric character. alphabet (letter) or a special character.



HINT: Each character has a corresponding decimal and hex values in the ASC table. Use ASCII table.

Using dosbox and tasm. Create an assembly program that would check if the input character is a numeric character. alphabet (letter) or a special character.



HINT: Each character has a coresponding decimal and hex values in the ASC table. Use ASCII table

5. Write a query that will return all the rentals placed between the following dates “2021-08-

01” AND “2021-10-30”.

6. Write a query that selects all the rentals placed by Bud Barnes.

7. Write a query that displays all the returns for the car make Toyota.

21; 22; 23 2022

© The Independent Institute of Education (Pty) Ltd 2022

Page 11 of 14

8. Write a query that counts the number of rentals that were placed for the car make

Hyundai.

9. Write a query to update the Model of the car with the CarNo FOR001 from “Fiesta” to

“Focus”.

10. Write a query that will display the CarNo, Driver Name, Rental Fee, Start Date, End Date

and Availability of all available rentals.

11. Write a query that will show a list of the available car makes in the database use the

DISTINCT command.



Declare the Person superclass as abstract. Add this abstract method to the class:

public abstract void eat(String food);

Both the Student and Employee class inherit from abstract superclass Person, and provides an implementation for eat() which displays that the student or employee is eating a certain food.

(Note what happens if you don’t  implement eat().)




Create an interface called StudentInterface. This interface has the following abstract method:

public void study(String subject);

The Student class implements this interface, and provides an implementation for study() which displays that the student is studying a certain subject.

(Note what happens if you don’t  implement study().)




Create an interface called EmployeeInterface. This interface has the following abstract method:

public void workingOn(String task);

The Employee class implements this interface, and provides an implementation for workingOn() which displays that the employee is working on a certain task.

(Note what happens if you don’t  implement workingOn().)




LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS