Question: How would you write Bigwhite.cpp? parameters to check for below Program #2: Bigwhite This program takes two numbers as its command line arguments -- the

How would you write Bigwhite.cpp?
parameters to check for below

Program #2: Bigwhite This program takes two numbers as its command line arguments -- the number of rows and the number of columns. It then writes a PGM file on standard output which contains that number of rows and columns, all of white pixels. Again, you should error check to make sure that the proper number of command line arguments are given, that they are integers and in the proper range. On an error, print the error statement to stderr. As an example, try: UNIX> ./bigwhite 20 10 > a. pgm This will create a PGM file a.pgm, which has 20 rows and 10 columns of white pixels. Those that don't begin with P2. Those that don't have non-negative integers after the P2. Those that don't have the number 255 after the number of rows and columns. Those that contain the wrong number of pixels after the P2. This includes having too many pixels. Those that contain pixels whose values are not numbers between 0 and 255. Program #2: Bigwhite This program takes two numbers as its command line arguments -- the number of rows and the number of columns. It then writes a PGM file on standard output which contains that number of rows and columns, all of white pixels. Again, you should error check to make sure that the proper number of command line arguments are given, that they are integers and in the proper range. On an error, print the error statement to stderr. As an example, try: UNIX> ./bigwhite 20 10 > a. pgm This will create a PGM file a.pgm, which has 20 rows and 10 columns of white pixels. Those that don't begin with P2. Those that don't have non-negative integers after the P2. Those that don't have the number 255 after the number of rows and columns. Those that contain the wrong number of pixels after the P2. This includes having too many pixels. Those that contain pixels whose values are not numbers between 0 and 255
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
