answersLogoWhite

0

'

'*** PROGRAM: Collecting student data: names/marks.

'

'*** Create 2 array variables to store each students name/marks...

DIM students$(10), marks$(10)

'*** SCREEN ONE/Collect the data...

CLS '...(CL)ear the Output (S)creen

'*** print heading...

PRINT "PROGRAM: Collecting each student names/marks..."

PRINT

'*** A FOR/NEXT loop is used to collect each individual students data...

FOR eachStudentNo% = 1 TO 10

'*** Get each students names/marks

'by typing these values in from the keyboard....

PRINT eachStudentNo%; ">"

INPUT " Enter student name"; students$(eachStudentNo%)

INPUT "Enter student marks"; marks$(eachStudentNo%)

NEXT

'*** SCREEN TWO: Output the collected data...

CLS '...(CL)ear the Output (S)creen

'*** Print headings...

PRINT "Student No.", "Student Name", "Student Marks"

PRINT

'*** FOR/NEXT loop is used to print out the 2 array student 'name/marks' values...

FOR eachStudentNo% = 1 TO 10

'*** print out each students 'number/name/mark' values...

PRINT eachStudentNo%,

PRINT students$(eachStudentNo%),

PRINT marks$(eachStudentNo%)

NEXT

END '...END of program/halt program code execution

User Avatar

Wiki User

βˆ™ 12y ago

Still curious? Ask our experts.

Chat with our AI personalities

ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
BeauBeau
You're doing better than you think!
Chat with Beau
TaigaTaiga
Every great hero faces trials, and youβ€”yes, YOUβ€”are no exception!
Chat with Taiga

Add your answer:

Earn +20 pts
Q: How do make 10student name and his remarks in q-basic?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Basic Math

How do you add numbers in qbasic?

-- Think of a name for the sum, like 'S'.-- Tell qbasic what 'S' is the sum of.S = 41 + 61 + 2 + 84 + 136-- If you want to see it on the screen, thenPRINT Sand the sum pops up. It looks like this on the screen:324


How i will write a program in qbasic -to display your name multiple times using do whileloop?

QBASIC code/Editor Screen (Press key [F5] to make the program RUN/execute...) ==== (Pressing any key returns you straight back to the Editor screen; where you can either chose to further Edit/Re-Run/or else, Save your program.) Here is another example. CLS COLOR 15, 4, 14 PRINT "Press any key to continue" DO WHILE INKEY$ = "" LOOP FOR c = 1 TO 20 COLOR c, 0 PRINT "Replace this with the name you want to display" NEXT c COLOR 15, 0 END


What is the use of qbasic?

BASIC is an acronym which means... (B)eginner's (A)ll-purpose (S)ymbollic (I)nstruction (C)ode As a part of the name already implies: (A)ll-purpose/QBASIC is a 'general purpose' programming language; which may be used to write all different sorts of programs, including... -games -noughts & crosses/tic tac toe -databases -maths -english -random poetry -guess the number -random graphics -musical notes -etc. This is in direct comparison to certain other programming languages which were designed to do only one main task alone; such as... FORTRAN/main purpose: Science/Maths COBOL/main purpose: Business LOGO/main purpose: Graphics HTML/main purpose: Write/present web pages -etc.


Is there a number bigger than graham's number?

Yes, there is, but it has no name, for grahams number was and is still the largest number with a name. To make a number larger than grahams number, you just need to make grahams number 1, but it would not have a name because it is not official, and if you try to write it down, you could not, because all matter in the universe transformed into pen ink could not write it down. And if you tried to type it, your computer or whatever you where typing it on would fail.


How do you create table in sql?

create table "table-name" -> exclude the quotes when creating the tableafter this a message will come : table created(row_name data type(limit of characters),... )for example(name varchar2(20)).This will make a column(attribute) in your table with the name "name" and data type varchar with character limit of 20.you can further add more attributes in the same manner.to insert values in the table you need this:insert into "table name" values(123,qwew,wsd,2342)the data in the brackets above depends on the attributes of your table.and now you have created a simple table.you can update, delete, alter, drop the table.