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

integers = [int(number) for number in input().split()]

K = int(input())

triplets =[]

for i in range(len(integers)):

  for j in range(i+1,len(integers)):

    for k in range(j+1, len(integers)):

      a = integers[i]

      b = integers[j]

      c = integers[k]

      if a+b+c == K:

        triplets.append(tuple((a,b,c))

sorted_triplets=[]

for tripl in triplets:

  item = sorted(tripl)

  sorted_triplets.append(item)

triplets= sorted(sorted_triplets) output:[0, 8, 21] output should be like this:(0, 8, 21)

[0, 12, 17] (0, 12, 17)

[8, 9, 12] (8, 9, 12)

if len(triplets)!=0:

  for triplet in triplets:

    triplet=sorted(triplet)

    print(triplet)

else:

  print("No Matching Triplets Found")


definition of inheritance, types of inheritance with different access specifiers. All the concepts should be illustrated with appropriate diagrams and example programs.


def rotateMatrix(mat):

   if not len(mat):

    return

  top = 0

  bottom = len(mat)-1

   left = 0

  right = len(mat[0])-1

  while left < right and top < bottom:

    prev = mat[top+1][left]

    for i in range(left, right+1):

      curr = mat[top][i]

      mat[top][i] = prev

      prev = curr

     top += 1

     for i in range(top, bottom+1):

      curr = mat[i][right]

      mat[i][right] = prev

      prev = curr

     right -= 1

  output:[13, 9, 5, 1]

[14, 7, 11, 2,]

[15, 6, 10, 3]

[16 ,12, 8, 4]

output should be like this:

13, 9, 5, 1

14, 7, 11, 2

15, 6, 10, 2

16, 12, 8,


 It is late at night, and you decided to get a glass of milk before bed. Try to a pseudocode describing the process of going to the kitchen and getting the milk.


b. Draw a flowchart to illustrate the above program


Topic: Basics of C++ Programming Language "ARRAY IN C++"


Codes discussed will be posted here. Write your conclusion on the ARRAY discussion. 


Filename: Ch8_RangeBasedMax.cpp

Code:

--->>https://drive.google.com/file/d/1xgJ6W-PrqmubVcR5sQea4X95PByzWiOb/view?usp=sharing


*Note need proper codes and conclusion on how it's done and about the results. And please give the proper solution and explanation.


Note: Place your conclusion on why did it turn out like that and give your reasons why the results turned like that, one paragraph will do for the explanation and conclusion.


Note: Please place the proper conclusion and explanations and results of the codes which were given.


NOTE: GIVE A CONCLUSION ABOUT THE CODE AND THE RESULTS. EXPLAIN WHAT THE CODE IS ABOUT


Topic: Basics of C++ Programming Language "ARRAY IN C++"


Codes discussed will be posted here. Write your conclusion on the ARRAY discussion. 


Filename: Ch8_AverageTestScore.cpp

Code:

--->>https://drive.google.com/file/d/1ZIJzhq5bORoAnUx5dJC5gnVO9Nx9CyeS/view?usp=sharing


*Note need proper codes and conclusion on how it's done and about the results. And please give the proper solution and explanation.


Note: Place your conclusion on why did it turn out like that and give your reasons why the results turned like that, one paragraph will do for the explanation and conclusion.


Note: Please place the proper conclusion and explanations and results of the codes which were given.


The graph of a function 

𝑓(𝑥) = 𝑝𝑥

4 + 𝑞𝑥

3 + 𝑟𝑥

2 + 𝑠𝑥 + 𝑡

passes through the points ( 2.5, 62 ) , ( 1.5, 7.2 ) , ( 0.5, 8.3) , ( -1, -3.7 ) and ( -3, -45.7) . Write 

a program that determine the values of constants 𝑝, 𝑞, 𝑟, 𝑠,𝑡.


Topic: Basics of C++ Programming Language "ARRAY IN C++"


Codes discussed will be posted here. Write your conclusion on the ARRAY discussion. 


Filename: Ch8_Average_Velocity.cpp

Code:

--->> https://drive.google.com/file/d/1zNKrRJ0lBIZY5B5m0UhXOmp29nNmEOlr/view?usp=sharing


*Note need proper codes and conclusion on how it's done and about the results. And please give the proper solution and explanation.


Note: Place your conclusion on why did it turn out like that and give your reasons why the results turned like that, one paragraph will do for the explanation and conclusion.


Note: Please place the proper conclusion and explanations and results of the codes which were given.


Write a program to find the acceleration of the object at a point ( 2, 3 ) using Matlab symbolic 

tool box commands. The particle position function is following. [2]

𝑠(𝑡) = 2𝑡

4 − 7cos(𝑡) + 𝑒

−2𝑡


The curvilinear motion of a particle is defined by the following parametric equations

𝑥 = 52𝑡 − 9𝑡

2

, 𝑦 = 125 − 5𝑡

3

The velocity of a particle is defined by 𝑣 = √𝑣𝑥

2 + 𝑣𝑦

2. For time interval [0 6] make a first

plot that shows the position of the particle ( y vs x) and a second plot ( on the same figure 

window) of the velocity of the particle as a function of time. In addition, using an asterisk 

marker show the position of the particle ( in first plot ) at which its speed is maximum. For time 

use a vector with spacing of 0.1s.



LATEST TUTORIALS
APPROVED BY CLIENTS