Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create and define a function called plotrectangle. The goal of plotrectangle is

ID: 3794210 • Letter: C

Question

Create and define a function called plotrectangle. The goal of plotrectangle is to plot a rectangle using the information that the user provides. The function should ask the user to define the origin of the rectangle (the lowest left corner), length of the rectangle and width of a the rectangle. Using this information, plotrectangle should plot a rectangle. (Use: xorg, yorg, length, and width) II. Create and define a function called plotcircle. The goal of plotcircle is to plot a circle using the information that the user provides. The function should ask the user to define the center of the circle and radius of the circle. Using this information, plotcircle should plot a circle. Hint: you can use sin(t) and cos(t) for t = [0,2] to create circles III. In your HW4 script use the plotrectangle and plotcircle functions you defined above to plot the figure below (size and scales does not matter and depends on your preference)

Using Matlab

Explanation / Answer

// function example #include using namespace std; int addition (int a, int b) { int r; r=a+b; return r; } int main () { int z; z = addition (5,3); cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote