Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help with this C program, please answer all parts. I'm not very sure where to even start with this program. Lab 6 - Arrays,
Need help with this C program, please answer all parts. I'm not very sure where to even start with this program.
Lab 6 - Arrays, Pointers, and Structures Objectives In this lab, each student is to write a program called prog6.c that allows the user to operate on bitmap images. The student should gain and understanding of Use of Dynamic Memory Allocation Manipulation of Two-Dimensional Arrays Manipulation of Structures Use of Pointers to Structures Format and Manipulation of Bitmap Image Files Use of Command Line Arguments . . . Input The program should receive as command line arguments the name of an input file, the name of an output file (which must be different), and three numbers from -200 to +200, e.g prog6 Tiger.bmp TigerOut.bmp +63 -17 +0 The input file is to be a 24-bit color bitmap image of the windows bmp format. A 24-bit color .bmp file has two parts to its header describing the image file. The first header has the following structure struct HEADER ( unsigned short int Type; /*Magic identifier /*File size in bytes unsigned int Size; unsigned short int Reservedl, Reserved2; unsigned int Offset; /*Offset to data (in B) /14 Bytes -- l Header; Lab 6 - Arrays, Pointers, and Structures Objectives In this lab, each student is to write a program called prog6.c that allows the user to operate on bitmap images. The student should gain and understanding of Use of Dynamic Memory Allocation Manipulation of Two-Dimensional Arrays Manipulation of Structures Use of Pointers to Structures Format and Manipulation of Bitmap Image Files Use of Command Line Arguments . . . Input The program should receive as command line arguments the name of an input file, the name of an output file (which must be different), and three numbers from -200 to +200, e.g prog6 Tiger.bmp TigerOut.bmp +63 -17 +0 The input file is to be a 24-bit color bitmap image of the windows bmp format. A 24-bit color .bmp file has two parts to its header describing the image file. The first header has the following structure struct HEADER ( unsigned short int Type; /*Magic identifier /*File size in bytes unsigned int Size; unsigned short int Reservedl, Reserved2; unsigned int Offset; /*Offset to data (in B) /14 Bytes -- l HeaderStep 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