Question
write a raptor graphic procedure that draws something useful, the calling program must be able to pass in at least 3 arguments

drawdog ols main ment all Start Output tion pop Open Graph_Window(500, 500) drawdog(50, 50, 100, 50) drawdog(150, 200, 200, 1
drawdog Start (in x, in y, in width, in height) Draw_Box(x, y, x + width, y + width, blue, true) left- x - width/ 2 Set left
drawdog ols main ment all Start Output tion pop Open Graph_Window(500, 500) drawdog(50, 50, 100, 50) drawdog(150, 200, 200, 100) End
drawdog Start (in x, in y, in width, in height) Draw_Box(x, y, x + width, y + width, blue, true) left- x - width/ 2 Set left to x-width/2 rightx + width / 2
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Since the question doesn't specify any shape, a simple shape is assumed. Please go through the image below for rapture statements. The output image is also given(Please do rate the answer if you found useful)

Start Open_Graph_Wndow (400, EUseful Shape Set Window_Title (Useful Shpe) Clear Window (Yellow) Draw Box(50, 50, 350, N 250,

Add a comment
Know the answer?
Add Answer to:
write a raptor graphic procedure that draws something useful, the calling program must be able to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • python 8. Assume that in a program, the following statement creates a Canvas widget and a it to the self.canvas variable: self.canvas tkinter.Canvas(self.main_window, width-200, height-200) Wri...

    python 8. Assume that in a program, the following statement creates a Canvas widget and a it to the self.canvas variable: self.canvas tkinter.Canvas(self.main_window, width-200, height-200) Write statements that do the following: a) Draws a blue line from the Canvas widget's upper-left corner to its lower-right corner. The line should be 3 pixels wide. Draws a rectangle with a red outline and a black interior. The rectangle's corners should appear in the following locations on the Canvas: b) Upper-left: (50, 50)...

  • Re-write this program into a javafx program, using javafx components only. NO awt or swing. import...

    Re-write this program into a javafx program, using javafx components only. NO awt or swing. import java.awt.Button; import java.awt.Label; import java.awt.TextField; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JPanel; public class DecimalBinary { public static void main(String[] args) { JFrame frame=new JFrame(); //Create a frame frame.setTitle("Decimal-Binary Converter"); //Set its label frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(300, 300); //Set size fo frame JPanel panel=new JPanel(); //Create a panel to contain controls frame.add(panel); //add panel to frame panel.setLayout(null); Label decimalLabel=new Label("Decimal"); //Create label for decimal decimalLabel.setBounds(10,...

  • I NEED HELP IN MAZE PROBLEM. Re-write the following program using classes. The design is up...

    I NEED HELP IN MAZE PROBLEM. Re-write the following program using classes. The design is up to you, but at a minimum, you should have a Maze class with appropriate constructors and methods. You can add additional classes you may deem necessary. // This program fills in a maze with random positions and then runs the solver to solve it. // The moves are saved in two arrays, which store the X/Y coordinates we are moving to. // They are...

  • WRITE A C++ PROGRAM TO ANSWER THE QUESTIONS BELOW. You are provided with an image in...

    WRITE A C++ PROGRAM TO ANSWER THE QUESTIONS BELOW. You are provided with an image in a new file format called JBC Here is an example of the format: 2 3 100 50 40 200 66 56 12 45 65 23 67 210 0 255 100 45 32 123 The first line means that this is a 2 (width) by 3 (height) image of pixels. Then, each line represents the color of a pixel. The numbers are from 0 to...

  • Write a program which will Ask the user a series of questions using the Scanner object Based on t...

    Write a program which will Ask the user a series of questions using the Scanner object Based on the input, draw a grid of star figures on the DrawingPanel You program should ask your user: . What R, G & B values to create a color to draw the figure? How many stars across should the fgure be? How many stars tall should the figure be? Note that your program does not need to error check the users responses Your...

  • please do in java and comments the code so i can understand Requirements: Create a Java...

    please do in java and comments the code so i can understand Requirements: Create a Java class named “MyRectangle2D.java”. Your class will have double two variables named x and y. These will represent the center point of your rectangle. Your class will have two double variables named width and height. These will represent the width and height of your rectangle. Create getter and setter methods for x, y, width, and height. Create a “no argument” constructor for your class that...

  • Write a program that will define a runnable frame to have a ball move across the...

    Write a program that will define a runnable frame to have a ball move across the frame left to right. While that is happening, have another frame that will let the user do something like click a button or input into a textfield, but keep the ball moving in the other frame. When the ball reaches the right edge of the frame or when the user takes action - enters in textfield or clicks the button, end the thread. The...

  • What is wrong with my code? It needs to open in html. A line, circle, and...

    What is wrong with my code? It needs to open in html. A line, circle, and a rect. #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { printf("!DOCTYPE html> \n"); printf("<html> \n"); printf("<body> \n"); printf("<svg height='1000' width='1000' style='stroke-width: 0px; background-color: rgb(128, 0, 128);'> \n"); printf(" \n"); printf("<circle cx='160' cy='200' r='172' stroke=\"black\" stroke-width=\"4\" fill=\"red\" /> \n"); printf(" \n"); printf(" \n"); printf(" \n"); printf("<rect x=\"50\" y=\"300\" width=\"150\" height=\"150\" \n"); printf(" fill='rgb(344,21,377)' /> \n"); printf(" \n"); printf(" \n"); printf(" \n"); printf("<line x1=\"3\" y1=\"67\"...

  • create a program shape.cpp that uses classes point.h and shape.h. The program should compile using the...

    create a program shape.cpp that uses classes point.h and shape.h. The program should compile using the provided main program testShape.cpp. the provided programs should not be modified. Instructions ar egiven below. Shape class The Shape class is an abstract base class from which Rectangle and Circle are derived. bool fits_in(const Rectangle& r) is a pure virtual function that should return true if the Shape fits in the Rectangle r. void draw(void) is a pure virtual function that writes the svg...

  • Making a rectangle class in java write a simple class that will represent a rectangle. Later...

    Making a rectangle class in java write a simple class that will represent a rectangle. Later on, we will see how to do this with graphics, but for now, we will just have to use our imaginations for the visual representations ofWthe rectangles. Instance Variables Recall that an object is constructed using a class as its blueprint. So, think about an rectangle on your monitor screen. To actually draw a rectangle on your monitor screen, we need a number of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT