Show that ¬p→(q→r) and q→(p ∨ r) are logically equivalent
Given the functions 𝑔(𝑥) = 𝑥 − 5 and 𝑓(𝑥) = 𝑒
𝑥
Determine (𝑓 ∘ 𝑔)(5)
COMPUTE GRADE PROGRAM
Create a function named StudeInfo that will accept the following values from the user:
StudentID, StudentName, Course, Age, PrelimGrade, MidtermGrade, FinalTermGrade.
Create a function named ComputeGrade that will compute Final Average which is computed as the sum of PrelimGrade, MidtermGrade and FinalTermGrade divided by 3.
Display the output with the following format: (sample output)
*************************************************************************************
Student ID : 00-00-01
Student Name : FERNAN W. AMMAQUI
There is established, pursuant to Article 225 of the Constitution, an entity of the national government to be known as the National Treasury. Discuss the various responsibilities and powers of the National Treasury.
The notion of “state capture”, for instance, has been given a strange perception,
especially in the last few years in South Africa.
A flywheel has a moment of inertia of 4.8 kg-m2 . What constant force is required to increase its
frequency from 3 rev/s to 6 rev/s in 7 revolutions?
Suppose the mean number of days to germination of a variety of seeds is 34, with a standard deviation of 4.3 days. What is the probability that the mean germination time of a sample of 250 seeds will be within 0.5 days of the population mean?
A tank of volume 0.00354 m3 contains 0.00292 kg of saturated water vapour at 0.143 MPa. A line is attached to the tank in which water vapour flows at 0.7 MPa and 200 °C. Steam from this line enters the tank until the pressure in the tank is 0.7 MPa.
i) Why can this process be analysed as uniform flow?
[2 marks]
ii) State THREE assumptions, other than uniform flow, that must be made when analysing this process.
[3 marks]
ii) Use the mass balance to write an expression for the final mass of steam, m2, in the tank.
[2 marks]
iii) Write an expression for the energy balance for the system based on the assumptions made in part (ii) and calculate the mass of steam that enters the tank. The properties of steam under these conditions are:
hin = 2845.3 kJkg-1 u1 = 2517.6 kJkg-1 and u2 = 2749.9 kJkg-
1
[5 marks] v) Predict and explain what would happen to the temperature of the steam in the tank during this process.
[3 marks]
for h(x) = 2/3 x -5 find the value of x for which h(x) = -7
Write a C++ program that will accept an input for the array size. Store the user input and sort array elements in ascending order.
Sample Output:
Enter array size( Max:50 ) :: 8
Enter array elements ::
Enter arr[0] Element :: 4
Enter arr[1] Element :: 1
Enter arr[2] Element :: 5
Enter arr[3] Element :: 8
Enter arr[4] Element :: 0
Enter arr[5] Element :: 9
Enter arr[6] Element :: 4
Enter arr[7] Element :: 1
Stored Data Before Sorting In Array ::
4 1 5 8 0 9 4 1
Stored Data After Sorting In Array ::
0 1 1 4 4 5 8 9