Answer:
import java.util.*;
public class work {
// function for counting unique character
public static int numUnique(String input) {
boolean[] list = new boolean[Character.MAX_VALUE];
for (int i = 0; i < input.length(); i++) {
list[input.charAt(i)] = true;
}
int count = 0;
for (int i = 0; i <list.length; i++) {
if (list[i] == true){
count++;
}
}
return count;
}
public static void main(String args[])
{
List<String>list=new ArrayList<>(); // creatng array list of type string
list.add("abcdef");
list.add("aaabcd");
list.add("bccddee");
list.add("abcddd");
list.add("a");
for(String str:list)
{
// for printing the results
System.out.println("given string : "+ str+" , number of unique values :"+numUnique(str));
}
}
}
Explanation:
I believe photoshop, or illustrator
Answer:
Following are the code in c language
#include <stdio.h> // header file
int main() // main function
{
int n1,i;
float avg,x,s=0; // variable declaration
printf("\nEnter How many Number terms you want:");
scanf("%d",&n1); // input terms by user
for(i=0;i<n1;++i)
{
scanf("%f",&x); // user input
s= s +x; //calculate sum
}
avg = s/n1;// calculate average of n number
printf("\nThe average of n number is:");
printf("%f",avg); // display average
return 0;
}
Output
Enter How many Number terms you want:3
3
4
3
The average of n number is:3.333333
QUESTION NO. 1 -
A. Cloud computing.
QUESTION NO. 2 -
C. Social networking.
QUESTION NO. 3 -
D. Task list.
QUESTION NO. 4 -
D. Powerpoint.
QUESTION NO. 5 -
B. Sandie should share the document in OneDrive and give her sister permission to edit the document.
QUESTION NO. 6 -
C. The design and arrangement of items for efficiency and safety.