It is intended to read all the employees of a company – located in a COMPANY file – and at the end of reading the file, shows the following message: “There are ## workers over 65 years of age ” (## is the number of workers that are over 65 years old).
Answer:
C# language.
// Current Date
var Today = DateTime.Today;
// Ages at a given time calculation
var Age = today. Year – birthdate. Year;
counter = 0
for ()
//snippet
if (age > 60)
counter <- counter+1