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.
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!!!!!
Answer:
infinite I know I got it right so might as well give me brainliest :)
Explanation:
Multimode fiber can be used for long distance transmission
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.
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.
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
Please helpppppppppppppppppp please I’m stuck!
do u know thw muffin man
Describe what is involved in the first 4 stages of a research project.
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
Answer:
It's C
Explanation:
Invitations cost $6 for a pack of 5. Lori gives the cashier $50 to buy invitations and gets $8 in change. How many packs of invitations does Lori buy?
Answer: 35
Explanation:
Since Lori gives the cashier $50 to buy invitations and gets $8 in change, thus means that the amount spent on invitations = $50 - $8 = $42
Since he spent $42 and the invitations cost $6 for a pack of 5, the packs of invitations that he bought would be:
= ($42/$6) × 5
= 7 × 5
= 35 packs of invitation
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.
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
who was the first guy who find video games
Answer:
Ralph Baer
Explanation:
shows the prototype of the first games console which was invented by him during a press conference on the Games Convention Online in Leipzig
Answer: Inventor Ralph Baer
Explanation:
German-American game developer Ralph Baer shows the prototype of the first games console which was invented by him during a press conference on the Games Convention Online in Leipzig, Germany in 2009. Baer died on Saturday. He was 92.
how many string object are in 128,55 in python
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.
what is the main function of processing unit
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
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
Which of the following statements about content-based filtering is TRUE?
Answer:
with content-basedfiltering users receive recommendations for items that are similar in type to ones they already like
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)
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
may someone help me with the this question pls , The governor of a state wants to inform the people about a change in the tax policy. Which people should he definitely invite to convey the message?
A.
bank and tax officers
B.
news reporters
C.
business heads
D.
radio DJs
E.
lawyers
Answer:
Option B: News reporters is the correct answer.
Explanation:
First of all we have to observe the reach of all options available in the question. We know that the largest reach in the country or province or state is of media and journalists of that particular region. So the governor should invite the news reporters to convey the message.
Hence,
Option B: News reporters is the correct answer.
What is problem scoping brief explanation in Artificial intelligence
Answer:
prime minister of england
so i am taking to edhesive computer science course in my school, and i am confused on 1.6 code practice,
here are the intructions, it is also for the python coding language
Write a program that uses two input statements to get two words as input. Then, print the words on one line separated by a space. Your program's output should only include the two words and a space between them.
Hint: To print both words on one line, remember that you can concatenate (add) two phrases by using the + symbol. Don't forget that you'll need to add a space between the words as well.
Sample Run
Enter a word: Good
Enter a word: morning
Good morning
I included my code in the picture below. Best of luck.
if you were any type of fnaf charater who would you be and why?
Answer:
Foxy
Explanation:
Cause he's cool and he's my favorite.
The number of individual networking address required for the internet is
Answer:
more than 4.3 billion
Explanation:
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)
Answer:
The answer is float.
Explanation:
4. If d is a double variable with a value of 7.5, which of the following statements results in a (1 point) value of 7 being assigned to x?
int x = (int)d;
int x = d;
int x = int(d);
double x = d;
Answer:
int x = (int)d
Explanation:
(int) means the largest integer value smaller than <value>.
which is 7.
Only the first choice has the correct syntax.
The second choice sets an int as a double, which does not work.
The third one shows int as a function, d as a parameter, which is not allowed, as int is a keyword in java
For the last choice, you are setting x to 7.5 not 7.
So int x = (int)d is correct.
Who is obsessed with Stranger Things, and waiting for the new season?!?!
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:
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
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
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.
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 is a computer vhdvsidegvjks
Answer:
i'm using a computer to answer this question rn
Explanation:
vhdvsidegvjks
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
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 functionsand 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 could represent yourself with one object from your home what would it be ?
Answer:
cross
bc im religous and stuff (0_0)
Answer:
def would be food
Explanation:
i would represent myself with a macaron
7.2.7: Part 1, Replace a Letter
"Write a function named replace_at_index that takes a string and an integer. The function should return a new string that is the same as the old string, EXCEPT with a dash in place of whatever character was at the index indicated by the integer.
Call your function on the word eggplant and the index 3, like this:
s = replace_at_index("eggplant", 3)
You should then print the value of s, which should display:
egg-lant"
Answer:
def replace_at_index(string, index):
return string[0:index]+"-"+string[index+1:]
replaced_word = replace_at_index("house", 0)
print(replaced_word)
Explanation:
simpler version
The Function that is used to name replace_at_index that takes a string and an integer is as follows:
def replace_at_index(string, index):return string[0:index]+"-"+string[index+1:]
replaced_word = replace_at_index("house", 0)
print(replaced_word).
What is the significance of the programming function?The significance of the programming function is determined by the fact that it sanctions programmers in order to breach or disintegrate a problem into smaller chunks. Each of these smaller chunks usually performs a particular task.
Functions are specifically utilized by the user in order to execute certain actions, and they are important for reusing code. They usually define the code once and use it multiple times with the same efficacy and accuracy. These collections of codes develop a function.
Therefore, the function that is used to name replace_at_index that takes a string and an integer is well described above.
To learn more about Computer's functions, refer to the link:
https://brainly.com/question/179886
#SPJ3
Which amendment applies to the following scenario? “Brian attended church with his two daughters and wife on Sunday." A First B Second C Fourth
Answer: First Amendment
Explanation:
The First Amendment gives individuals the freedom of speech and the right to proactive any religion that they want. It also allows the people have a peaceful protest.
The swcud amendment gives people the right to keep arms. The Fourth hinders individuals from being searched without a warrant.
Therefore, the answer is First Amendment.
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.
Answer:
sorry about this
Explanation: