write a prolog program for reading a list of N student names and their real scores ,compute the average of their scores and query about any student belongs in list or not

can any body helllllllllllllllllllllp

I am certain that someone here can, if you show us what you've already done first. Doing the work for you, however, would not be considered 'helping' by most of the folk here.

(I've actually been criticized for posting too much 'help' at times, rather than giving the original poster the chance to work out a problem themselves, and I deserved it, too.)

I should add that Prolog is a family of incompatible dialects, rather than a single language. It would help if you told us which interpreter or compiler you are using.

Tell your CS teacher, that Prolog is old and not used anymore and its time to switch.

commented: Don't bad mouth unnecessaryly, please. -3
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.