Answered step by step
Verified Expert Solution
Link Copied!

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. image text in transcribed

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 output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 1 Lnai 9284

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Carlos Soares ,Joao Gama ,Alipio Jorge

1st Edition

3319235273, 978-3319235271

More Books

Students also viewed these Databases questions