I built a magic decoder ring. A program capable of reading in lines of text and encrypting it; or reversing the process by reversing the process by reading an encrypted code string and decrypting it. For the program, we combine the use of bit masks and bitwise Exclusive.
I created an application to generate report cards from student records. First creating a Student Record using a function to set up the record. Student Record is represented by a struct containing StudentID, LastName, FirstName; Course records array containing 5 structs with CourseName and Mark following with AverageMark. Then I develop a function to calculate the average mark for each student and set each result appropriately in each student record. And lastly, I develop the last function to print report card for each student record.
Creating a Boolean function to determine if a year passed to the function is a leap year and pass back a Boolean result. I prompt the user to enter a date and then validate if it does infact represent a year. Then check if it is a leap year and inform the user. And then prompt the user to continue with another year. Loop, prompting for more years unit user enters 'N' to stop which terminates and reports a Boolean table representing all the leap years from 1 to 2022, each century in each line.