CS 1371 Lecture Notes - Lecture 7: Cyan, Pentagon, Test Case

34 views8 pages

Document Summary

Inputs (1): -(char) a string containing a request of what to plot. Outputs (1): -(char) a string containing a response. Write a function that takes in a request of the form: "give me a with . " and outputs a response in the form: "here is your with . " Determine the value of the radius/side length. (hint: there will always be a period after this number. ) This value is guaranteed to be a positive integer (one digit). If it is even, your plotted figure should be green. Determine if you are plotting a circle or a square. (if neither, output. If plotting a circle, use 100 evenly spaced values from 0 to 2 (inclusive) for theta. Whether you are plotting a circle or square, the center of the figure should be located at (0,0). Set the axis to square to see the plots as they appear below.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents