Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Lecture 4, we designed a program to make a Hunter logo 'H' on a 10x10 grid. Write a program that creates a green 'T'

In Lecture 4, we designed a program to make a Hunter logo 'H' on a 10x10 grid. Write a program that creates a green 'T' logo for Thomas Hunter on a 30x30 grid.

The grading script is expecting:

  • The file to be saved as: logo.png.
  • The grid to be 30 x 30.
  • The 'T' to be 0% red, 100% green, and 0% blue. The top part of the 'T' should be the top third of the image and the bottom part of the 'T' should be the center third of the image.
  • The remaining pixels in the image should be white (100% red, 100% green, and 100% blue).

Note: before submitting your program for grading, remove the commands that show the image (i.e. the ones that pop up the graphics window with the image). The program is graded on a server on the cloud and does not have a graphics window, so, the plt.show() and plt.imshow() commands will give an error. Instead, the files your program produces are compared pixel-by-pixel to the answer to check for correctness. Must be done in python idle

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions