السلام عليكم والرحمة
هذا الموضوع تونا مخلصين منه ومو متقنته عدل فياريت تساعدوني ولو بطرح الفكرة واقل مساعدة منكم راح اكون شاكرة لكم على المجهود المبذول ولو قليل وشكرا على تقبلكم
Problem (1) (Sequential Access Files)
Write a program that reads a sequential-access data file containing several lines of text and writes the text to another sequential-access file after replacing all four-letter words by asterisks.
Problem (2) (Random Access Files)
An on-line menu-driven Football teams tracking system is to be implemented. University football teams need a system to store information about each football team which includes: ID number, name, number of games won, number of games lost, total goals scored by this team, and total goals scored by other teams against this team.
Teams’ records are maintained in a random-access data file “teams.dat” using the team ID number as the key. The record number in the file is the team ID number-1.
Write a C program that initializes the file with 100 empty records. For the empty record the team ID number =0, name is “”, all other fields initialized by zero.
Write a menu-driven program to do the following operations:
• Add a new team to the file
• Update the team info given the team ID number.
• Print details of a specific team given its ID number
• Print details of all teams in a sequential access file
• Delete a team