[solved] – Question 80247

Consider the following dictionary.
marks = {“Quizzes”:{“Mahesh”:[3,5,7,8],”Suresh”:[9,4,8,8],”Uma”:[9,9,7,6]},”Exams”:{“Mahesh”:[37],”Uma”:[36]}}
Which of the following statements does not generate an error?
marks[“Exams”][“Suresh”].extend([44])
marks[“Exams”][“Suresh”] = [44]
marks[“Exams”][“Suresh”].append(44)
marks[“Exams”][“Suresh”][0:] = [44]

Expert Answer


[solved] – Question 80248

Assume that d has been initialized as an empty dictionary:
d = {}
Which of the following generates an error?
d[[1,2]] = 5
d[(1,2)] = 5
d[“1,2”] = 5
d[12] = 5

Expert Answer


[solved] – Question 80262

John was given a task to make a rectangular box during his innovation competition. He was given with
the A cm of wire and B cm2 of special paper. He had to use all the wire (for the 12 edges) and paper (for the 6 sides) to make the box. So what will be the maximum volume of that box?

Expert Answer


[solved] – Question 80324

At the inlet of a converging-diverging nozzle, the stagnation pressure is po = 860 kPa and stagnation temperature To = 79 °C. The outlet of the nozzle is connected to a back chamber in which the pressure can be controlled. There is only one normal shock in the nozzle where the area is As = 367 mm- and the static temperature right after the shock is T2 = 57 °C. The area of the nozzle outlet is 1200 mm2. 1. (40 marks) If the shock happens after the throat: a. What are the Mach numbers at the point just after the shock and at the exit? b. What is the mass flow rate of the flow? a. 2. (20 marks) If the flow at the nozzle inlet is subsonic and the shock happens after the throat: Calculate the area of the throat of the nozzle. b. Given that the condition at the nozzle inlet is fixed and the pressure in the back chamber is adjusted to the point that there is no more shock in the nozzle, what are the possible values of Mach number at the nozzle outlet? Explain your answer.

Expert Answer


Answer to At the inlet of a converging-diverging nozzle, the stagnation pressure is po = 860 kPa and stagnation temperature To = 79 °C……

[solved] – Question 80327

In an experiment, the Merge Sort algorithm will be modified into a 3-MergeSort algorithm in the hope of getting a new algorithm that is more efficient. Basically, the modification made is that the input array of length n is no longer split into 2, but into 3, so that each new array created will have a length of n/3. Answer the following questions:

To accommodate the above modification, the Merge function will be changed to a Merge3 function which no longer accepts input in the form of 2 arrays, but 3 arrays (which have been ordered). Consider the implementation of the Merge3 function in the following pseudocode:
function Merge3(array A, array B, array C):
AB = Merge(A, B)
return Merge(AB, C)

* The Merge function called in the Merge3 function above is the same Merge function as the standard Merge Sort algorithm, which accepts 2 sorted arrays as input.

Calculate the time complexity of the Merge3 function! Use Big O notation with m as input, where m is the total sum of the lengths of the arrays A, B, and C!

Calculate the time complexity of the 3-MergeSort algorithm as a whole! Use Big O notation with n as input, where n is the length of the initial input array!

When compared to the time complexity of the standard Merge Sort algorithm, can the 3-MergeSort algorithm be said to be significantly more efficient?

Suppose the 3-MergeSort algorithm created above is run on the following array: [4, 8, 2, 9, 1, 7, 5, 3, 6]. What will the contents of the array look like when the three outermost recursion function calls have finished, but just before the most recent Merge3 function executed?

Expert Answer


Answer to In an experiment, the Merge Sort algorithm will be modified into a 3-MergeSort algorithm in the hope of getting a new algorithm……

[solved] – Question 8033

Suppose the size of an uncompressed text file is 1 megabyte. How long does it take to download the file over a 32 Kilobit per second modem? How long does it take to take to download the file over a 1 megabit per second modem? Suppose data compression (6 times) is applied to the text file. How much do the transmission times change?

Expert Answer


[solved] – Question 80333

Find several provisions of the Software Engineering Code of Ethics and Professional Practice

(Appendix A.1) that were violated in the Therac-25 case.

Expert Answer


[solved] – Question 80389

Write a C program to output the names of your favorite bands and/or musical artists. Remember to include your program’s output as part of your submission.

Expert Answer


[solved] – Question 804

I am about to start my final year project in bsc in Information System and my tutor is asking me the project proposal which I couldn’t do it. Please could you advice me which topics of project proposal will be very easy one and will be approve from supervisor.

Expert Answer


[solved] – Question 8043

Design and implement an application that performs flashcard testing of simple mathematical problems. Allow the user to pick the category. Repetitively display a problem and get the user’s answer. Indicate whether the user’s answer is right or wrong for each problem, and display an ongoing score.

Expert Answer