Answer:
class Main {
public static void printPattern( int count, int... arr) {
for (int i : arr) {
for(int j=0; j<count; j++)
System.out.printf("%d ", i);
System.out.println();
}
System.out.println("------------------");
}
public static void main(String args[]) {
printPattern(4, 1,2,4);
printPattern(4, 2,3,4);
printPattern(5, 5,4,3);
}
}
Explanation:
Above is a compact implementation.
Answer:
Incremental method.
Explanation:
Software development life cycle (SDLC) can be defined as a strategic process or methodology that defines the key steps or stages for creating and implementing high quality software applications.
An incremental model refers to the process in which the requirements or criteria of the software development is divided into many standalone modules until the program is completed.
Hence, an incremental method typically involves developing a system through repeated cycles and smaller portions at a time, enhancing and evolving the system over time.
In SDLC, a waterfall model can be defined as a process which involves sequentially breaking the software development into linear phases. Thus, the development phase takes a downward flow like a waterfall and as such each phase must be completed before starting another without any overlap in the process.
Also, a spiral model can be defined as an evolutionary SDLC that is risk-driven in nature and typically comprises of both an iterative and a waterfall model. Spiral model of SDLC consist of these phases; planning, risk analysis, engineering and evaluation.
Answer:
<u>720</u> possible PIN can be generated.
Explanation:
To calculate different number of orders of digits to create password and PIN, we calculate permutation.
Permutation is a term that means the number of methods or ways in which different numbers, alphabets, characters and objects can arranged or organized. To calculate the permutation following formula will be used:
nPr = n!/(n-r)!
there P is permutation, n is number of digits that need to be organize, r is the size of subset (Number of digits a password contains)
So in question we need to calculate
P=?
where
n= 10 (0-9 means total 10 digits)
r= 3 (PIN Consist of three digits)
So by using formula
10P3 = 10!/(10-3)!
=10!/7!
= 10x9x8x7!/7!
= 10x9x8
= 720
I think that A could be the correct answer. The others are not as credible as A.
A password and pin hope this helps :D