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

pleaseeeeee help me or I’m going to fail & I really want to graduate :(!!!

Answers

Answer:

Konrad Zuse

Explanation:

KONRAD ZUSE (1910-1995) 1935-1938: Konrad Zuse builds Z1, world's first program-controlled computer. Despite certain mechanical engineering problems it had all the basic ingredients of modern machines, using the binary system and today's standard separation of storage and control.

Do the lengths of 10,4 and 5 form a triangle explain why please I’m confused

Answers

Answer:

no

Explanation:

Imagine having sticks of these lengths. Attach the 4 and 5 to both ends of the 10. No way you can have them touch each other, not even when the triangle is flat.

The 4 and 5 add up to 9, that is less than 10.

The Triangle Inequality Theorem states that the sum of any 2 sides of a triangle must be greater than the measure of the third side.

which guidelines should be used to make formatting tasks more efficient

Answers

“Use pasted text only; this does not keep the original formatting”
which guidelines should be used to make formatting tasks more efficient

what are the peripherals of a computer ​

Answers

Answer:

A computer peripheral is any external device that provides input and output for the computer.

Peer collaboration helps develop critical-thinking skills, which is the ability to

focus on multiple subjects at once.
criticize the thoughts of others.
examine a subject more closely.
focus on a single opinion or perspective.

Answers

Answer:

its c

Explanation:

after a few googel searches this is the answer

Answer:examine a subject more closely.

Explanation:

i just finshed the test

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.

Complete the code.
import csv
inFile = open ("one.txt","r")
outFile = open("another.txt", "w")
myReader = csv.reader(inFile)
for item in myReader:
aWord = item[0]
aNumber = ___ (item[1]) + 0.4
line = aWord + "," + str(aNumber) + '\n'
outFile.write(line)

Answers

Answer:

The answer is float.

Explanation:

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

I REALLY Need help on this.

Answers

Make a deposit talk to A representative transfer money and Check account balance

why CANON G1010 is the best choices than epson L3110 3in 1 Printer​

Answers

Answer:

I would say go with the canon as I have a better history with it than Epson

Explanation:

they both look similar and have similar features

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.

Learning how to use word processing and spreadsheets, and creating presentations are all considered __________ computer skills.
A.
basic
B.
advanced
C.
optional
D.
unnecessary

Answers

Answer: a i hope it help

Explanation:

Answer:

A basic

Explanation:

<33

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

The computer code behind password input can be modified to force people to change their password for security reasons. This is known as “password expiration,” and some websites and companies use it regularly. However, people tend to choose new passwords that are too similar to their old ones, so this practice has not proven to be very effective (Chiasson & van Oorschot, 2015). Your friends have a hard time remembering passwords. What method can you devise for them so that they can remember their new passwords AND make them very different from the old ones?

Answers

Answer:

to remember the passwords you could either make a little rhyme to "help" remember it or you could be like everyone else and write it down on a piece of paper. you could also write the password over and over again to make it stick. a way to make a password different from an old one is to use completely different wording and completely different numbers.

Explanation:

Answer:

B

Explanation:

got it right

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

The computer code behind password input can be modified to force people to change their password for security reasons. This is known as “password expiration,” and some websites and companies use it regularly. However, people tend to choose new passwords that are too similar to their old ones, so this practice has not proven to be very effective (Chiasson & van Oorschot, 2015). Your friends have a hard time remembering passwords. What method can you devise for them so that they can remember their new passwords AND make them very different from the old ones?

Answers

Answer:

to remember the passwords you could either make a little rhyme to "help" remember it or you could be like everyone else and write it down on a piece of paper. you could also write the password over and over again to make it stick. a way to make a password different from an old one is to use completely different wording and completely different numbers.

Explanation:

7.5 Code practice Plz answer ASAP

Answers

def calculate_GPA(grade, weight):

   grades = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}

   if weight == 0:

       return grades[grade]

   else:

       return grades[grade] + 1

classes = int(input("How many Classes are you taking? "))

total = 0

for x in range(classes):

   letter = input("Enter your Letter Grade: ")

   user_weight = int(input("Is it weighted? (1 = yes) "))

   grade = calculate_GPA(letter, user_weight)

   total += grade

   print("Your GPA score is: ", grade)

print("Your weighted GPA is a",(total/classes))

I wrote my code in python 3.8. I was able to replicate the output in your picture exactly. If you need me to make any changes, I'll do my best.

The function is an illustration of for loops

For loops are used to perform repetitive operations; just like the while loop

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

#This defines the studentGPA function

def studentGPA(grade, weight):

   #This initializes a dictionary for all grades

   allGrade = {"A": 4, "B": 3, "C": 2, "D": 1, "F": 0}

   #This sets the return grade to 0

   retValue = 0

   #If the grade is valid

   if grade in allGrade:

       #If the weight is 0

       if weight == 0:

           #Then score is not graded

           retValue = allGrade[grade]

       #If otherwise

       else:

           #This adds 1 to the return grade

           retValue = allGrade[grade]+1

   #This returns the grade point

   return retValue

#The main begins here    

#This gets the number of classes

klass = int(input("How many Classes are you taking? "))

#This initializes the total grade to 0

total = 0

#This following is repeated for each class

for x in range(klass):

   #This gets input for the letter grade

   letterGrade = input("Enter your Letter Grade: ")

   #This gets input for the weight

   weight = int(input("Is it weighted? (1 = yes) "))

   #This gets the corresponding grade

   grade = studentGPA(letterGrade, weight)

   #This prints the grade point

   print("Your GPA score is: ", grade)

   #This calculates the total grade

   total += grade

#This calculates the GPA

GPA = total/klass

#This prints the GPA

print("Your weighted GPA is a",GPA)

Read more about for loop at:

https://brainly.com/question/12736327

help plz
What is Process?

A person who designs any of a variety of things.
A person who designs any of a variety of things.

A person who is trained in and uses technological and scientific knowledge to solve practical problems.
A person who is trained in and uses technological and scientific knowledge to solve practical problems.

Human activities used to create, invent, design, transform, produce, control, maintain, and use products or systems; a sequence of actions that combines resources to produce an output.
Human activities used to create, invent, design, transform, produce, control, maintain, and use products or systems; a sequence of actions that combines resources to produce an output.

A systematic problem-solving strategy, with criteria and constraints, used to develop many possible solutions to a problem or to satisfy human needs and wants and winnow (narrow) down the possible solutions to one final choice.
A systematic problem-solving strategy, with criteria and constraints, used to develop many possible solutions to a problem or to satisfy human needs and wants and winnow (narrow) down the possible solutions to one final choice.

An iterative decision-making process that produces plans by which resources are converted into products or systems that meet human needs and wants or solve problems.
An iterative decision-making process that produces plans by which resources are converted into products or systems that meet human needs and wants or solve problems.

A person or household that purchases goods or services.

Answers

Answer:

Yes

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

Which of the following is an example of a logic error in programming?

A: Not using quotation marks and parentheses to print a string literal

B: Printing an inaccurate statement, like print("Dogs have wings.")

C: Trying to perform an impossible task, like 5 / 0

D:Using camelcase when a variable name contains two or more words

Answers

Answer:

It's C

Explanation:

Which function is used to remove all items from a particular dictionary?
i) len() ii) get() iii) keys() iv) None of

Answers

Answer:

The right answer is: Option 4: None of these.

Explanation:

A data structure in python is knows as a dictionary. It works like an array. Different functions can be used to perform different operations on the dictionary.

In the given options,

Option 1: len() function is used to return length of dictionary.

Option2: get() function is used with a key as argument to return the value present on the specific key

Option 3: keys() function is used to display all the keys of a dictionary in the form of a list

Hence,

The right answer is: Option 4: None of these.

Which of the following computer components typically has the FASTEST performance?

RAM
NIC
Firmware/BIOS
CPU

Answers

Answer:

CPU

Explanation:

The CPU is typically the fastest component in a computer and processes a large number of commands in a short amount of time. The CPU controls the other parts of the computer by getting information from them, then telling them what to do.

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

A career in culinary arts can best be described as working in the __________ industry.
A.
food
B.
clothing
C.
computer
D.
entertainment

Answers

Answer:

A-Food

Explanation:

The answer would be A:Food

who is big brain me or you

Answers

Question:

Who is big brain me or you?

Answer:

I think is you because your the best I can be with you and I hope it helps

#CARRYONLEARNING #STUDYWELL

how many string object are in 128,55 in python

Answers

Answer:

Explanation:

In the following examples, input and output are distinguished by the presence or absence of prompts (>>> and …): to repeat the example, you must type everything after the prompt, when the prompt appears; lines that do not begin with a prompt are output from the interpreter. Note that a secondary prompt on a line by itself in an example means you must type a blank line; this is used to end a multi-line command.

Many of the examples in this manual, even those entered at the interactive prompt, include comments. Comments in Python start with the hash character, #, and extend to the end of the physical line. A comment may appear at the start of a line or following whitespace or code, but not within a string literal. A hash character within a string literal is just a hash character. Since comments are to clarify code and are not interpreted by Python, they may be omitted when typing in examples.

There are 4 strings within the best_list. Strings can be easily identified becuase they're surrounded with quotes. For example, "hello" is a string because it has the quotes around it.

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

Question 7 of 10
What is an End User License Agreement (EULA) an example of?
A. Integer license
B. Open source license
C. Proprietary liger
lisense
C
D. Numeric license

Answers

Answer:The answer is Proprietary license

Explanation:

An example of the end-user license agreement is the proprietary liger. Thus, the correct option is C.

What is an end-user license agreement?

An end-user license agreement (EULA) is a legal contract between a software supplier and a customer or the end-user. It is generally made available to the customers or the end-user via a retailer which is acting as an intermediary in this agreement.

An end-user license agreement specifies in detail all the rights and restrictions which is applied to the use of the software program. Ignoring the EULAs can expose the computer to security risks. Ignoring EULAs can put the privacy of the system at risk.

An example of the end-user license agreement is the proprietary liger.

Therefore, the correct option is C.

Learn more about End-user license agreement here:

https://brainly.com/question/14681311

#SPJ2

_____ (without parity) means spreading the data among multiple (at least two) drives. Group of answer choices Parity

Answers

Answer:

"Disk Striping" would be the right choice.

Explanation:

Disk stripping has become a methodology where certain numerous small external drives consist of a single massive disk. This same classification turns huge information into single blocks but instead disperses them over numerous different storage media. Disk stripping retail outlets instead of every data unit through a single place and doesn't provide disk failure safeguards.

What would be the greatest tool for emphasis? (video class)
A. Dutch angle
B. Medium Full Shot/Cowboy
C. Extreme Close Up/Insert shot
D. Medium shot

Answers

B! I'm sorry if I get this wrong :(

Other Questions
Chief Metacomet who rallied Native peoples from the northeast to wagewar on the colonists was known by what name? * write the slope-intercept form of the equation if the slope is 1 and the y-intercept is is -4 A bowl contains 61 red and yellow Skittles. The number of red Skittles is 10 more than twice the number ofyellow Skittles. How many of each color are in the bowl?Define your variables and write a system of equations that could be used to determine the number of redSkittles and yellow Skittles in the bowl. (DO NOT SOLVE THE SYSTEM)LetEquation 1:LetEquation 2: Need help plz help plz what is the degree of x^6+4x-3 How do sound waves travel? PLEASE HELP IF YOU WANT BRAINLEIST AND ME TO LIKE URE COMMENT!!A. Sound causes the air near it to vibrate inwards.B. waves radiate outward from a central point.C. Sound moves randomly in different directions.D. Sound transforms waves into different frequencies. Help please it is graphing use, or to compare the following numbers. -2 or 12 Help I need helpppppppoo What will happen when two balloons with the same charges are brought close to each other1.The balloons will attract each other.2. The balloons will repel each other.3. The charges of both balloons will change.4. The charge of one of the balloons will change. What is the molecular formula for a compound with a molar mass of 42.08g/mol and an empirical formula of ch2 (2x+37-4)-(5x + 2)This is super URGENT please helppp what is potential energy? Help me Im about to cry Which of the following is a layer of the solid Earth? I carried my doll in my back just as their mothers carry their babies" can someone please explain this to me please What is the constant of proportionality in the equation 3y = 2x Solve for x.a. 16b. 11c. 6 4. Which was NOT one of President Woodrow Wilson's Fourteen Points ?A. Creation of an independent PolandB. Lenient treatment of the Central PowersC. Creation of a peace-keeping association of nationsD. Autonomous development for the peoples of Austria-Hungary and the Ottoman Empire Which expression is not equivalent to 3x-2