URGENTTTTTTTTTTTT
You want to find a random decimal between 0 and 1, with 0 included. Choose the correct lines of code, in the order they should appear in IDLE. Sample Output: 0.3570702149467504
>>>_________
>>>_________

from math import *
randint(0,1)
from random import *
random( )​

Answers

Answer 1

Answer:

from random import *

print(random())

Explanation:

You can try this in any online python ide quicker than putting the question here!


Related Questions

Understanding Inner Joins
Which records would be returned in a query based on an inner join between a table named Customers and a table
named Orders? Check all that apply.
orphaned orders
orphaned customers
O customers who placed orders
customers who did not place orders
orders that are attached to customers
orders that are not attached to customers

Answers

Answer:  customers who placed orders,  orders that are attached to customers or C E

Explanation: on edg

The records that would returned in a query based on an inner join between a table named Customers and a table named Orders includes:

customers who placed ordersorders that are attached to customers

What is a query?

In a database, this refers to the request for information stored within a database management system that maintains data.

Hence, the "customers who placed orders" and "orders that are attached to customers" will be returned in a query based on an inner join between a table named Customers and a table named Orders

Therefore, the Option C & E is correct.

Read more about query

brainly.com/question/25694408

#SPJ2

Complete the statement below using the correct term.
One recurring problem in networking is finding that users have used a hub or a switch to circumvent a
________

Answers

Answer:

HURRY

Dr. Khan works for the marketing department of a company that manufactures mechanical toy dogs. Dr. Khan has been asked to assess the effectiveness of a new advertising campaign that is designed to be most persuasive to people with a certain personality profile. She brought four groups of participants to the lab to watch the video advertisements and to measure the likelihood that they would purchase the toy, both before and after watching the ad. The results of Dr. Khan’s study are presented below.

Part A

Explain how each of the following concepts applies to Dr. Khan’s research.

Survey

Dependent variable

Big Five theory of personality

Part B

Explain the limitations of Dr. Khan’s study based on the research method used.

Explain what Dr. Khan’s research hypothesis most likely was.

Part C

Use the graph to answer the following questions.

How did the trait of agreeableness affect how people responded to the new ad campaign?

How did the trait of conscientiousness affect how people responded to the new ad campaign?

PLEASE HELP ME ASAP!!!!

Answers

First party insurance: Loss due to laptop theft, loss due to interruption in business activities due to website failure

Third party insurance: cost of lawsuits filed against the policyholder, fees of a special programmer investigating a cyber fraud, expenses of providing notifications of the cyber attack to clients and employees

free pass if you want it.

Answers

Answer:

yuh

Explanation:

Answer:

thank youuuu!

Explanation:

have a great day!!

Write a new method in the Rectangle class to test if a Point falls within the rectangle. For this exercise, assume that a rectangle at (0,0) with width 10 and height 5 has open upper bounds on the width and height, i.e. it stretches in the x direction from [0 to 10), where 0 is included but 10 is excluded, and from [0 to 5) in the y direction. So it does not contain the point (10, 2). These tests should pass:

Answers

Answer:

Explanation:

The Rectangle and Point class is not provided in this question but was found online. Using that code as guidance I created the following method named contains. This method takes in a Point object and checks to see if the x-axis point is inside the parameters of the Rectangle class and then checks the same for the y-axis. If it is inside the Rectangle then the method returns true otherwise it returns false.

def contains(self, point):

       return self.width > point.x >= self.corner.x and self.height > point.y >= self.corner.y

The following procedure is intended to return the number of times the value val appears in the list nylist. The procedure does not work as intended, Line 1: PROCEDURE countNumoccurences (mylist, val) Line 2: Line 3: FOR EACH item IN mylist Line 4: Line 5: count = 0 Line 6: IF(item = val) Line 7: tine 8: count count + 1 tine 9: Line 10: Eine 11: RETURN (count) Line 12:) Which of the following changes can be made so that the procedure will work as intended?
A. Changing line 6 to IF(item = count)
B. Changing line 6 to IF(myList[item) - val)
C. Moving the statement in line 5 so that it appears between lines 2 and 3
D. Moving the statement in line 11 so that it appears between lines 9 and 10 ->

Answers

Answer:

C. Moving the statement in line 5 so that it appears between lines 2 and 3

Explanation:

Given

The attached procedure

Required

What should be modified

The problem in the procedure is on line 5

i.e. count = 0

This line is within the loop, and this means that the count variable is initialized to 0 each time the loop is repeated.

To solve this, the count variable has to be removed from the loop to somewhere before the loop.

Hence, option (c) is correct

Throughout our procedure, even though we proclaimed count = 0 inside the for loop, the count has been valued at 0.  

After that, When a certain value is found equal to Val, the count has been incremented by 1. The count is set to 0 again in the next iteration, so at the end, if we found an element equivalent to Val 1, its real count has been returned.To get around this, we'll define count outside of the for loop to acquire the true count of instances of that specific value.

Therefore, the answer is "Option C".

Learn more:

brainly.com/question/14941418

Explain how to back up a computer in five steps.

Answers

Answer:

Explanation:

1. Decide what to back up  

If you've stored anything valuable on your hard drive , you'll need to back that up yourself.

 2. Choose backup media  

You'll need to store your backup on a separate form of digital media - such as Go-ogle Drive, One  Drive for Business or an external hard drive

 3. Back up your data  

The backup method will vary depending on your choice of software and operating system Once that's done, schedule regular future backups.

4. Store it safely  

You don't want to lose your PC and your backup. So, be smart and keep your backup somewhere safe.

5. Check that it works

Errors and technical glitches can happen without you even noticing. You may only find out later when you actually need to use that data that something went wrong. Avoid the worry by checking your backups once in a while and confirming that the data is being properly backed up.

Ill give alot of points if you answer: How do I get a 100 dollar ps4

Answers

uh how do you get a little blue box in a sandwich
You can try to set up a go found me or if you post a Venmo or cash thing in your profile people might give you money. Good luck!

c Write a program that simulates a magic square using 3 one dimensional parallel arrays of integer type. Each one the arrays corresponds to a row of the magic square. The program asks the user to enter the values of the magic square row by row and informs the user if the grid is a magic square or not. flowchart

Answers

Answer:

hope this helps and do consider giving a brainliest to the ans if it helped.

Explanation:

//program to check if the entered grid is magic square or not

/**c++ standard libraries

*/

#include<bits/stdc++.h>

using namespace std;

/**function to check whether the entered grid is magic square or not

*/

int isMagicSquare(int arr[3][3]){

  int i,j,sum=0,sum1=0,rsum,csum;

  for(i=0;i<3;i++){

      sum+=arr[i][i];

      sum1+=arr[i][2-i];

  }

  if(sum!=sum1){

      return 0;

  }

 

  for(i=0;i<3;i++){

      rsum=0;

      csum=0;

      for(j=0;j<3;j++){

          rsum+=arr[i][j];

          csum+=arr[j][i];

      }

      if(sum!=rsum){

          return 0;

      }

      if(sum!=csum){

          return 0;

      }

  }

  return 1;

}

/** main function to get user entries and

* call function

* and print output

*/

int main(){

  int i,j,arr[3][3]={0};

  for(i=0;i<3;i++){

      for(j=0;j<3;j++){

          cout<<"Enter the number for row "<<i<<" and column "<<j<<" : ";

          cin>>arr[i][j];

      }

  }

  int ret = isMagicSquare(arr);

  if(ret==1){

      cout<<"This is a Lo Shu magic square"<<endl;

  }

  else{

      cout<<"This is not a Lo Shu magic square"<<endl;

  }

  return 0;

}

In numerical methods, one source of error occurs when we use an approximation for a mathematical expression that would otherwise be too costly to compute in terms of run-time or memory resources. One routine example is the approximation of infinite series by a finite series that mostly captures the important behavior of the infinite series.
In this problem you will implement an approximation to the exp(x) as represented by the following infinite series,
exp(x) = Infinity n= 0 xn/xn!
Your approximation will be a truncated finite series with N + 1 terms,
exp(x, N) = Infinityn n = 0 xn/xn!
For the first part of this problem, you are given a random real number x and will investigate how well a finite series expansion for exp(x) approximates the infinite series.
Compute exp(x) using a finite series approximation with N E [0, 9] N (i.e. is an integer).
Save the 10 floating point values from your approximation in a numpy array named exp_approx. exp_approx should be of shape (10,) and should be ordered with increasing N (i.e. the first entry of exp_approx should correspond to exp(x, N) when N = 0 and the last entry when N = 9).

Answers

Answer:

The function in Python is as follows:

import math

import numpy as np    

def exp(x):

   mylist = []

   for n in range(10):

       num = (x**n)/(math.factorial(n))

       mylist.append([num])

   exp_approx = np.asarray(mylist)

   sum = 0

   for num in exp_approx:

       sum+=num

   return sum

Explanation:

The imports the python math module

import math

The imports the python numpy module

import numpy as np    

The function begins here

def exp(x):

This creates an empty list

   mylist = []

This iterates from 0 to 9

   for n in range(10):

This calculates each term of the series

       num = (x**n)/(math.factorial(n))

This appends the term to list, mylist

       mylist.append([num])

This appends all elements of mylist to numpy array, exp_approx

   exp_approx = np.asarray(mylist)

This initializes the sum of the series to 0

   sum = 0

This iterates through exp_approx

   for num in exp_approx:

This adds all terms of the series

       sum+=num

This returns the calculated sum

   return sum

HTML tag that makes a text field used by javascript statement

Answers

I don’t even know I don’t even know I don’t even know

You have a larger file but do not need it right away. In this scenario, you have to change the way a file is used to make it what?
O open
o closed
compressed
O usable

Answers

Answer:

Compressed

Explanation:

I hope this helps!

Answer:

usable

Explanation:

open doesnt make any sense, neither does closed and compressed is wrong i chose it and got it wrong. Its usable

______allow you to select elements that are in a certain state, such as when the mouse if hovering over an element

Answers

Answer:

css.

Explanation:

Uhh... What is happening?.. What... Pt 2

Answers

Pistons being pistons I guess...

Answer:

Levers on the parts we cant see?

What is an access review?

Answers

Answer:

System Access Review (previously known as Identity Management) is the organizational process for ensuring that individuals have the appropriate access to technology resources.

PLEASE HELP ME ASAP ITS IMPORTANT

Answers

I’m 80% sure it’s the last one, I’ve studied this last year I cant quite grasp the memorie
The answer is E. Data encryption ensures the validity of the website and inserts blocks that prevent hackers and viruses from messing with the website.

Davos has been reading about encryption recently. He begins to wonder how anything can be secure if everyone is using the same set of algorithms. After all, anyone using the same algorithm would be able to decrypt anything that had been encrypted using that algorithm. Which of the following helps make the data unusable by anyone else using that same encryption scheme without having this information?
a. Algorithm
b. Cipher
c. Key
d. Block

Answers

Answer:

The correct answer is B. Cipher.

Explanation:

Cipher is a system of reversible transformations that depends on some secret parameter, called key, and is designed to ensure the secrecy of transmitted information.

The cipher can be a combination of conventional characters or an algorithm for converting ordinary numbers and letters. The process of making a message secret with a cipher is called encryption. An important parameter of any cipher is the key - a parameter of the cryptographic algorithm, which ensures the selection of one transformation from the set of transformations possible for this algorithm. In modern cryptography, it is assumed that all the secrecy of a cryptographic algorithm is concentrated in the key.

3.This exercise considers the implementation of search algorithms in Prolog. Suppose that successor(X,Y) is true when state Y is a successor of state X; and that goal(X) is true when X is a goal state. Write a definition for solve(X,P), which means that P is a path (list of states) beginning with X, ending in a goal state, and consisting of a sequence of legal steps as defined by {\tt successor}. You will find that depth-first search is the easiest way to do this. How easy would it be to add heuristic search control

Answers

Answer:

c

Explanation:

I WILL GIVE MOST BRAINLY



Which factor most contributed to the rise of globalization beginning in the 20th century?
A.Consumers preferring to buy local goods
B.Governments breaking up corporate monopolies
C.Economist promoting barriers to trade
D.Internet access becoming widespread


Plz help I need this ASAP

Answers

i say C, i’m srry if i’m wrong

The factor that contributed to the rise of globalization beginning in the 20th century is economist promoting barriers to trade. Thus, option C is correct.

What is globalization?

Globalization has made communication between the countries easier to share information openly. This has also helped to increase the speed of transportation of products. Globalization brings nations together, breaking down cultural barriers and turning the world into a global village.

Technology not only changes the way we produce and connect, but also enables more humans to create and test new objects and ideas, reducing the costs and risks of innovation. Product development, even in developing countries.

Globalization has positive effects such as increase in national income, access to global capital, emergence of new business opportunities, increase in loans and investments, transfer of technology, development of energy and communication infrastructures. Improvement of labor quality and working conditions

Thus, option C is correct.

Learn more about Globalization on:

https://brainly.com/question/15283031

#SPJ7

In a spreadsheet what does the following symbol mean?

$

Answers

Answer:

$ = dollar sign

Explanation:

In a spreadsheet, the $ symbol is the symbol of the dollar. The dollar is the currency of the United States.

What is currency?

Currency is a form of payment for goods and services. In a nutshell, it is money in the form of paper and coins that is usually issued by a government and is generally accepted as a form of payment at face value.

Currency exchange rates differ between businesses because each one distorts the interbank rate to maximize profits. We encounter numerous competitors who post interbank rates internet as bait to attract new customers, but once the customers are onboard, they drastically change the rate, typically not in the customers' favor.

Therefore, the $ symbol represents the dollar in a spreadsheet. The US dollar is the country's currency.

To learn more about a dollar, refer to the below link:

https://brainly.com/question/23899116

#SPJ2

The Internet is written in a "language" called
O Usenet
O package switching
O HTTP
O ARPANET​

Answers

Answer:

HTTP

Explanation:

I hope it helps u.

Mark Me as brainlist answer

HTTP

Have a great day! I hope this helped!

Does anybody have the full answer sheet for Cisco Packet Tracer 11.10.1 (Design and implement a vlsm addressing scheme)? Will give brainliest!

Answers

Answer:

Red font color or Gray highlights indicate text that appears ... In this lab, you will design a VLSM addressing scheme given a network ... You have been asked to design, implement, and test addressing ...

Explanation:

what is an input device​

Answers

In computing, an input device is a piece of equipment used to provide data and control signals to an information processing system such as a computer or information appliance. Examples of input devices include keyboards, mouse, scanners, cameras, joysticks, and microphones.

Grooved pavement ahead means

Answers

Answer:it means warning

Explanation:

Explain the difference between invention and innovation?

Answers

Invention is about creating something new, while innovation introduces the concept of use of an idea or method.

Which of the following statements should be avoided when developing a mission statement?
The how-to statements.

Describe the “who, what, and where” of the organization.

Be brief, but comprehensive.

Choose wording that is simple.

Answers

Answer: The how-to statements

Explanation:

The mission statement is simply a short summary of the purpose of a company. It is the guideline on how a company will operate. The mission statement states the reason for the existence of a company, products sold or service rendered and the company's goals.

The mission statement should be brief but comprehensive, consist of simple words and describe the “who, what, and where” of the organization.

Therefore, the incorrect option based on the explanation above is "The how-to statements". This shouldn't be part of the mission statement.

The project downloaded contains a package (folder) named Q1 within the src folder. Inside Q1 is a Java class named Questions. The purpose of Question 1 is to examine your understanding of loops and branching conditions. You should implement all of your code for this question in the main method of the Questioni class. While significant detail is provided below to be sure you undertand what is required, please note that the amount of code required to solve this question (Parts a-c) is less than 10 lines (total). In the Question1 class, you are given a line of code that generates a random number between 0 and 1. Math.random(): //generates number between 0 and 1 val
You are to create a loop which, in each iteration, generates a new random value, assigns it to val using the line provided and checks to see if that val is greater than 0.5. If val is greater than 0.5, a variable named counter should be incremented. The loop should continue this process (generate random value, check if it is greater than 0.5) until a total of three random numbers generated are greater than 0.5 (values do not have to be consecutive). You should also use the variable named numIterations, which is included for you, to track how many iterations of your loop were required for you to generate three random numbers greater than 0.5. A printin() statement is included for you that displays the value of numlterations. As an example of how the program should behave, if the following sequence of random numbers are randomly generated from your loop
0.3, 0.7,0.2, 0.6,0.9
then numIterations would equal 5 (the third value greater than 0.5 occured on the fifth iteration).
If
0.6, 0.8, 0.75
was the random sequence of numbers generated by your loop, then numlterations would equal 3 (the third value greater than 0.5 occured on the third iteration).
These are two examples to illustrate the scenario given in Question 1. Since at each iteration of your loop the number generated is random, the value of numIterations that your program observes may be any value greater than or equal to 3. Note that your program does not need to print out each of the random values that it generates. The steps to solve Question 2 are broken down as follows.
a. Implement a branching condition that increases the variable counter by 1 if val is larger than 0.5 1
b. Add a loop around the code created in Part a that continues until counter equals 3.
c. Use the variable numlterations to count how many times your loop iterates.

Answers

Answer:

ok where do i put anwaer?

Explanation:

4. Ito ay ang lugar kung saan nagtatagpo ang bawat column at
row.
A. cell
B. data
C. file tab
D. sheet tab

PATULONG ​PO PLS

Answers

Answer: A. Cell

Explanation:

A cell is the point on the worksheet that results from the intersection of a column and a row.

This is why cells can be identified by the column and row that they are the result of. For instance, a cell can be called "A12" which is also known as its "address". This means that it is a result of the intersection of "Column A" and "Row 12".

Who is MrBeast?
Answer the question correctly and get 10 points!

Answers

Answer: MrBeast is a y0utuber who has lots of money

Explanation:

Answer:

He is a You tuber who likes to donate do stunts and best of all spend money.

It's like he never runs out of money.

Explanation:

How should you add a appointment to your outlook calendar

Answers

answer:

press on the date thing

Put a note on the date you have a appointment on in your calendar
Other Questions
Jada saw a music video that her favorite artist recently posted online. The equation v(t)=3204t represents the number of views v of the video, t days since Jada saw the video.Part A: Find v(2). Help me with this please. Which bodies of water border the countries of Southwest Asia?Choose all correct answers. Caspian Sea Pacific Ocean Black Sea Persian Gulf The Cherokee law stated that tribal members need both parents to be of 100 percent Cherokee acenstry for them to be considered a member of the tribe What are the first three terms of the sequence defined by the recursive function an = an-1-(an-2-4), when a5 =-2 and a6 = 0?-14, 14,- 4 6, 10,8-2 0,22, 8, 10 This figure shows two identically sized posters that need to be hung on a10-foot-wide wall. How far apart, in feet, should each poster be for x to be the same distanceat all three places Select all the sets of three side lengths that will make a triangle.2, 3, 42, 3, 52, 3, 63, 4, 53, 4, 8 Which of the following numbers is not a perfect square? 49 124 169 361 A store that provides hedonic benefits will __________. [This question has been randomly selected from a pool of 3 questions. For optimal success in this class, repeat this chapter's questions until you are sure you are acquainted with all of the alternate versions of each question.] Group of answer choices have drive-through facilities emphasize efficiency in the check-out process encourage customers to shop as quickly as possible stock only essential products offer an entertaining and enjoyable shopping experienc help. complete with the correct preterite verb endingy quien pag__? anita pag__ Find the value of z. A. 55B. 90C. 238D. 122 A rectangular balcony is 14 feet long and 6 feet wide. What is its area? hi can someone pls help me, its confusing HELP ENGLISH PLEASSE!!! Use a colon in a sentence about going somewhere Someone help out Xxxxxxxxx What personality traits do you think result from the waypeopleare raised? Explain the various phase of menstrual cycle with reference to changes in ovary and uterus and hormonal cycle. what are the pillars of democracy Review the graph of function g(x).For which value of a does lim g(x) not exist?X-O-60-30 02- What should you complete to be eligible for the Federal Work-Study Program?A. PSATB. FAFSAC. FAFSA4CasterD. SAR