Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need a small program written in C. This is an intro level class so please explain all of your steps with lots of comments
I need a small program written in C. This is an intro level class so please explain all of your steps with lots of comments and keep the technique simple. Thank you. Let me know if you need any other information that isn't present in the picture, but it should be a very simple program. You only need to write one of the options as it states in the photo, not both.
5B: Date Info Encryption & Decryption Data format description: The date information is encrypted (i.e., stored) as one integer. Each byte stores month, date, century, and year, in order. For example, 10/8/2018 is stored as OXA081412 (00001010 00001000 00010100 00010010 in binary). We will write a C program to encrypt and decrypt the date information. 1. Encryption: Ask for month, date, year (including century and year), convert the information to one int type number. Output the int number and corresponding 32-bit binary representation. 2. Decryption: Ask for an encrypted integer, output the 32-bit binary representation and the date information. Submission: For the encryption and decryption process, implement at least one. Complete both if you have time. Submit the source code and a screenshot of the output. 5B: Date Info Encryption & Decryption Data format description: The date information is encrypted (i.e., stored) as one integer. Each byte stores month, date, century, and year, in order. For example, 10/8/2018 is stored as OXA081412 (00001010 00001000 00010100 00010010 in binary). We will write a C program to encrypt and decrypt the date information. 1. Encryption: Ask for month, date, year (including century and year), convert the information to one int type number. Output the int number and corresponding 32-bit binary representation. 2. Decryption: Ask for an encrypted integer, output the 32-bit binary representation and the date information. Submission: For the encryption and decryption process, implement at least one. Complete both if you have time. Submit the source code and a screenshot of the outputStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started