Question: Generate a 1 6 - bit integer ( C + + short int ) using three integer values ( year , month, and day )

Generate a 16-bit integer (C++ short int) using three integer values (year, month, and day). Its purpose is to create a Microsoft FAT system date. This has three bit fields.
write a program which takes a user-supplied date and produces the corresponding FAT-encoded value. Prompt the user for a month, day, and year. Reject invalid month and day values and end the program with an error message. Reject any year not between 1980 and 2107 and end the program. Produce your output in hexadecimal.
Sample Output:
Enter a month, day, and year between 1-1-1980 and 12-31-2107: 3202018
The hexadecimal FAT date is: 4C74
 Generate a 16-bit integer (C++ short int) using three integer values

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!