Hey Everyone, I really got this big problem with my computerscience hw. The ques
ID: 3609944 • Letter: H
Question
Hey Everyone, I really got this big problem with my computerscience hw. The questions is posted below and I have also posted mywork. Q.) There are 3 students names with 4 test scores. Havethe user input the data into a 2-dimensional array; with a prompt"Enter test score" ; col; "for student"; row ; ": ", . printthe data out using a 2-dimensional array. The below DIMstatement would declare a two-dimensional array holding a possibleof 20 X 10 = 200 elements. It has 20 rows and 10 columns.Since we are using a 2-dimensional array, we have to use nestedloops to input the data and print. EXAMPLE DIMSTATEMENT": DIM studata(1 to 20, 1 to 10).Now hereis my work posted below CLS 'programmed by Preshit Tambey DIMwhatever$(3, 4) FOR row =1 TO 3 INPUT "Enter name"; name$(row) NEXTrow FOR col =1 TO 4 INPUT "Enter Score"; score(col) NEXTcol FOR row =1 TO 3 FOR col =1 TO 4 PRINTUSING " ## ## ## ##";whatever$(row, col); NEXTcol PRINT NEXTrow END
Theproblem I am having is that I can't print it. I also dont get therest of the question after it says to print the data. My teacher issort of weird, she doesnt explain the question well. Please help meout!! I will definitely rate it ASAP!!! I really got this big problem with my computerscience hw. The questions is posted below and I have also posted mywork. Q.) There are 3 students names with 4 test scores. Havethe user input the data into a 2-dimensional array; with a prompt"Enter test score" ; col; "for student"; row ; ": ", . printthe data out using a 2-dimensional array. The below DIMstatement would declare a two-dimensional array holding a possibleof 20 X 10 = 200 elements. It has 20 rows and 10 columns.Since we are using a 2-dimensional array, we have to use nestedloops to input the data and print. EXAMPLE DIMSTATEMENT": DIM studata(1 to 20, 1 to 10).
Now hereis my work posted below CLS 'programmed by Preshit Tambey DIMwhatever$(3, 4) FOR row =1 TO 3 INPUT "Enter name"; name$(row) NEXTrow FOR col =1 TO 4 INPUT "Enter Score"; score(col) NEXTcol FOR row =1 TO 3 FOR col =1 TO 4 PRINTUSING " ## ## ## ##";whatever$(row, col); NEXTcol PRINT NEXTrow END
Theproblem I am having is that I can't print it. I also dont get therest of the question after it says to print the data. My teacher issort of weird, she doesnt explain the question well. Please help meout!! I will definitely rate it ASAP!!! CLS 'programmed by Preshit Tambey DIMwhatever$(3, 4) FOR row =1 TO 3 INPUT "Enter name"; name$(row) NEXTrow FOR col =1 TO 4 INPUT "Enter Score"; score(col) NEXTcol FOR row =1 TO 3 FOR col =1 TO 4 PRINTUSING " ## ## ## ##";whatever$(row, col); NEXTcol PRINT NEXTrow END
Theproblem I am having is that I can't print it. I also dont get therest of the question after it says to print the data. My teacher issort of weird, she doesnt explain the question well. Please help meout!! I will definitely rate it ASAP!!!