Question: Write a program that creates an image of blue and white vertical stripes. Your program should ask the user for the size of your image,

Write a program that creates an image of blue and white vertical stripes. Your program should ask the user for the size of your image, the name of the output file, and create a .png file of stripes. For example, if the user enters 10, your program should create a 10x10 image, alternating between blue and white stripes.

A sample run of the program:

Enter the size: 11 Enter output file: 11stripes.png

Another sample run of the program:

Enter the size: 50 Enter output file: 50stripes.png

Step by Step Solution

3.48 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a program that generates an image of vertical blue and white stripes you can use Python al... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!