create a program that will perform the following operation
1. accept 1-5 letters.
2. each letter corresponds to a number.
3. generates the sum of the numbers selected.
4.displays the average of the numbers selected.
values of letter A=20 B=4 C=7 D=9 E=10 F=15 O=6 U=12 S=12
either or joption o scanner ang gagamitin
just a newbie with Data structure and algo please help to solve this .. ...
public static void main(String[] args) {
int A = 20,B = 4,C=7,D = 9, E = 10, F = 15, O = 6, U = 12, S = 12;
int q;
Scanner scan = new Scanner(System.in);
System.out.println("Choose 2-5 letter from A,B,C,D,E,F,O,U,S");
q= scan.nextInt();
q = A + B;
q = A + C;
System.out.println("the sum of the enter letter is:"+q);
should i continue this kind of equation?? or how should the computation should be done