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.
Answer:
import java.lang.Object
import java.lang.Math
public class RegularPolygon extends java.lang.Object{
public void randomize(RegularPolygon c){
int min = 10, max1 = 20;
double min1 = 5, max1 = 12;
double range = (max - min) + 1;
double range1 = (max1 -min1) + 1
int side = (Math.random() * range) + min;
double len = (Math.random() * range1) + min1;
c.setNumSides(side);
c.setSideLength( len);
}
public static void main(String[] args) {
RegularPolygon r = new RegularPloygon();
randomize(r);
}
}
Explanation:
The randomize method accepts a regular polygon class as its only parameter and assigns a random number of sides and the length of these sides with the 'Math.random' function.
The
command is used to fix a mistake immediately after you make it.
Redo
Undo
Correct
Fix
You created a two-dimensional array with the following code.
A = [20, 'tennis', 'blue']
B = [15, 'soccer', 'green']
aList = [A, B]
How do you refer to 'green'?
Answer:
aList[1][2]
Explanation:
One can refer to the 'green' as per the given array, by aList[1][2].
What is an array?An array is a type of data structure used in computer science that contains a set of elements (values or variables), each of which is identified by an array index or key.
An array is stored in a way that allows a mathematical formula to determine each element's position given its index tuple.
Use the new keyword, a space, the type, the number of rows in square brackets, and the number of columns in square brackets to build an array, as in new int[numRows][numCols].
A 2D array has as many elements as its number of rows twice its number of columns.
Thus, aList[1][2] is the way to represent a two-dimensional array.
For more details regarding array, visit:
https://brainly.com/question/13107940
#SPJ2
The algorithm below is used to find the largest element in a list of numbers.
By modifying one of the lines in the program it is possible to make the algorithm find the SMALLEST element. Which line would need to be modified and how?
The line that can be modified in the algorithm to return the smallest of the list is line 04
From the question, we understand that:
The algorithm returns the largest of all elements in a listThe above action is executed on line 04
To change the function of the algorithm to return the smallest, line 04 must be modified as follows:
IF (num < target)
Hence, the line that can be modified in the algorithm to return the smallest of the list is line 04
Read more about algorithms at:
https://brainly.com/question/24793921
please help me guys
Answer:
1. Machine Independence
High level languages will have something beneath them that automatically can compile your code into different machine languages for different devices. This means that you can program for just about any device and not have to re-write your code.
2. Micro computers
Almost all the computers that average people interact with today are microcomputers. A microcomputer usually has a single main processing chip or central processing unit. They're smaller than mainframe computers, which dominate a reasonably sized room, and minicomputers, which may be as tall as a refrigerator.
3. VLSI
Third generation computers are basically what we work with today. They use VLSI (Very large scale Integration) which started in the 80s and continues to be the point where modern computers are at.
write the name of the tab, command group, and icon you need to use to access borders and shading dialog box
Answer:
Tab: Home Tab
Command group: Paragraph
Icon: Triangle
Explanation: Trust
How does the technology work
Answer: it does – or perhaps appears to do – in the world.
Explanation:
sorry if am not right have a nice day lol
Answer: technology work by chips wires in the botton of it or in the back of it and there metel in it they wire thing to it to make it better like phon
Identifying Responses and Replies
Use the drop-down menus to complete the sentences about message response options in Outlook.
v sends your response to everyone who received the initial email.
v creates a new message that includes the initial message to a new recipient.
v sends your response to only the sender of the initial message.
Answer:
Identifying Responses and Replies by using the drop-down menus to complete the sentences about message response is written below in detail.
Explanation:
A situation like this may be:
Someone receives a bike. They travel it and all, and then all of an unexpected they fall and get injured
If you only understood the first section of how the person received a bike when you draft a response, you would only draft about that piece, but getting harm after receiving the bike is also a huge portion of the "story". You could draft like how you were so pleased when you received your first bike, but you wouldn't remember to address the time you got injured when you were riding down a hill or something.
Answer:
Reply All
Forward
Reply
Explanation:
Select all the correct answers.
Flynn has drafted a research paper using a word processor. Which of the following will help him to enhance the readability of the paper and give it a professional look?
using bulleted or numbered lists
tracking revisions to the draft
presenting data in tables
inserting headers and footers on each page
formatting section headings in a different font type and size than body text
SELECT ALL THAT APPLY WILL GIVE BRAINLIEST
Answer: Bulleted or numbered lists, presenting data in tables, and the formatting one.
Explanation: I’m taking the test and i’m pretty sure that’s right, lmk if you got a better answer though!
Answer:
A, C, E
or 1, 3, 5
Explanation:
Took the test!
1-5 Safety measures in the use of kitchen tools and equipment.
Answer:
Safety measures are as follows;
Explanation:
Hold the delicate instruments cautiously to use them.Require appropriate use of the equipment in the kitchen.Users should remove these defective instruments or discard of them.During and before use, check that perhaps the resources that will be used are indeed safe.In a cold and dry spot, all equipment must be kept.You are going to do a bubble sort on the following list. What are the missing members of the list? Select 3 options.
[10, 3,
12
0.005
dog
3,5
'cat'
Hellllpppp
[3,5,'dog', 'cat'] are the missing members of the list . Hence option d, e and f are correct.
What is bubble sort?Bubble sort is defined as the most straightforward sorting algorithm, which continually switches nearby elements if they are out of order. Until no swaps are required, the passing operation is repeated, signifying that the list is sorted. Bubble sort is well-known in computer graphics because it can find a very minor defect in almost-sorted arrays and fix it with simply linear complexity (2n).
This question would be something you would know since your teacher has taught you it previously, but until you show me the entire lesson, it will probably just be a guessing game. 11 12 22 25 34 64 90 is a sorted array, and I've seen "dog" and "cat" used in coding multiple times.
Thus, [3,5,'dog', 'cat'] are the missing members of the list . Hence option d, e and f are correct.
To learn more about bubble sort, refer to the link below:
https://brainly.com/question/13161938
#SPJ2
When you get a new sim card do it come with a new number or do you have a activate the phone and get a new number in store ?
put the sim card in the phone and turn the phone on, it technically comes with the card but you really interact with it until you turn the phone on.
What might the Internet of Things do in the future?
The future of IoT has the potential to be limitless. Advances to the industrial internet will be accelerated through increased network agility, integrated artificial intelligence (AI) and the capacity to deploy, automate, orchestrate and secure diverse use cases at hyperscale.
HELP ASAP!!! Complete the following sentence.
A portfolio helps you organize your abilities and determine your
Answer:
Strenghts.
Explanation:
A portfolio is a document, which can be both physical and electronic, in which people include their educational and work history, as well as those personal characteristics (character, personality, ability to work in a team, etc.).
Thus, for example, a portfolio may include the person's school and university performance, plus the courses and other training they have taken, plus the places where they work, indicating the positions and tasks they perform there.
Portfolios, then, allow employers to consider all aspects of prospective employees and thus decide who is the best candidate to hire.
A portfolio helps you organize your abilities and determine your GOALS
When heating a substance a phrase change will start to occur when the kinetic energy of the particles is blink the attractive forces between the particles
Answer:
great enough to overcome.
Explanation:
Kinetic energy can be defined as an energy possessed by an object or body due to its motion.
Mathematically, kinetic energy is given by the formula;
Where, K.E represents kinetic energy measured in Joules.
M represents mass measured in kilograms.
V represents velocity measured in metres per seconds square.
A conductor can be defined as any material or object that allows the free flow of current or electrons (charge) in one or more directions in an electrical circuit. Some examples of a conductor are metals, copper, aluminum, graphite, etc.
When heating a substance, a phase change will start to occur when the kinetic energy of the particles is great enough to overcome the attractive forces between the particles.
Basically, the phase change includes solid, liquid and gas.
In Outlook 2016, the Tell Me function can be accessed by
O pressing F1 on the keyboard.
clicking on the File tab, then the question mark button.
typing a query in the textbox on the ribbon.
typing "help" in the search box in the message pane.
In Outlook 2016, the Tell Me function can be accessed by
O pressing F1 on the keyboard.
clicking on the File tab, then the question mark button.
typing a query in the textbox on the ribbon.
typing "help" in the search box in the message pane.
Explanation:
I think it should be typing a query in the textbox on the ribbon.
In Outlook 2016, the Tell Me function can be accessed by clicking on the File tab, then the question mark button. The correct option is B.
What is Outlook?The preferred email client for sending and receiving emails from Microsoft Exchange Server is Microsoft Outlook. Accessibility to contact, email, calendar, and task management tools is also provided by Outlook.
You can send and receive emails, manage your calendar, save the names and phone numbers of your contacts, and keep track of your projects using Outlook.
Even if you utilize Outlook on a daily basis, you might not be aware of all the wonderful things it can do to boost your productivity.
By selecting the File tab, then the question mark button in Outlook 2016, you may open the Tell Me feature.
Thus, the correct option is B.
For more details regarding Microsoft outlook, visit:
https://brainly.com/question/26695071
#SPJ2
Will MARK BRAINLIST
What refers to the level at which a player is interacting with a story or game?
Group of answer choices
engagement
flow
emotion
distance
Rapunzel s-a născut într-un ţinut îndepărtat într-un regat necunoscut. Mama vitregă a închis-o pe Rapunzel într-un turn foarte înalt ce avea N metri. Aici Rapunzel urma să-şi petreacă toată copilăria. Pentru a-i trece timpul mai uşor, Rapunzel cânta din zori şi până în seară, cântecul ei auzindu-se în tot ţinutul. Atras de vocea de privighetoare a fetei, Flynn Rider şi-a propus să se caţere pe pereţii exterior ai turnului şi în fiecare zi să procedeze astfel: de la răsăritul până la asfinţitul soarelui să parcurgă M1 metri iar apoi, de la asfinţit până la miezul nopţii încă M2 metri. Scrieţi un program care determină după câte zile ajunge Flynn Rider la Rapunzel.
Why is it important to know the skills, experience needed and pay for a potential career choice?
How did you generate a random number for the user to guess?
A - by using the randint method from the random module
B - by using the built-in random function
C - by using the built-in randint function
D - by using the random method from the random module
Answer:
B
Explanation:
The build in random function will work the best for your case. Have a marvelous day. :)
Answer:
B.
Explanation:
I got it right on the test.
What genre do games that involve physical challenges and make use of hand-eye coordination, speed, accuracy, and precision fall into?
adventure
action
simulation
puzzle
Answer:
flexiblity
feedback
playin outdoor game
Answer:
I think simulation not 100% sure though.
which line of code will allow you to only load the localtime() method into active memory
Answer:
from time import localtime
Explanation:
have a lovely day :)
The line of code that will allow you to only load the localtime method into active memory is time.
The localtime function is simply known to be time in seconds as long as Epoch is targeted by timer into a broken-down time.
It is mostly written in local time. The function is known to be of timezone and any seasonal time adjustments. Local timezone information is used as though localtime() calls tzset().LocalTime cannot have a muted date-time object that shows a time, often viewed as hour-minute-second. Time is shown in nanosecond precision.
Learn more from
https://brainly.com/question/19639119
Which is an email protocol that retrieves email without deleting the email and its attachments from the server?
Simple Mail Transfer Protocol (SMTP)
Internet Message Access Protocol (IMAP)
Post Office Protocol version 3 (POP 3)
Simple Network Management Protocol (SNMP)
Answer:
Internet Message Access Protocol (IMAP)
Explanation:
The "Internet Message Access Protocol" or IMAP was created by Mark Crispin at the Stanford Knowledge Systems Laboratory. It allows a person to access his email from his local server. In comparison to the Post Office Protocol Version 3 (POP 3), which deletes the emails once they are downloaded, the IMAP allows the contents to be saved on the server. The email will only be deleted if the user intends to do so.
Answer:
It is Pop 3 not IMAP
Explanation:
Correct on edg 2022
Explaining AutoCorrect
How is the AutoCorrect feature useful in Outlook 2016? Check all that apply.
It checks for common typing errors.
It can automatically fix the error while you are typing.
It suggests email recipients that might be interested in your message.
It underlines words that need spelling and grammar corrections.
It ensures that you are emailing the correct recipients.
Answer:
1, 2 and 4
Explanation:
20 points for ez question lol
Which are characteristics of effective presentations? Check all that apply.
The presentation is well organized.
The presenter speaks clearly.
The presenter reads from notecards.
The presentation is enhanced with visual aids.
The presentation includes some delay to set up audio or video.
The presentation captures the audience’s attention.
The characteristics of effective presentations are:
The presentation is well organized. The presenter speaks clearly. What are characteristics of an effective presentation?Others are:
The presentation is enhanced with visual aids. The presentation captures the audience’s attention.A good presentation is known to be one that is often concise and also focused on the topic that is under discussion.
Note that when the above presentation follows the option written above, it is said to be an effective or good presentation.
Learn more about presentations from
https://brainly.com/question/24653274
#SPJ2
Answer:
A,B,D,F
Explanation:
The presentation is well organized.
The presenter speaks clearly.
The presentation is enhanced with visual aids.
The presentation captures the audience’s attention.
Explicar en qué sectores están divididos los procesos de producción y su importancia para el desarrollo tecnológico y económico del país. Indique dos ejemplos en cada sector
Answer:
Un sector económico es una rama de la economía en específico, caracterizada por englobar dentro de sí una serie de actividades interrelacionadas según cómo cada una contribuye al desarrollo económico del país. Una clasificación general popular de la economía es la división en los siguientes cuatro sectores:
1) Sector primario. El sector primario es el sector económico que abastece de materias primas y alimentos. Este sector abarca los sectores de agricultura, ganadería, caza, pesca y extracción de minerales. El procesamiento de estas materias primas se realiza en el sector secundario.
2) Sector secundario. Este sector se conoce como industria. Esto incluye todas las empresas y actividades que procesan las materias primas del sector primario. Los productos suelen ser revendidos al consumidor por el sector terciario.
3) Sector terciario. Este sector incluye los servicios comerciales: empresas que quieren obtener ganancias vendiendo sus servicios. El sector terciario incluye tiendas, catering, teatros, peluquerías, mayoristas, empresas de transporte, arrendadores, agencias de empleo, contables, abogados, consultores y empresas TIC.
4) Sector cuaternario. El sector cuaternario es el de servicios no comerciales, el único sector económico sin ánimo de lucro. Este sector incluye los servicios gubernamentales y los servicios subvencionados por el gobierno. Los ejemplos son hospitales, hogares de ancianos, cuerpos de bomberos, defensa, salud, trabajo social, educación y cultura.
Answer:
hola
Explanation:
Application software consists of programs that perform a specific task for users. Examples include microsoft word internet explorer and micro type 5.
A.true
B.false
Answer: verdadero
Explanation:
In a PC, which of the following components stores the BIOS
A. CPU
B. RAM
C. ROM
D. Hard drive
JAVVVAAAAAA HELPPPP EDHESIVE
Answer:
Here's some really bad code that works:
public static double average(int a, int b, int c, int d, int e)
{
return (((double)a + b + c + d + e) / 5);
}
Any device that uses light to read and write information.
A. Optical Drive
B. Peripheral Device
C. Laser Device
D. Optical Device
Answer:
the answer is optical drive
Explanation:
hope that helps thanx optical drive uses reflected light to read data.