Virus detection and prevention: a File Infecting virus is designed to infect the files stored on your computer system and…