6.6 Code Practice: Question 1 in Edhesive
If u have done Edhesive and done this code practice show me how to make the boat please.

Answers

Answer 1

Answer:

import simplegui

width = 600

height = 400

def draw(canvas):

   # Water:

   for x in range (1, 800, 120):

       canvas.draw_circle ((x, 330), 60, 3, "Blue")

   canvas.draw_line((1, 300), (width, 300), 70, "White")

   # Boat

   canvas.draw_circle((width/2, 280), 90, 5, "Black", "White")

   canvas.draw_line((1, 220), (width, 220), 150, "White")

   canvas.draw_line((210, 298), (390, 298), 5, "Black")

   canvas.draw_line((width/2, 295),(width/2, 210), 5, "Black")

   canvas.draw_line((width/2 + 60, 280),(width/2, 210),5, "Black")

   canvas.draw_line((width/2 + 60, 280),(width/2, 280),5, "Black")

frame = simplegui.create_frame('Boat in Water', width, height)

frame.set_canvas_background("White")

frame.set_draw_handler(draw)

frame.start()


Related Questions

for the following graph, what is the goal state?

Answers

Answer:

E

Explanation:

Answer:

the answer is b

Explanation:

I got it right on the test

Create a dictionary that maps a fruit name to its color. Both the keys and the values should be stored as strings. Include only the following three entries in the dictionary: apple (red), orange (orange), and banana (yellow). Store the dictionary in a variable named fruit_dictionary.

Answers

Answer:

Written in Python:

fruit_dictionary = {}

fruit_dictionary = {'apple': 'red', 'orange': 'orange', 'banana': 'yellow'}

Explanation:

First (although, not necessary), we create an empty dictionary named fruit_dictionary on line 1

Next, we populate the dictionary using the following syntax:

{key-1:value-1, key-2:value-2,......,key-n:value-n}

In this case, the entry would be:

{'apple': 'red',

'orange': 'orange',

'banana': 'yellow'}

The items on the first column (i.e. apple, orange and banana) are the keys while the items on the second (i.e. red, orange and yellow) are the values of the dictionary

To print the items in the dictionary, you can add  the following line of code:

print(fruit_dictionary.items())

Write a method smallestPositive that takes an integer array argument and returns the smallest positive element in the array.

Answers

Answer:

public class Main

{

public static void main(String[] args) {

    int[] arr = {28, 7, -51, -2, 221};

 System.out.println(smallestPositive(arr));

}

public static int smallestPositive(int[] arr){

    int heighest = arr[0];

   

    for(int i=0; i<arr.length; i++){

        if(arr[i] > heighest)

            heighest = arr[i];

    }

   

    int lowest = heighest;

    for(int i=0; i<arr.length; i++){

        if(arr[i] < lowest && arr[i] > 0)

            lowest = arr[i];

    }

   

    return lowest;

}

}

Explanation:

The code is in Java.

Create a method named smallestPositive that takes one parameter, arr

Inside the method:

Find the largest value in the array using the first for loop

Set the this value as lowest to find the smallest positive value (I assumed there is at least on positive value in the array)

Create another for loop to iterate through the array. If a value is smaller than the lowest and if it is greater than 0, set it as lowest

When the loop is done, return the lowest

Inside the main method:

Initialize an array with some numbers

Call the smallestPositive() with this array and print the result

(In our example, the result would be 7)

In tynker, it is not possible to create a

Answers

Answer:

whats tynker

Explanation:

What’s the question

Write a program that uses a dictionary to store students birthdays. Your program should ask the user what their name is, and look it up in the dictionary . If their birthday is known, it should tell them their birthday.

Answers

di = {"student":"10/30/1984", "student2":"11/16/2020"}

name = input("What is your name? ")

if name in di:

   print(di[name])

else:

   print("Your name is not in the dictionary.")

You can change the values inside the dictionary. I hope this helps!

One type of wire sequence commonly used for ethernet cables is called the ________ sequence

Answers

Answer:

100BaseT

Also called Fast Ethernet

Good luck...

Write an application that stores the following nine integers in an array: 10, 15, 19, 23, 26, 29, 31, 34, 38. Display the integers from first to last, and then display the integers from last to first.

Answers

Following are the code to this question:

Program Explanation:

Defining an array "arr1" of an integer value is declared, which stores 9 elements. In the next step, an integer variable "i" is declared, which uses two for loops to print the value in the given order.In the first for loop, it starts from 0 and ends when its value is less than 9, and prints the array value.In the second for loop, it starts from 9 and ends when the index value is equal to 0, and prints the array value in reverse order.

Program:

#include <iostream>// header file

using namespace std;

int main()//main method

{

int arr1[]= {10, 15, 19, 23, 26, 29, 31, 34, 38};//defining array of integer values

int i;//defining integer variable

cout<<" Array from first to last: ";//print message

for(i=0;i<9;i++)//use for loop to print array

{

cout<<arr1[i]<<" ";//print array value

}

cout<<"\n Array from last to first : ";//print message

for(i=9-1;i>=0;i--)//defining for loop to print array in reverse order

{

cout<<arr1[i]<<" ";//print array

}

return 0;

}

Output:

Array from first to last: 10 15 19 23 26 29 31 34 38  

Array from last to first : 38 34 31 29 26 23 19 15 10  

Learn more:

brainly.com/question/12906023

You should use _____ text on a light blue background.

yellow
black
lavender
white

Answers

You should use black text on a light blue background.

Explanation:

The other colors are too light for a light blue background and wouldn't show up well enough to read it easily.

Answer:

black cause you want a darker shade

Explanation:

Write a program which takes a String input, and then prints the number of times the string "sh" appears in the String (s and h can be any case).

Hint - remember there are String methods which return a copy of the String it is called on with all letter characters changed to the same case.

Sample run

Input String:
She sells seashells on the seashore
Contains "sh" 3 times.

Answers

import java.util.Scanner;

public class JavaApplication61 {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Input String:");

       String text = scan.nextLine();

       text = text.toLowerCase();

       char c = ' ', prevC = ' ';

       int count = 0;

       for (int i = 0; i < text.length(); i++){

           c = text.charAt(i);

           if (c == 'h' && prevC == 's' && i >= 1){

               count += 1;

           }

             

            prevC = c;

       }

       System.out.println("Contains \"sh\" "+count+" times.");

       

       

   }

   

}

This works for me. Best of luck.

import java.util.Scanner;

public class{

public static void main(String[ ] args){

Scanner reader = new Scanner(System.in);

System.out.println(“Input String:”);

String input = reader.nextLine();

input = input.toLowerCase();

int count = 0;

for (int i = 0; i < input.length()-1; i++){

if (input.substring(i, i+2).equals(“sh”)){

count++;

}

}

System.out.println(“Contains \”sh\” ” + count + “times.”);

}

}

On a client/server network, which computer initiates the process of assigning an IP address through DHCP?

Answers

Answer:

The client

Explanation:

On a client/server network, THE CLIENT computer initiates the process of assigning an IP address through DHCP. This is because "The Client" computer will serve as the Domain controller in which other computers of the network can find. Hence, The Client computer initiates the process of assigning IP addresses through DHCP to achieve this.

Though, in some case. A user can manually assign the IP address to computer if it is not through DHCP

How to play Drinkopoly game?

Answers

Answer:
Never heard of that lol

Which program will have the output shown below?
15
16
17
>>> for count in range(17):
print(count)
>>> for count in range(15, 17):
print(count)
>>> for count in range(15, 18):
print(count)
>>> for count in range(18):
print(count)

Answers

Answer:

>>> for count in range(15, 18):

   print(count)

is the correct answer

Explanation:

Assume that the OS uses a minimum page size of 16 KB. Assume that your L1 cache must be 4-way set-associative. If you're trying to correctly implement a virtually indexed physically tagged cache (with no additional support from the OS or hardware), what is the largest L1 cache that you can design

Answers

Answer:

The largest size of L1 = 16 bits

Explanation:

hello attached below is the diagram related to the solution

assuming that the OS uses a minimum page size of 16 KB

when we assume that our L1 cache must have 4-way set-associative

The largest L1 cache that you can design = 16 bits ( when the L1 cache is of a page size )

The L1 cache is closest to the processor and also the L1 is slowest and the largest of all

When proposing a plan in detail for video production phases, fundraising, and outreaching, which section will you use to make sure that the finished product reaches the intended audience?

A. statement of objective
B. visual synopsis
C. distribution strategy
D. audience-engagement strategy

Answers

Answer:

C. distribution strategy

Explanation: i know this because i just took the test and if you think about it it is for the post production phase

have a great day! hope this helps you out. :)

Answer:

c

Explanation:

When you are fit, you can exercise and do physical work without getting too tired. A. True B. False\

Answers

Answer:

A.

Explanation:

But all of us get tired

Answer: I did the test it's A

Explanation:

How many Leaf Nodes in the Binary Tree shown in figure:

Answers

Answer:

There are 2 leaf nodes in the given binary tree.

Explanation:

A tree stores the elements in the form of a hierarchal structure. The first node which has children is called the root of the tree. And the nodes with no children are called leaf nodes.

In the given diagram, we can see that all nodes have children except C and D so C and D are leaf nodes.

Hence,

There are 2 leaf nodes in the given binary tree.

How does the variable scope influence the structure of an algorithm

Answers

You can only put global variables anywhere in the program while with local variables it can only be used within the function. You're only allowed to use local variables in different functions and not the same variable in the same function.

           Simple sketches, mockups, or wireframes are frequently used in the user-centered design process for some or all of the designs. Instead of producing the final product and then having to make expensive revisions if it doesn't match user needs, this results in a far faster and more affordable design process.

What exactly does computer programming entail?

       Scope is a key concept in programming. Where variables can be accessed or referenced is determined by the scope. Some variables in a program can be accessed from anywhere, whereas other variables may not be accessible from everywhere. We must first discuss blocks before going into greater detail concerning scope.

        An individual can write the program's processing stages in their own language using an algorithm, i.e., they can construct the program's flowchart using so-called code.

     An algorithm is just a series of steps used to carry out a certain activity. They serve as the foundation for programming and enable the operation and decision-making of devices like computers, cellphones, and webpages.

        User experience deals with the unique interaction consumers have with the goods they use, whereas user-centered design refers to the method or strategy used to build experiences. It refers to a concept rather than a method of interaction between a user and a product or service.

To Learn more About  user-centered design, Refer:

https://brainly.com/question/28721191

#SPJ2

Write a program that tells the user what animal and personality characteristics he/she is likely to have based on the Chinese Zodiac Calendar. The program should ask the user for the year in which he/she was born. The twelve animals of the Zodiac and some of their associated years are rat (1924, 1936, 1948, 1960) · ox (1925, 1937, 1949, 1961) tiger (1926, 1938, 1950, 1962) rabbit (1927, 1939, 1951, 1963) dragon (1928, 1940, 1952, 1964) snake (1929, 1941, 1953, 1965) horse (1930, 1942, 1954, 1966) goat (1931, 1943, 1955, 1967) monkey (1932, 1944, 1956, 1968) rooster (1933, 1945, 1957, 1969) dog (1934, 1946, 1958, 1970) pig (1935, 1947, 1959, 1971) Each year is associated with a particular animal. The years cycle through the animals hence the animal repeats every twelve years. Some characteristics of each animal are as follows Rat: industrious, sensitive, sociable Ox: dependable, modest, patient Tiger: rebellious, daring, impulsive

Answers

Answer:

I have a question for you

.

.

Are you a INDIAN?

.

.

IF YES

THEN,

BOYCOTT CHINA

What study skill is being used when taking a large project and breaking it down into smaller manageable tasks?

Answers

Not sure but I think it’s called prioritizing

Answer:

prioritization

Explanation:

this is the answer

Which of the following will increase the level of security for personal information on a mobile device if the device is lost or stolen

Answers

Answer:

this is a very cool day for me yeah know

I would simply just say it is what it ez

Write a calculate_sq_inches_of_good_pizza function that accepts the diameter of a pizza and returns the area of the pizza minus 1 inch at the edge.

Answers

Answer:

#include <iostream>

using namespace std;

float calculate_sq_inches_of_good_pizza(float diameter) {

   float radius= diameter/2;    

   float pi=3.14;

   float area;        

   area = pi*(radius*radius );

   return area;

}

int main() {  

   float d;

   cout<<"enter the diameter of pizza"<<endl;

   cin>>d>>endl;

   float area_of_pizza = calculate_sq_inches_of_good_pizza();

   return 0;

}

Explanation:

Above program is written in C++ language which has function namely    float calculate_sq_inches_of_good_pizza(float diameter). This will calculate area of pizza from  given diameter and return it to main() function.

As we know pizza is circle and area of circle is equal to:

Area = π * radius*radius

π =pi=3.14

and we have calculated radius from given diameter

radius = diameter/2;

If you only want function not whole program than ignore main () function and only consider float calculate_sq_inches_of_good_pizza(float diameter) function which is in ITALIC notation.

Select all the correct answers.
Shari is using a word processor to type a recipe for making chocolate chip cookies. Which of the following tasks can she perform using the tools provided in the word processor?

include a numbered list of steps in the procedure

insert an image of the chocolate chip cookies

email the recipe to her friend as an attachment

convert quantities measured in cups to metric units

print a copy of the recipe to have handy while baking

Answers

Answer:

The correct options are:

include a numbered list of steps in the procedure

insert an image of the chocolate chip cookies  

email the recipe to her friend as an attachment

print a copy of the recipe to have handy while baking

Explanation:

Microsoft word provides several features which can be used to perform different tasks.

Lets look at each option one by one:

include a numbered list of steps in the procedure

The Bullets and Numbering" feature can be used for this purpose.

insert an image of the chocolate chip cookies

Can be inserted via "Add picture" Option

email the recipe to her friend as an attachment

"Share" option can be used for this purpose.

convert quantities measured in cups to metric units

Calculations cannot be done in MS word

print a copy of the recipe to have handy while baking

Print option can be used for this purpose.

Hence,

The correct options are:

include a numbered list of steps in the procedure

insert an image of the chocolate chip cookies  

email the recipe to her friend as an attachment

print a copy of the recipe to have handy while baking

What tips do you have for learning at home???

Answers

Answer:

nothing

Explanation:

Answer:

listen to music stay in a quiet space in your house and always have a snack with you

In a team if someone gets stuck with the selected tasks for the iteration, what is the immediate next step?

Answers

Answer:

The team member has to immediately inform the lead or onsite coordinator without wasting time and take up another task

Explanation:

In a situation where someone in a team is unable to move further to another tasks the next step is for the team member to immediately inform the onsite coordinator in order for them to take up another task reason been that the onsite coordinator sole responsibility is to ensure the completion of tasks without any flaw and Secondly if the team members did not inform the onsite coordinator immediately it will eventually lead to waste of time due to the time spent on the tasks thereby affecting the next tasks.

Therefore the immediate next step is for the team member to immediately inform the lead or onsite coordinator without wasting time and take up another task.

John's father specifically asked him to get a magnetic disk from the store in his neighborhood. What should John buy?
A. a floppy disk
B. a DVD
C. a CD-ROM
D. a Blu-ray disk

Answers

Answer:

A floppy disk

Explanation:

A floppy disk uses a thin sheet of magnetic material to store data. It would make the most sense as the other choices use an entirely different system.

Write a loop that fills a list values with ten random numbers between 1 and 100. Write code for two nested loops that fill values with ten different random numbers between 1 and 100.

Answers

Answer:

Please look for your answer on Stack Overflow, it's way better.

Explanation:

Aubrey is on a Windows machine. She wants to back up her Halloween pictures on an external hard drive. Which of the following tasks is she likely to perform as part of a sequence of actions do that? Right-click the file and choose the Copy option. Open the application and select the File menu. Right-click the file and select the Delete option. Go to the location where you want to save the file. Right-click an empty area and select the Paste option.​

Answers

Answer:

Right-click the file and choose the Copy option, Go to the location where you want to save the file, Open the application and select the File menu, and Right-click an empty area and select the Paste option.

Explanation:

You would not need to Right-click the file and delete it to back up her Halloween photos, but you would need to upload them to an external application. To do that, you would basically do every step besides right-clicking and deleting the file (Right-click the file and select the Delete option)

Answer: A, D, E

Explanation: correct on Plato, plus you wouldn’t select the file menu or delete the files.

which of the following players is on offence

Answers

Answer:

A baseball player trying to steal second base.

Explanation:

From a test I took, im hoping the answer choices were the same as yours tho.

Justify the existence of programming languages to precisely communicate instructions?

Answers

Answer:

Machines don't understand human language and so must be communicated to using programming languages

Explanation:

Machines help make our lives easier. A machine as simple as a Zip can help to make keep one from an embarrassing situation.

Computers have evolved from simple calculators to what they are today. In the case of a zip, the user thinks up the instructions and executes it. Because a computer is more autonomous and automated than a simple zip because it is given a set of instructions and left to execute them. Because machines are not humans and do not understand any human language, the man had to invent machine language which in it's most basic form is 0 and 1. 0 for 'Off' or 'No' and 1 for 'On' or 'Yes'.

This basic form of language, just like the human language too, has evolved into several more complex and varied forms of languages. They remain relevant and continue to evolve to enable man to communicate with the machine as easily as possible because

Without the programming languages, we would be unable to efficiently describe our commands to the computer. The existence of many languages stems from the fact that languages are deemed more efficient when one is able to communicate more with fewer words. An advanced program is one that enables the programmer to do more with fewer and fewer lines of code.

Cheers!

Why does the mock XYZ Health Care Provider need to define a remote access policy to properly implement remote access through the public Internet?

Answers

Answer:

Answered below

Explanation:

Remote access policies are policies that state how users can connect to organisational networks through remote access. It states the conditions and permissions required for network connection.

XYZ providers need to define remote access policies in order to ensure network security through proper authentication, control standard and documentation. A remote access policy addresses the viability of the remote user, implementation of authentication protocols, connection restrictions, remote access permissions, duration of sessions etc

Other Questions
A gym is selling monthly memberships for $35 each and reusable water bottles for $9 each. The gymneeds to make $1188 by the end of the month.Enter a linear equation that describes the problem.An equation for the amount of money made by the gym is = $1188, where m is the number ofmonthly memberships sold, and w is the number of reusable water bottles sold. I will mark brainleist The Immigration Quota Laws of 1924 had what impact on immigration to the United States?decreased immigration from Mexicoincreased immigration from southern and eastern Europedecreased immigration from southern and eastern Europeincreased immigration from China overproduction causes businesses to Is the relationship between candidate's campaign money and their electoral victory causal, endogenous, or spurious? how to know if i have to subtract or add in a point slope form? for example the part where it says (x - 1) how would i know if its (x - 1) or (x + 1) ????????????? 10. How many electrons did Br?- gain or lose?It did not gain or lose any electrons, it lost a proton.It did not gain or lose any electrons, it gained a proton.O It lost one electron because it has a charge of negative one.0 It gained one electron because it has a charge of negative one. Integration is summation operation performed on discrete random variables. No Yes None of the options Both A and B 1. What is the major function of formal education in the societies?a. Spread shared knowledgeb. Become an active member of economic and social systemC. Cultural transmissiond. It is a social institution Determine if the triangles are congruent. If so, write a congruence statement. Explainyour reasoning in a short paragraph proof. Divide 1,260 by 1.5Hi How did the Punic wars impact the landscape and economy of Rome? Which triangle has vertices (0,0), (-1,4), and (-4,1)? f(x)=(x-3) +5 determine the vertex A triangle has squares on its three sides as shown below. What is the value of x? (1point)6 cmxom8 cm1) 2 centimeters2) 6 centimeters3) 8 centimeters4) 10 centimeters what religion has sacred writings. The following page is taken from which manuscript? Date0.5/RationQuestionThe boiling point of jet fuel is 329F.Rounded to the nearest degree, what isthe temperature in degrees Celsius?Use the formula C = (F 32), whereC represents degrees Celsius and Frepresents degrees Fahrenheit. Express 144 1/4 in simplest radical form If x is a positive integer,give possible values of xfor inequality5 > 2x 3 Which of the following best describes the proper use of a signal phrase?Group of answer choices A: a signal phrase may appear before, in the middle, or after researched information you are sharing. B: A signal phrase should appear before the researched information you are sharing. C: A signal phrase should appear in the middle of the researched information you are sharing. D: A signal phrase should appear after the researched information you