Answer:
public class Pyramid {
public static void main(String[] args) {
int h = 7;
System.out.println("Pattern A");
for(int i = 1; i <= h; ++i)
{
for(int j = 1; j <= i; ++j) {
System.out.print("+");
}
System.out.println();
}
System.out.println();
System.out.println("Pattern B");
for (int i = 1; i<=h; ++i)
{
for(int j = h; j >=i; --j){
System.out.print("+");
}
System.out.println();
}
}
}
Explanation:
- The trick in this code is using a nested for loop
- The outer for loop runs from i = 0 to the heigth of the triangle (in this case 7)
- The inner for loop which prints the (+) sign runs from j = 0 to j<=i
- It prints the + using the print() function and not println()
- In the pattern B the loop is reversed to start from i = height
Answer:
a) D = 4.88 * 10^(-14) m^2 / s
b) <em>t </em>= 1.1 hr
Solution:
a) Magnesium in Aluminum diffusion:
D = Do * exp(-Qd / RT)
= (1.2 * 10^(-4) m^2 / s) * exp ( - 130,000 / 8.31 * 723.15)
= 4.88 * 10^(-14) m^2 / s
D = 4.88 * 10^(-14) m^2 / s
b) The composition remains same at say the distance Xo:
(Cx - Co) / (Cs - Co) = Constant
Xo^2 / D_{550} * <em>t </em>= Xo^2 / D_{450} * 15
D_{550} * <em>t </em>= D_{450} * 15
(1.2 * 10^(-4) m^2 / s) * exp ( - 130,000 / 8.31 * 723.15) * <em>t</em>
(4.88 * 10^(-14) m^2 / s) * 15
by, solving for <em>t </em>we get:
<em>t </em>= 1.1 hr
So, the time required is 1.1 hr.
in your notes books and in your vopy
Option A because the environment should be selected for which the changes are to be applied. In a time Force IDE has many project environments for example maybe a java project and C++ project would be there on sandbox, so the environment selection is important.
Option B because the related changed sets should be specified so that other developers that have access to the project can see the changes being made.
Option D The data fields that are needed to be deployed should also be provided so that the updated version can be seen by other developers.
Rejected Options :
Option C user name and password has nothing to do with the production environment because if the user has it only then it can come and make changes.