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 1

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


Related Questions

Who is obsessed with Stranger Things, and waiting for the new season?!?!

Answers

Answer:

Me

Explanation:

Answer:

ME I CANNOT WAIT I'VE BEEN WAITING EVER SINCE ME AND MY STRANGER THINGS OBSESSED REALLY CLOSE FRIEND AND I FINISHED SEASON 3 THE DAY IT CAME OUT

Explanation:

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

What are three ways that functions can be useful when you are writing programs

Answers

Answer:

Reduces the overall complexity of your program

Allows you to easily call a function from different parts of your program after defining it.

Helps break a problem into logical chunks

Explanation:

In a computer language, a function is the set of instructions that are made for reducing the need to repeat a large amount of data by breaking it into small chunks of codes and giving concise readable human names.

They thus help in reducing the complexity in writing and maintaining the program, Hence they help in breaking it into logical chunks. They can be useful in increasing the reusability of the code. Can be used as a good alternative. Perform a single high-level task.

Learn more about the three ways that functions can be useful when.

brainly.com/question/13728820.

Which of the following statements best illustrates how value was created for eggs? when a farmer sells a chicken who is no longer producing eggs when a chef raises the price of his omelet to match a competitor's price when a consumer throws away cracked eggs and only uses the good ones when a baker uses eggs to create cookies and cakes

Answers

Answer:

When a baker uses eggs to create cookie and eggs

Explanation:

I got it right on edg

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.

Someone plz answer my question!!
There are infinite black and white dots on a plane. What is the distance between one black dot and one white dot?​ If you get it right I will give you the crown!!!!!​

Answers

Answer:

infinite I know I got it right so might as well give me brainliest :)

Explanation:

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:

Tonya wants to group some messages in his inbox. What are some of the ways that she can do this? Check all that apply. assign messages a color-coded category. Create a rule to move messages to a new folder. Create a new folder, select/ highlight messages, right-click, and choose Move to folder. Highlight messages, right-click, and choose Group Messages.

Answers

Answer: Create a new folder, select/highlight messages, right-click, and choose group messages.

Explanation: answer above!

Tonya wants to group some messages in his inbox. Some ways that she can do this are:

Assign messages to a color-coded category. Create a rule to move messages to a new folder.To create a new folder, select/highlight messages, right-click, and choose group messages.

What is organizing massages?

A list of folders can be found in the left-side menu of Messages. Click the New Folder button under My Folders. A new window with the title "Create New Folder" will open. In the text box, type the name you want for the new folder.

Touch Conversation categories > Add category, then tap Done to create a category. To view the newly added tab or label, return to the app's home screen. Tap Conversation categories to rename a category. Rename can be selected in the bottom men after selecting the desired category.

Therefore, the correct options are A, B, and C.

To learn more about organizing massages, refer to the link:

https://brainly.com/question/28212253

#SPJ2

KAPWING Video Editing Software allows you to use existing You Tube Videos in your design.

Answers

Answer:

Yea it should, it depends are you using a phone or a PC? because most of the time internally built in editing software on computers is better.

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:

In one sentence, how would you sum up the internet?

Answers

Answer:

an informational system

Explanation:

A source to get information from.

What would be the final step to applying your customized voting butons in Outlook messages?
O Type your new choices in the Text Bar.
O Click on Voting Buttons and choose Custom.
O Open the Voting Buttons menu and choose your customized choices.
O Click Submit and your custom voting choices will appear in the message body.

Answers

Answer:

Open the Voting Buttons menu and choose your customized choices.

Explanation:

Answer:

C

Explanation:

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:

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.

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.

Dr. Wayne is trying to developing techniques to cure Parkinson’s disease by inserting genetic material into patients’ cells to counteract defective genes. This type of treatment is called

.

Answers

I think it called gene therapy

Answer:

gene therapy

Explanation:

It is correct. I just did it


What does an effect allow you to do in
EarSketch?

Answers

Answer:usbebdos did did I’d did d

Explanation:

Bash six ska over five. I did a sis a and

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

what purpose would the auto fill feature be most helpful for?

Answers

Answer:

Completing the items in a series

Explanation:

Auto fill is a function found in software and applications that allows you to input a range of numbers or characters in a specific range and finish the entry you began typing with the program.

AutoFill effectively helps you to build tablets more efficiently, allowing you to fill cells with a set of data quickly, It allows you to create whole columns or rows of data that are centered on other cells' values. Autofill is used in all the rows to fill out a specific feature.

a file that serves as a starting point for a new document

Answers

Answer:

The appropriate response is "Template".

Explanation:

A template would be a document that might open new opportunities for such a new folder. Because once you launch a framework, that's already pre-formatted sometimes in a manner. This same template will indeed presumably have such identification and phone number environment throughout the upper left, a person receiving identify location somewhat below something on the opposite side, a response body location further below, as well as a signature, identify at either the lower part.

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.

pleasee help meeeeeeeeee I’m stuckk!!!!

Answers

Answer: Charles Babbage

Answer:

a

Explanation:

trust

The coordinates that determine the position of an element in space are expressed as:

A. Different Shapes
B. 1, 2, 3
C. X, Y, Z
D. L, T, P​

Answers

Answer:

xyz

Explanation:

think of it like a graph, you graph on the x, y, and z coordinates

Decision support systems help managers use structured data to identify problems and find solutions to business-related problems. The financial management system is an example of this system.

Answers

Answer:

sorry about this

Explanation:

How do you describe packet switching in your own words

Answers

Answer:

this is your answer bhaiya

Amy wants to make an exact replica of a specific area in an image. Which tool Amy will use?

Answers

Answer:

Explanation:

.

What is the difference between an appointment and a meeting?
O An appointment does not require coworkers, but a meeting includes coworkers.
O An appointment is for personal obligations, but a meeting is work related.
O An appointment does not have a location, but a meeting has a specific site.
O An appointment is for tasks to accomplish, buta meeting is a time slot on the calendar.

Answers

Answer:

The correct option is;

An appointment does not require coworkers, but a meeting includes coworkers

Explanation:

The correct option is an appointment does not require coworkers, but a meeting includes coworkers

A meeting differs from an appointment mainly because an appointment is an schedule that has an effect only on a personal calendar while a meeting is a schedule that can involve the attendance of one or more other people who will be invited and indicate readiness to attend. Therefore, a meeting can affect the calendars of more than one person working on a task.

In an organization, an internal meeting will require coworkers, while an appointment does not require the attendance of coworkers

Answer:

the one above is right

Explanation:

or for ads A

what key do I use to start my presentation

Answers

Answer:

The answer to this question is given below in this explanation section.

Explanation:

Knowing how o start a presentation is crucial if you fail to capture the audience attention right of the bat your entire presentation will flop.Few listeners will stick with you to the end and retain what you have told.

That is mildly unpleasant when you are doing an in house presentation in front of your colleagues.But can become utterly embrassing when you are presenting in front of larger audience presentation to prospective customers.

Let you have most of your presentation slides and polished up you dont check and quick and effective power point presentation design tips.Many ideas are broken into bits sized statements for your slides and complemented with visuals.The best way is to appeal and invoke certain emotions with your audience curiosity,surprise fear or good old amusements.

Justice wrote a program and forgot to put the steps in the correct order. Which step does she need to review?

Planning
Filtering
Ordering
Sequencing

Answers

Answer: Sequencing

Explanation: I did test!

Sequencing step does she need to review.

What is Sequencing?

Sequencing is the act of placing a process's phases in order from start to finish. It is a crucial ability that is employed in math, physics, and other subject areas in addition to reading comprehension.

Look at a few sequence structures that can be used to structure instructions in a passage.

Students simply arrange a series of stages in a process or method in the proper order as part of sequencing activities. They might include topics like how to assemble equipment, set up and name a word processing file, or install an electrical switch.

Therefore, Sequencing step does she need to review.

To learn more about Sequencing, refer to the link:

https://brainly.com/question/30586864

#SPJ3

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

Other Questions
How many years will it take for $20,000 to earn $7,000 in interest if placed in an account that earns 2.09% simple interest? True or false: recycling can positively impact Earth's spheres. Create a creature the reproduces asexually by what number must row 2 in the matrix?? When Nigerias civil war ended in 1970s Which of the following is an example of a precipitate?A: liquid evaporating into gasB: a solid formed from a frozen liquidC: a chunky solid formed from two liquids combiningD: a liquid solution that contains two substances what is the important points about relationships through analogies Parallel Circuit Series Circuit Electrical Current Electrical DischargeStatic Electricity Answers:A Circuit that contains more than one path for current flow.Electric Charge at rest;generally produced by friction or introduction.The Loss of static electricity as charges move off an object.A Flow Of Charged Particles From One Point To Another. Find the slope intercept equation of the linePLEASE HELP ME!!!!! HELP PLZZZZZ ANSWER QUICKLYThe success of American Indian owned businesses is important to Oklahomas overall economic well beingTrue false which statement best describes this graph? which dynasty brought confucianism to china?A. The ming dynastyB. The sui dynastyC. The han dynasty Can someone help me solve all of these problems for brainliest and a heart? please and thank you! Which contains a phrase with wordy material that should be deleted or rephrased?A)Seymore was convinced that attending the fall conference would be a bigwaste of his timeB)It was an added bonus to learn that after the conference we would eachreceive two tickets to a Broadway musicalC)The keynote speaker for the conference has been a gifted performer withthe Manhattan Theatre Club for seven years.D) Mackenzie enjoyed meeting people and learning new things, so shejumped at the chance to get out of the office for a week. A number, rounded to 2 decimal places, is equal to 3.84.Write down the lower and upper bounds of the number. .The Treaty of Dancing Rabbit Creek ceded more than ___________ of Choctaw land to the state of Mississippi.a.7.5 million acresc.2.5 million acresb.8.5 million acresd.none of the above I GIVEEE BRAINLILSTTT Read the excerpt from How I Learned English.It was in an empty lotRinged by elms and fir and honeysuckle.Bill Corson was pitching in his buckskin jacket,Chuck Keller, fat even as a boy, was on first,His t-shirt riding up over his gut,Ron ONeill, Jim, Dennis, were talking it upIn the field, a blue sky above themTipped with cirrus.How is this excerpt important to the poem as a whole?It provides readers with information about the conflict in the poem.It shows readers how the characters feel, think, and behave. It shows readers how the speaker feels about the other boys.It gives readers information about the setting, characters, and situation. which element can form an oxide with the general formula m2o or mo where m is a metal Explain why American criminal law is considered statutory. How does it compare to English common law?