Page 1 of 1

HELP ME , HELP ME PLS

Posted: Fri Apr 08, 2011 8:45 am
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]

Posted: Fri Apr 08, 2011 10:42 am
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

Posted: Fri Apr 08, 2011 12:33 pm
by MalkomK
I think he wants us to write the program for him. Do your own homework dude.