A certain fluid at 10 bar is contained in a cylinder behind a piston, the initial volume being 0.05^m3. Calculate the work done by the fluid when it expands reversibly according to linear law to a final volume of 0.2m^3 and a final pressure of 2 bars.
1. Consider the following contingency table analyzing the relationship between major and mathematics score.
Column Variables
Row Variables
(L)
(B)
(M)
Natural Sciences (N)
50
80
80
Social Sciences (S)
60
70
80
If there is a random selection of one student, determine the following probabilities:
a. P(N) b. P(B) c. P(N Ո L) d. P(M Ս S) e. P(B|N)
Discuss the standards set by Aitchison, Dixon, Pretorius, Reed and Verbeek (2018) for graduate teachers using your own words to show an understanding of the requirements.
You should create two methods for a data structure implementing a Queue as a
circular array. Your data structure should have the class name MyArrayQueue. The
two methods that should be implemented are:
a) Adding element to the queue:
public void enqueue(Object theElement) {…}
[20 marks]
(Functionality: 15, Design: 2, Ease of use: 2, Presentation: 1)
b) Deleting an element from the queue and return the deleted element:
public Object dequeue() {…}
[10 marks]
(Functionality: 6, Design: 2, Ease of use: 1, Presentation: 1)
In both methods errors should be handled properly. For example what happens
when adding an element to a full queue?
There will be skeleton code for MyArrayQueue available on Learning central that
contains the MyArrayQueue class with the following fully implemented methods:
constructor, isEmpty(), getFrontElement(), getRearElement() methods. It also
includes signatures of two methods that you should implement: enqueue(Object
theElement) & dequeue().
Write a program that simulates the ATM interface.
Use a do-while loop to display 6 services to the user
Get the user input and display submenus appropriately
A sample of helium occupies a volume of 3.8 liters at -45°C. Calculate the new volume when the gas is heated to 45°C?
(1) Stop words are high-frequency words that are removed from the representation of
natural language data. Write a method deleteStopwords(input, stopwords) that
deletes a list of words stopwords from some text input. It is up to you whether your
method expects input to be a referring to the source of the text to be processed, or a
String or ArrayList of words; similarly, for the stopwords parameter. However, you
should try to optimise the data structure used. Your method should return an ArrayList
containing the non-stop words identified. Your method should work successfully with
the contents of the input file Input.txt and the stop words listed in the file
stopwords.txt (both files are available on Learning Central).
[15 marks]
(Functionality: 8, Design: 4, Ease of use: 2, Presentation: 1)
by CodeChum Admin
In order to make sure that the future generations will grow into great beings, we must make sure that the gene pool consists of the best genes. In order to do that, we must compare genes from each other and find out which one is the best!
Instructions:
Input
1. First integer
2. Second integer
3. Third integer
4. Fourth integer
Considering only ions with charges of +1, +2, -1 and -2, or neutral atoms, give the symbols for 4 species that are isoelectronic with the telluride ion, Te2-
calculate the total volume of oxygen at STP needed to combust that amount of gasoline (1 mol=22.4 L at STP) and we have 24972413.79g of c6h18