All text

Sankalp B

 
                          
Types of programming:
- Formula
- Decision
- Condition
- Loops

Formulae
===========

Format:
-------
Formula A = X + Y x Z

CLS
INPUT "ENter Xness,Yness,Zness" ; X,Y,Z
A = X + Y * Z
PRINT "The Answer is =";A
END

Examples:
---------
- Simple Interest
- Area/Volume of Shapes/Solids

Decision
===========

Format:
-------
Condition to check => Logical Expression
Larger number => X > Y
CLS
INPUT "ENter Xness,Yness" ; X,Y

IF X > Y THEN
PRINT "The Answer is =";X
ELSE
PRINT "The Answer is =";Y
END IF

END

Examples:
---------
- Checking Odd/Even
- Checking Larger /Smaller number
- 

Condition
===========

Format:
-------
Do stuff until condition is satisfied
divide number by every integer b/w 1 to itself

CLS
INPUT "ENter Number";X

N1=N
WHILE N1>0
PRINT N;" divided by ";N1;" = ";(N/N1)
N1 = N1 - 1
WEND

END

Examples:
---------
- Prime Number
- Armstrong Number
- any question that uses digits

Digits
----------
do something with digits

CLS
INPUT "Enter a Number";N

N1 = N
WHILE N1>0
     D = N1 MOD 10
     N1 = N1 \ 10
     S = ********
WEND

PRINT "Answer = ";S
END

where:
- Armstrong : S = S + D^3
- sum of digits : S = S + D
- palindrome : S = S*10 + D

Questions List:
- WAP to calculate the area/volume of
- WAP to calculate compound interest for principal on 4% interest per annum
-WAP to input your name and output it 3 times
- WAP to input 3 numbers and find their average

- WAP to Check if a number is Odd/Even
- WAP to Check if a number is divisible by 3
- WAP to Check if the sum of 3 numbers is Odd or not
-WAP to find input a number and check if it has more than 3 digits or not.
- WAP to find the larger/smaller of 2 nos
- WAP to find the larger/smaller of 3 nos

- WAP to calculate the reverse of a given number
- WAP to Check if a number is Prime
- WAP to Check if a number is Armstrong
- WAP to Check if a number is a Palindrome
- WAP to find the sum of digits of a number

Output the pattern
- 1,2,3,4,5,6,7,8,9....100
- 1,5,9,13,17,21.....117
- X
  X X
  X X X
  X X X X
  X X X X X
- 1,2,4,7,11,16....upto 20 terms








- Output the pattern
   1,5,9,13,17,21.....117
- Write a program in QBASIC to find the Compound interest for a principal with rate 9.5%
- Make a detailed diagram of
   - Computer Architechture
   - Types of computers
   - 4 parts of computer system
   - basic structure of html document