0% found this document useful (0 votes)
28 views1 page

GW-BASIC LANGUAGE - Practical # 08

Uploaded by

SajjadJamil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views1 page

GW-BASIC LANGUAGE - Practical # 08

Uploaded by

SajjadJamil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

GW-BASIC LANGUAGE

Programming Language (GW-BASIC)Gee-Whiz Beginners All Purpose Symbolic Instructions Code

Home About GW - BASIC SubPrograms Commands and Statements Feedback

Contact Us

Well Come to Professional Programmers


Learning Goal

GW-BASIC COUNTER
How do antidepressants work
How do antidepressants work

Search This Blog Showing posts with label Practical # 08. Show all posts
Search
MONDAY, A P R IL 12, 2010
NEWS AND
OTHER BLOGS
News UpDates
Date Sheets for
Intermediate Exam
2010 (Part-I & II)
Practical#08
OTHER BLOGS
Pakistan Studies
Knowledge
SOURCE PROGRAM
10 REM FIND THE TOTAL NUMBER OF MALE AND FEMALE STUDENTS
Practicals
20 CLS
Practical # 05 (1)
30 FOR A= 1 TO 10
Practical # 06 (1)
Practical # 07 (1) 40 INPUT "ENTER NAME";N$(A)
Practical # 08 (1)
Practical # 09 (1) 50 INPUT "ENTER SEX";S$(A)
Practical # 10 (1)
60 NEXT A
Practical # 11 (1)
Practical # 12 (1) 70 PRINT "S.NO", "NAME", "SEX"
Practical # 13 (1)
Practical # 14 (1) 80 LET M=0 : F=0
Practical # 15 (1) 90 FOR B = 1 TO 10
Practical # 1B (1)
Practical # 2 (1) 100 PRINT B, N$(B), S$(B)
Practical # 3A (1)
110 IF LEFT$(S$(B),1) = "F" THEN F = F + 1 ELSE M = M + 1
Practical # 3B (1)
Practical # 4A (1) 120 NEXT B
Practical # 4B (1)
User's Guide(Chapters) (10) 130 PRINT "TOTAL NUMBER OF MALE STUDENTS=:";M

140 PRINT "TOTAL NUMBER OF FEMALE STUDENTS=:";F


Followers
150 END

OUTPUT
S.NO NAME SEX
1 ABRAR MALE
2 FARHAN MALE
3 FARHAT FEMALE
4 QADIR MALE
5 FARNAZ FEMALE
6 TARIQ MALE
7 ALI MALE
8 TOOBA FEMALE
9 SHOAKAT MALE
10 ARZOO FEMALE

TOTAL NUMBER OF MALE STUDENTS=: 6


TOTAL NUMBER OF FEMALE STUDENTS=: 4

Blog Archive(Blog
Posts)
Apr 12 (17)
Apr 25 (10) Return to Top
About Us Posted by Professional Programmers at 9:26 AM No comments:
PROFESSIONAL Labels: Practical # 08
PROGRAMMERS
We are the only one on
InterNet. Click 2 Learn Home Older Posts
View my complete profile
Subscribe to: Posts (Atom)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy