I am stuck in this question. I don't know how to proceed

The question ?
If A=1 , B=2 ,C=3 , D=4, E=5 ........................................... then print the sum of the user entered word ..
( if the user enters ABC, then the output must come :" 6 " .. (because 1 + 2 + 3 = 6)

4 answers

DIM WORD AS STRING
DIM SUM AS INTEGER
INPUT "Enter a word: ", WORD$
SUM = 0
FOR N=1 to LEN(WORD$)
SUM = SUM + ASC(MID$(WORD$,N,1))
NEXT N
PRINT "Word value: ",SUM

google is your friend. I have never used qbasic, but in about five minutes I found enough code online to do the task.
thank you. can u tell me how you actually found it ?
I did google searches for

qbasic input
to find how to do input and print

qbasic math
to see how math was done. It also showed the DIM statements and a FOR loop

qbasic strings
to find string functions like Val and CHR and ASC
wap to produce report cord of three students
Similar Questions
  1. Hi there,I'm currently stuck on a maths question. Find the limit as x approaches 0 for (1+sinx)^cotx I've put logs on both sides
    1. answers icon 1 answer
    1. answers icon 1 answer
  2. What must a driver do at a flashing yellow light?Question 39 options: Be ready for traffic light ahead. Stop and wait until
    1. answers icon 1 answer
    1. answers icon 1 answer
more similar questions