Computer Science Homework Help

Computer Science Homework Help. Advanced C++ question help!!

  1. The file (https://drive.google.com/file/d/1ZtARLh3yxyvd90Zs0…) contains an unknown number of int values stored in binary. Download the file. Open it, determine the file size and number of int values that it contains.
  2. Allocate memory dynamically to hold the int data from the binary file.
  3. Read the binary file into the dynamically allocated memory.
  4. Display each int value in decimal, with a width of 12, six to a line.
  5. Display each int value in hexadecimal, with a width of 12, six to a line.
  6. Extract the 3rd byte of each int and display it in hexadecimal, with a width of 6, twelve to a line.
  7. Reverse the nibbles of the resulting byte and display it in hexadecimal, with a width of 6, twelve to a line.
  8. Interpret each result from step 7 as a BCD (binary coded decimal) value and add 32 to each. Cast each result to a char and display the secret message.
  9. Clean up your mess.

Sample output attached

Computer Science Homework Help

 
"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"