Use the code above to write a program that when run, draws 1000 points
at random locations on a frame as it runs. For an added challenge, have
the 1000 points be in different, random colors.
Can someone actually write code for this pleaseee (IN PYTHON OR EDHESIVE)

Use The Code Above To Write A Program That When Run, Draws 1000 Pointsat Random Locations On A Frame

Answers

Answer 1

Answer: This is what worked for me

Explanation:

Use The Code Above To Write A Program That When Run, Draws 1000 Pointsat Random Locations On A Frame
Answer 2

The program is an illustration of frames in Python:

Frames are part of what makes up a graphic user interface program.

The missing code segment in Python, where comments are used to explain each line is as follows:

#This defines the draw handler method

def draw_handler(canvas):

   #This imports the random module  

   import random

   #This generates a random number between 0 and 1000

   randNum=random.randint(0,1000)

   #This following iteration is repeated

   for r in range (600,600):

        #This sets the rgb color code to the random number

        r = randNum; g = randNum; b = randNum

        #This gets the color code

        randRGBcolor = "RGB(" + str(r) + "," + str(b) + ")"

        #This draws the points

        canvas.draw_point([x, x],(randRGBcolor))

At the end of the program, the 1000 points are displayed on the screen

Read more about similar programs at:

https://brainly.com/question/14068778


Related Questions

Choose the correct option to fill in each blank.
In ___ parallelism, the computer divides a task into
___, which it then allocates to different processors for execution.

Blank 1:
Data-level parallelism
Instruction-level parallelism
Task-Level parallelism

Blank 2:
Subprograms
Subtasks
Submodules

Answers

Answer:

Blank 1:  Task level parrallelism

Blank 2:  Sub Tasks

Explanation:

Task Parallelism means concurrent execution of the different task on multiple computing cores.

Consider again our example above, an example of task parallelism might involve two threads, each performing a unique statistical operation on the array of elements. Again The threads are operating in parallel on separate computing cores, but each is performing a unique operation.

Answer:

In task-level parallelism parallelism, the computer divides a task into subtasks , which it then allocates to different processors for execution.

can someone help me with this trace table - its computer science

Answers

TThe while loop keeps going until count is greater than or equal to 10.

count = 0, sum = 0

count = 2, sum =2

count = 4, sum = 6

count = 6, sum = 12

count = 8, sum = 20

count = 10, sum = 30

Now that count is equal to 10, it exits the while loop and the program ends. The values above complete your trace table.

Describe what is involved in the first 4 stages of a research project.

Answers

Well,

1 pick your topic of research
2, research the topic.
3, look at the data surrounding the topic.
4, record the data.

The first cell phones in widespread use were . Smartphone technological advancements added services. Answer the following questions by choosing the best answer from the drop-down menus. Why did cell phones gain in popularity? Which device stemmed from the original cell phone and allowed for synchronized contact information? Which device followed the PDA?

Answers

Answer:

Why did cell phones gain in popularity?

✔ smaller and lighter components

Which device stemmed from the original cell phone and allowed for synchronized contact information?

✔ PDA

Which device followed the PDA?

✔ smartphone

Explanation:

The device stemmed from the original cell phone and allowed for synchronized contact information is PDA.The device followed the PDA is smartphone.

What is PDA?

PDA refers to Personal Data Assistants.

In earlier years phones were separated from (PDA)

Until Recent times when smartphones were introduced.

Smartphones can now save media and document files, remind you of activities to do during the day, using the To Do List feature and much more features.

It used to be that a phone was for only calls and messages and perhaps for keeping time.

The cell phones gain in popularity Because it is smaller and lighter components.

The device stemmed from the original cell phone and allowed for synchronized contact information is PDA.

The device followed the PDA is smartphone.

Learn more about smart phone here;

https://brainly.com/question/13445879

#SPJ2

Type the correct answer in the box. Spell all words correctly.

Isabella plans to work as a freelance DTP publisher. Her DTP setup is a non-Apple Macintosh platform. She has several options for printers. Which type of printer would you recommend to her?

__(blank)__ printers are ideal for DTP projects that work on a non-Apple Macintosh platform.

Answers

Answer:

hp deskjet 2543

Explanation:

Which of these causes problems because it causes all words to have the same shape?

using left-aligned text
using all uppercase text
putting two spaces after a period
using an image instead of text

Answers

Answer:

using probably all uppercase

Explanation:

because the person will more likely think your yelling at them

but maybe even left - aligned text

If you could represent yourself with one object from your home what would it be ?

Answers

Answer:

cross

bc im religous and stuff (0_0)

Answer:

def would be food

Explanation:

i would represent myself with a macaron

The number of individual networking address required for the internet is

Answers

Answer:

more than 4.3 billion

Explanation:

Write a method that takes a RegularPolygon as a parameter, sets its number of sides to a random integer between 10 and 20 inclusive, and sets its side length to a random decimal number greater than or equal to 5 and less than 12. Use Math.random() to generate random numbers.


This method must be called randomize() and it must take an RegularPolygon parameter.


Could someone help me out here thanks! C:

Answers

Answer:

public static void randomize(RegularPolygon r){

   int side = (int)((20-10) * Math.random()) + 10;

   int length = (int)((12-5)  * Math.random()) + 5;

   // assuming the regularpolygon class has setSide and setLength methods.

   r.set.Side(side);

   r.setLength(length);

}

Explanation:

The randomize method is used to access and change the state of the RegularPolygon class attributes sides and length. The method accepts the class as an argument and assigns a random number of sides and length to the polygon object.

Read the following code:

# Calculate average
average = numl + num2 + num3 / 3.0

There is an error in the code. How should the code be revised in order to get the correct output?

A:average = numl + num2 + num3 - 3.0

B:average = numl + num2 + num3 - 3.0

C: average = (numl + num2 + num3) / 3.0

D: average = numl + num2 + num3 / (3.0)

Answers

C is the correct answer

PLS HELP ;CC
The "Rule of Thirds" is compositional technique that was incorporated into photography from __________ .

a
early photographers who were first painters

b
early camera makers who found it was easy to explain to amateur photographers

c
early photo printers who used it and later it became a common rule

d
early SMPTE standards

Answers

Answer:

a

early photographers who were first painters

Explanation:

The Rule of Thirds is a compositional technique which states that image painting, photograph, graphic design should be divided into nine equally proportioned boxes by creating a grid with two vertical and two horizontal lines. The rule of third helps in making the picture more attractive and balanced

The rule of thirds was first used in landscape paintings by painters as early as 1797.

Why is it a good idea not to change the subject line when replying to a message?
O so that the reply is sent to the original sender
O so that the reply does not bounce back as undeliverable
O so that the reply matches with the sender's original message
O so that the reply does not inadvertently include unintended recipients

Answers

Answer:

C. so that the reply matches with the sender's original message.

Explanation:

The Sender Message Channel Receiver (SMCR) model of communication was developed and created by David Berlo in 1960. SCMR was developed from the Shannon-Weaver model of communication of 1949.

The SCMR model of communication comprises of four (4) main components and these are;

1. Sender (S): this is typically the source of information (message) or the originator of a message that is being sent to a receiver. Thus, they are simply the producer of a message.

2. Channel (C): this is the medium used by the sender for the dissemination or transmission of the message to the recipient. For example, telephone, television, radio, newspapers, billboards etc.

3. Message (M): this is the information or data that is being sent to a recipient by a sender. It could be in the form of a video, audio, text message etc.

4. Receiver (R): this is typically the destination of information (message) or the recipient of a message that is being sent from a sender. Thus, the receiver is any individual who is able to read, hear or see and process the message being sent or communicated in the communication process.  

Basically, the communication channel used in SCMR must connect the sender with the desired recipients.

Hence, it is a good idea not to change the subject line when replying to a message, so that the reply matches with the sender's original message.

Answer:

Explanation:

Its C not B

Jenae helps maintain her school web site and needs to create a web site poll for students. Which tool will she use?

JavaScript
HTML
CSS
Text editor

Answers

Answer:

text editor is not right, it is web browser

Explanation:

if she needed to view her website, she just needs to view it on her web browser.

Answer: HTML

Explanation:

PLEASE HELP THIS WAS DUE YESTERDAY AND I DIDN'T GET TO IT IN TIME!!!!!!
You must show all of your work to get full credit.
Part 1) Convert the following decimal numbers to binary.
5
89
191
25
7

Part 2) Convert the following decimal numbers to hexadecimal.
72
91
1000
57
3500

Part 3) Convert the following binary numbers to decimal.
101
11011
1001
10101
11001100

Part 4) Convert the following hexadecimal numbers to decimal.
50
200
ABC
DEF
F2A7

Part 5) Convert the following binary numbers to hexadecimal.
10101
110011
101010
1100
1001100

Part 6) Convert the following hexadecimal numbers to binary.
102
200
AB
EF
9F

Answers

Answer:

part 1 ) 5=0b101

89=0b1011001

191=0b10111111

25=0b11001

7=0b111

Part 2) 72=0X48

91=0X5b

1000=0X3e8

57=0X39

3500=0Xdac

part 3  101=5

11011=27

Explanation:

hope this helps took me a while pls make me brainliest

i was scripting for my game design clas and i was just creating a story based game. its not really a question but could you guys (meaning fellow users) give it a go? not done yet tho..

file:///C:/Users/Gamer_x9/Downloads/A%20New%20Beginning.html

its not an adobe link that pulls another tab dw i would never

Answers

Answer: sure thing

Explanation:

6.3 Code Practice

You should see the following code in your programming environment:

import simplegui

def draw_handler(canvas):
# your code goes here

frame = simplegui.create_frame('Testing', 600, 600)
frame.set_canvas_background("Black")
frame.set_draw_handler(draw_handler)
frame.start()


Use the code above to write a program that, when run, draws 1000 points at random locations on a frame as it runs. For an added challenge, have the 1000 points be in different, random colors.

Answers

Answer:

Use the canvas code to draw 1000 points but then for the location import the random module and use random.randrange() for it

Explanation:

The drawing object will be used for drawing

The random class is used for the random numbers

I hope it helps

Irene wants to connect her smartphone wirelessly to her laptop in order to transfer images. Which two technologies could she reasonably employ to connect these devices?

Wi-Fi
infrared
satellite
mobile network
Bluetooth

Answers

Answer:

The correct answers are

Wifi

Bluetooth

Explanation:

I got it right on the Edmentum test.

Irene wants to connect her smartphone wirelessly to her laptop in order to transfer images two technologies could she reasonably employ to connect these devices are Wi-Fi and Bluetooth.

What is the wireless network?

As an example, it's far usually hired in headsets for cell phones, allowing hands-unfastened cell smartphone use. Wi-Fi, on the alternative hand, lets in gadgets hook up to the Internet. Bluetooth limits the range of gadgets that can join at someone's time, while Wi-Fi is open to greater gadgets and greater users.

Wi-Fi is possibly the largest and maximum tricky example, as are different Bluetooth receivers and gadgets, that can intrude on one another. The backside line is this: WiFi is the wi-fi community you operate to your house, however it is able to be made out of any form of network connection.

Read more about the mobile network:

https://brainly.com/question/917245

#SPJ2

what is a computer vhdvsidegvjks

Answers

Answer:

i'm using a computer to answer this question rn

Explanation:

vhdvsidegvjks

JAVA
Write a method that takes a parameter for the number of a month and prints the month's name. You may assume that the actual parameter value
passed to the method is always between 1 and 12 inclusive.
This method must be called monthName() and it must have an integer parameter.
Calling monthName(8) should print August to the screen.
You can call your method in the program's main method so you can test whether it works, but you must remove or comment out the main method
before checking your code for a score

Answers

public class MyClass {

   public static String monthName(int num){

       String arr[] = {"January", "February", "March", "April", "May", "June", "July","August", "September", "October", "November", "December"};

       return arr[num-1];

   }

   public static void main(String args[]) {

     System.out.println(monthName(8));

   }

}

I hope this helps.

Methods are blocks of named statements that can be called from other place in the program

The method in java, where comments are used to explain each line is as follows:

//This defines the method

public static void monthName(int month){

//This initializes the array of months

String months[] = {"January", "February", "March", "April", "May", "June", "July","August", "September", "October", "November", "December"};

//This prints the month name

System.out.print(months[month-1]);     }

Read more about similar programs at:

https://brainly.com/question/22589115

what is the main function of processing unit​

Answers

Answer:

CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer.

Explanation:

Answer:

CPU

Explanation:

CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer.

Why is it a good idea not to change the subject line when replying to a message?
O so that the reply is sent to the original sender
O so that the reply does not bounce back as undeliverable
O so that the reply matches with the sender's original message
O so that the reply does not inadvertently include unintended recipients

Answers

Answer:

the correct answer is C

Explanation: i just did it on edge 2021

Answer:

C. so that the reply matches with the sender’s original message

Explanation:

Multimode fiber can be used for long distance transmission

Answers

Answer:

False

Explanation:

Multimode fibers have large diameter ( about 50-100 microns), and are used for short and medium distance transmission. If long multimode fiber cable are used, it can  cause distortion at the receiving end leading to partial data transmission.   Multimode cables are used for local-area network.

Single mode fiber has small diameter of  about 8.5-10 microns and can be used to transmit up to 50 times more distance than the multimode. Hence it is used for long distance communication.

if you were any type of fnaf charater who would you be and why?

Answers

Answer:

Foxy

Explanation:

Cause he's cool and he's my favorite.

An IP subnetting design effort is under way at a company. So far, the senior engineer has decided to use Class B network 172.23.0.0. The design calls for 100 subnets, with the largest subnet needing 500 hosts. Management requires that the design accommodate 50 percent growth in the number of subnets and the size of the largest subnet. The requirements also state that a single mask must be used throughout the Class B network. How many masks meet the requirements

Answers

Answer:

The answer is "0".

Explanation:

The mask should describe sufficient subnet bits for build 150 subnet masks with 50% development. The Mask thus needs a minimum of 8 subnet bits (7 subnet bits supply 27, or 128, subnets, and 8 subnet bits supply 28, or 256, subnets). Similarly, such a need to grow by 50% of its size of the main subnet needs, that host part to amount to 750 hosts/subnet. There's not enough 9 host bits (29 - 2 = 510), yet 10 network bits have 1022 host(s)/subnet (210 – 2 = 1022). This same maximum mask project requires to be 34 bits, (at least) in the form of 16 network bits, because of the Class B network, but there are only 32 bits, therefore no single mask meets its requirements.

You want the output to be left justified in a field that is nine characters wide. What format string do you need?

print('{: __ __ }' .format(23)

Answers

Answer:

> and 8

Explanation:

> and 8 format string one will need in this particular input of the java string.

What is a format string?

The Format String is the contention of the Format Function and is an ASCII Z string that contains text and configuration boundaries, as printf. The parameter as %x %s characterizes the sort of transformation of the format function.

Python String design() is a capability used to supplant, substitute, or convert the string with placeholders with legitimate qualities in the last string. It is an inherent capability of the Python string class, which returns the designed string as a result.

The '8' specifies the field width of the input The Format String is the contention of the Configuration Capability and is an ASCII Z string that contains the text.

Learn more about format string, here:

https://brainly.com/question/28989849

#SPJ3

Which of the following components converts AC to DC?
Voltage regulator
Surge protector
Capacitor
Power supply

Answers

Answer:

Power supply

Explanation:

A computer's power supply converts alternating current (AC) from the wall outlet to direct current (DC) used by the computer's internal components.

A voltage regulator is an electronic device that supplies the appropriate voltage to a processor. It does not convert the power input from one form to another; it only ensures that the voltage remains at the appropriate level for the device. A surge protector protects a system from power spikes. A UPS (uninterruptible power supply) provides backup AC power using a reserve battery.

power supply

Explanation:

took the quiz

It is also known as the embryonic stem.
A. radicle
B. hypocotyl
C. epicotyl
D. testa
It is a series of activities carried out in a form management system prior to planting the seed or planting materials.
a. pre-planting operation
b. prior planting operation
c. first planting operation
d. start planting operation

Answers

Answer:

A and B, I really hope.

Explanation:

Answer:

the first one is D and the second one is B

What is one way programmers benefit from using Python's Math Module?

A: Create programs faster and easier

B: Learn to solve complicated equations

C: Prevent logic errors in their code

D: Prompt user input in numeric form

Answers

Answer:

Python's Math Module helps developers provide direct access to the mathematical functions in our programs, thus saving a lot of complexity and time, and helping the developers program faster.

Therefore, we conclude that option A is true.  

Explanation:

Python's Math Module is a very important module designed to deal with certain mathematical operations.

It includes:

Trigonometric functonsrepresentation functionslogarithmic functions

and many more mathematical tasks.

It also contains two mathematical constants:

PieEuler number, etc.

Python's Math Module helps developers provide direct access to the mathematical functions in our programs, thus saving a lot of complexity and time, and helping the developers program faster.

Therefore, we conclude that option A is true.  

Answer:

Create programs faster and easier.

Explanation:

Several people work with data at Erica’s office. She enters data. One of her coworkers enters new product numbers. Another coworker searches for parts that need to be ordered. Erica’s company uses a _____.

Answers

Answer:

a software program for storing, managing, and retrieving information

Explanation:

create a flowchart to print numbers from 1 to 100
( IF U ANSWER PROPERLY I WILL MARK U AS BRAINLIEST)

Answers

Answer:

brainliest plsss

Explanation:

I think so this is what you had asked!!!!!!

hope it helps

Other Questions
Amy plays a game with an ordinary, fair dice.If she rolls: 1 she wins, 2 or 3 she loses, 4, 5 or 6 she rolls again.When she has to roll again: if she rolls an even number she winsif she rolls an odd number she loses.a) Work out the probabilities that should beFirst rollSecond rollplaced at P, Q, R and S on the tree diagram.Give your answers as fractions in the form a/bPQ2 or 3P:Q:R:S:Reven4, 5 or 6(1)(1)b) Work out the probability that Amy will winand the probability she will lose.Give your answers as fractions in the form a/bSoddP(win) =P(lose) =(2)(2) Which statement accurately describes the role of African Americans in the Revolutionary War? 1. Thousands of African Americans became generals in the Continental Army.2. Thousands of African Americans enlisted in the British army and fought against Americas freedom because of slavery.3. African Americans were not allowed to participate in the Revolutionary War.4. Thousands of African Americans helped fight for Americas freedom, some in Black regiments and some alongside white soldiers. I need help please and thank you In the picture above, if the cue stick strikes the 0.2-kg cue ball with a force of 1.1 N, what will be the acceleration of the cue ball? What is a global hectare (gha)? Find the slope intercept equation of the line The cost for the company to ship the boxes varies indirectly with the number of boxes being shipped. If 25 boxes are shipped at once, the cost will be $10 per box. Someone pls help Im not sure Letter from Birmingham Jail AssignmentAnswer the following questions after reading the letter.1. Who is he writing the letter to?2. Why is he responding to this particular criticism?3. What reasons does he give for being in Birmingham? Which do you believe to be the most important and why?4. What does he feel clergyman should have criticized in Birmingham?6. Explain the steps taken by local civil rights leaders to end the unfair treatment of African Americans in Birmingham prior to Kings arrival and demonstrations. What was the purpose of the demonstration?7. Evaluate Kings arguments on timing in his experiences.8. How does King differentiate between just and unjust laws? Provide examples.9. What role does King feel white moderates have in the struggle for equal rights?10. Why does King argue that demonstrators should be allowed to express themselves?11. Why do you think King in particular has been disappointed with white religious leaders?12. Paraphrase Kings feelings about the Birmingham police departments treatment of African Americans. John hit a golf ball from the ground and it followed the projectile h(t)=-16t+100t+0, where is the time in seconds, and is the height of the ball. Use the quadratic formula to solve the two roots. These represent the 2 times that the ball is on the ground. At what time does the golf ball land? What is the max height of the golf ball? At what time (t) is the golf ball at the maximum height? The area of the triangle below is 33.12 square inches what is the length of the base What should America do with the 11 million undocumented immigrants living inthis country? Clayton draws 3 pictures in 25 minutes. He drew 24 pictures this week. How many minutes did Clayton spend drawing the pictures? NEED A ANSWER ASAP . Which expression is equivalent to 14-9?math The average cow drinks 168 quarts of water each day. Given that thereare 4 quarts to one gallon, how many gallons of water does the averagecow drink? Mr. and Mrs. Phillips are going to build a new home with a foundation that is in the shape of a square. The house will cover 222 square yards. Find the length of the side of the house to the nearest tenth of a yard. Plz I need help help me plzzzz Which number represents the BASE?42=16A. 4B. 2C. 16 PLEASSSE HELP MAKING BRAINLIEST IF RIGHT The y intercept is at the point '?'The roots are x = ? and x = ?The turning point is at ( ? , ? )