Answer:
The Java code is given below with appropriate comments
Explanation:
import java.util.*;
class Main {
static Set<String> set = new HashSet();
static void printPerms(char ch[], int ind){
//If end of string is reached, add it to set
if(ind==ch.length){
set.add(new String(ch));
return;
}
for(int i=ind;i<ch.length;i++){
//Only swap if lower case
if((ch[i]>='a' && ch[i]<='z')&&((ch[ind]>='a' && ch[ind]<='z'))){
char t = ch[i];
ch[i] = ch[ind];
ch[ind] = t;
}
printPerms(ch,ind+1);
if((ch[i]>='a' && ch[i]<='z')&&((ch[ind]>='a' && ch[ind]<='z'))){
char t = ch[i];
ch[i] = ch[ind];
ch[ind] = t;
}
}
}
public static void main(String[] args) {
printPerms("aBbCc".toCharArray(),0);
System.out.println(set);
}
}
Answer:
1.The high level language are closer to human language the instruction written in this language are similar to English like words and statements
2. It is easy to understand
3. It is easy to modify
4. User friendly
5. Standarized syntax
6. Deep hardware knowledge is not required for using this.
7. Mechine indepence
8. In this language the error are easily located.
9. The program written in this language are called source code.
10. The program written in this language are shorter in size than low level language.
we will write year in column B and column c respectively
2017 and 2018
then we will add months of year from January to December in the cells range from A2 to A13
then we will choose cell g5 and will write the diffrence formula
g5=attendance of 2018 - attendance of 2017"
we put "=" sign to put an formula in excel
then finally we will use fill handle and drag it from g6 to g12
to copy the difference formula
look at attached file
<span>External computer parts are those that connect to the case, often to provide ways to input or output data.
Here are a 6 examples of external parts:
</span>Monitor
Keyboard
Mouse
Speakers
Printer
External Hard Drives
I hope this has helped you.