Question: Coded in C++; Visual Studio 2013; Please help. Write a program that will prompt the user for a valid date. You do not have to

Coded in C++; Visual Studio 2013; Please help.
Write a program that will prompt the user for a valid date. You do not have to validate the month, day and year. Then using bitwise operators, combine the 3 values within a function to form a single integer date. Then set the month, day and year variables to zero and write a second function that will extract the month, day, and year from the integer date. Display the integer date and the extracted values in the main function, no output in the functions. Your functions should look like the following calls. date = compressDate(m, d, y); extractDate(date, m, d, y); The masks you will need for the assignment are int daymask = 63; int monthmask = 15; int yearmask = 4095; A sample run of you program will resemble the following. User Input is bolded. Enter a date (may): 1 25 2016 The ccmpre33ed date is: 2064473 The extracted dare is: 1/25/2016
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
