HELP ME , HELP ME PLS

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
jayblaze
Newbie
Posts: 1
Joined: Fri Apr 08, 2011 7:31 am

HELP ME , HELP ME PLS

Post by jayblaze »

Develop a program that reads in a list of records,with each record containing a name,age, and _MOUSEX(m or f).
The program should select and print the records of the following, with appropriate headings:

A) i) persons who are over the age A.
ii)persons under the age B.
iii) all males between the ages A and B, where A and B are input values.

B) Modify the program in (A) to allow the user to make the combination for selection that he or she wants.

The following data should be used in this exercise:

700 DATA "ENOCH,D.N.", 40, "M"
710 DATA "UZOMA,A.N", 12, "M"
715 DATA "BLESSING,E", 35, "F"
720 DATA "ADA,O.C", 3, "F"
725 DATA "UCHE, C.N.", 11, "M"
730 DATA "IJEOMA, N.", 10, "F"
735 DATA "HASTRUP, J.P.", 25, "F"
740 DATA "ABIMBOLA, N.F.",60, "F"
745 DATA "FRANCIS, N.U.", 45, "M"
750 DATA "USMAN, A.A.", 10, "M"
780 DATA "OLA, P.C.", 37, "F"
790 DATA "IKE, C.D.", 4, "M"
795 DATA "HENRY, N.", 78, "M"
800 DATA "NKEM, A.B.", 21, "F"
810 DATA "AFAM, B.D.", 55, "F"
820 DATA "DIKIBO, S.N.", 18, "M"
830 DATA "IHEOMA, R.V.", 68, "F"
835 DATA "JOHN, A.", 28, "M"
840 DATA "ADAMU, R.V.", 60, "M"
850 DATA "ARETHA, C.B.", 75, "F"

_____________________________________PLEASE WE NEED YOUR HELP URGENTLY!!!!___________________________[/b]
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

This looks like homework. You should post the code you have tried so that we can help. We cannot help if you did not pay attention in class. That would cheat the classmates who did pay attention. You will find this policy at most other programming forums.

One thing. What is meant by: __MOUSEX(m or f) ?

The __MOUSEX function returns the column screen position of the mouse pointer. It does not use a parameter. You MUST read mouse positions in a _MOUSEINPUT loop, but your assignment says nothing about the mouse otherwise.

To read the DATA you will need READ with three variables. RESTORE can be used to reset the read pointer to the start of DATA when it has to be re-read.

The QB64 WIKI: http://qb64.net/wiki/index.php?title=Ke ... phabetical
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
MalkomK
Newbie
Posts: 6
Joined: Fri Apr 08, 2011 12:12 pm

Post by MalkomK »

I think he wants us to write the program for him. Do your own homework dude.
Post Reply