Write a program to find Total Percentage (in Qbasic)
Answers
CLS
INPUT "Write your name :"; N$
INPUT "Maximum Marks Per Subject"; MM
INPUT "Mathematics :"; M
INPUT "Science :"; SC
INPUT "Social Studies :"; SS
INPUT "English :"; E
INPUT "Odia :"; O
INPUT "Hindi :"; H
MO = M + SC + SS + E + O + H
P% = MO / (MM * 6) * 100
PRINT "Congratualtions "; N$; "! You scored "; MO; " out of "; MM * 6; ". Your Percentage is "; P%; "%"
END
-------------------
Hope it Helped!
Answer:
Explanation:
Q basic:
Based on Quick BASIC, QBasic is an integrated development environment (IDE) and interpreter for a number of BASIC dialects. The IDE compiles entered code to an intermediate representation (IR), which is then instantly interpreted when needed.
Similar to Quick BASIC but distinct from earlier iterations of Microsoft BASIC, QBasic is a structured programming language that supports subroutines and other programming features.
Line numbers, a BASIC concept that is frequently used, are preserved for compatibility but are not regarded as proper usage because they have been replaced by illustrative line labels.
- QBasic offers a limited amount of support for user-defined data types (structures) and a number of primitive kinds that can hold text or numeric data in the form of strings.
- It provides a number of built-in features.
For its time, QBasic had a cutting-edge IDE that included a debugger with tools for editing code and evaluating expressions instantly.
program to find Total Percentage (in Qbasic):
CLS
INPUT "Enter name :"; N$
INPUT "Maximum Marks Per Subject"; MM
INPUT "Mathematics :"; M
INPUT "Science :"; SC
INPUT "Social Studies :"; SS
INPUT "English :"; E
INPUT "Telugu :"; T
INPUT "Hindi :"; H
%
PRINT "Congratulations "; N$; "! You scored "; MO; " out of "; MM * 6; ". Your Percentage is "; P%; "%"
END
#SPJ2