Write a c++ program that reads from the standard input apositive integer n and w
ID: 3613608 • Letter: W
Question
Write a c++ program that reads from the standard input apositive integer n and writes to thestandard output a Postscript program that, when viewedby gs (or ghostview), would show ann × n checker board. Thechecker board should be as large as possible subject to thefollowing conditions:
(a) The entire checker board should fit in a6× 6 area, and
(b) The size of each square cannot be larger than0.25.
You should be careful when you write something on thescreen (i.e., you should understand the differencebetween cout and cerr). Your program should be able to redirect youroutput into a file so that the file contains only valid postscriptinstructions. This program must be able to run on the g++compiler.
Explanation / Answer
still looking for some help and hints on this
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.