1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Marina CMI [18]
4 years ago
5

Implement a program that requests the user to enter the x and y coordinates (each between 10 and 10) of a dart and computes whet

her the dart has hit the dartboard, a circle with center (0,0) and radius 8. If so, string It is in! should be printed on the screen.
Computers and Technology
1 answer:
igomit [66]4 years ago
4 0

Answer:

Following are the program in the Python Programming Language.

#import math package

from math import sqrt

#define function

def circle(x,y):

 #return the square root

 return sqrt( (x)**2 + (y)**2 )

#get input from the user

x = float(input("Enter first number between -10 and 10: "))

#get input from the user

y = float(input("Enter first number between -10 and 10: "))

#check condition

if(circle(x,y)<8):

 #then, print message

 print("It is in!")

#otherwise

else:

 #print message

 print("It is not in!")

<u>Output:</u>

Enter first number between -10 and 10: 1.5

Enter first number between -10 and 10: 2.6

It is in!

Explanation:

Here, in the following program in the Python Programming Language.

  • Define the function "circle" and pass the argument "x" and "y" then, return square root of x and y.
  • Set a variable "x" which get float type input from the user.
  • Set a variable "y" which get float type input from the user.
  • Set the if conditional statement to check that the function return the value less than 8 then, print the message.
  • Otherwise, it print the following message.
You might be interested in
Manuel has set up his network so that some employees can open and view files but are unable to edit them. Others can open, view,
xxMikexx [17]

Answer:

access privileges or privileges

Explanation:

The employees at Manuel's company have different _access privileges _ , based on the situation described.

The permissions to be able to perform some actions on some files are called privileges.  So, some employees have limited privileges (only able to open files, but not to edit them), and other have extended privileges (allowing them to open and edit files).  

Although possible, it's <u>unlikely that the employees have different different antivirus software, broadband connections or firewalls</u>.  And no indication in the situation described lead to think that.

It's unclear in your question if <u>"access privileges</u>" is <u>one or two answer choices</u>.  Usually, we talk about "access privileges" but it would also be just "privileges".   If these are two choices, go for "privileges", since all employees have access to the files,<u> so they don't have different access</u>.

7 0
3 years ago
Co to jest podprogram (procedura lub funkcja)? Zaznacz poprawną odpowiedź. a) Wielokrotne powtarzanie tych samych poleceń. b) Wy
ale4655 [162]

Answer:

  b)  A separate part of the program that performs a specific task.

Explanation:

A subroutine is a portion of the program that can be invoked to perform a specific task. Typically, it performs that task and returns execution control to the point immediately following its invocation. It may or may not maintain "history" or "state", and it may or may not throw exceptions.

A well-behaved subroutine will only operate on data passed to it, will not maintain any internal history or state, and will have only one exit.

8 0
3 years ago
What are the advantages of customer relationship managment​
Delvig [45]

Answer:

Enhances Better Customer Service.

Facilitates discovery of new customers.

Increases customer revenues.

Helps the sales team in closing deals faster.

Enhances effective cross and up-selling of products.

Simplifies the sales and marketing processes.

Makes call centers more efficient.

Enhances customer loyalty.

3 0
3 years ago
What is unit testing? a. Checking that the integer values of a function use proper units (yards, meters, etc.) b. Ensuring a pro
egoroff_w [7]

Answer:

d. Individually testing a small part (or unit) of a program, typically a function, using a separate program called a test harness.

Explanation:

A software development life cycle (SDLC) can be defined as a strategic process or methodology that defines the key steps or stages for creating and implementing high quality software applications. There are seven (7) main stages in the creation of a software and these are;

1. Planning.

2. Analysis.

3. Design.

4. Development (coding).

5. Testing.

6. Implementation and execution.

7. Maintenance.

Unit testing can be defined as a software development procedure that involves the process of individually testing a small part (or unit) of a program, typically a function, using a separate program called a test harness.

This ultimately implies that, if the observed behavior of the small part of a software program is consistent with the expectations, then the unit test is considered a pass. Otherwise, the unit test failed.

8 0
3 years ago
How much RAM memory is recommended for your computer to be used as a digital darkroom?
Montano1993 [528]

1-2 GB

I had hard time finding the answer to this, but the correct answer on my test was 1-2 GB

6 0
4 years ago
Other questions:
  • Randy is concerned about his company’s data security on the Internet. Because cellular signals are not encrypted, he is concerne
    6·1 answer
  • Accessing programs and documents by way of icon
    12·1 answer
  • In which of these scenarios would the top 10 option be most helpful
    10·1 answer
  • What is the answer to this question on the thing I'm doing in apex
    6·1 answer
  • Which operating system became obsolete with the arrival of more advance graphical user interfaces
    14·1 answer
  • Andrew works for a company that develops for a company that develops optic-fiber cables for transmission of data. which layer of
    14·1 answer
  • Marie uses DHTML to create a website for her college. How is DHTML more helpful than HTML?
    13·2 answers
  • What programming language does the LMC 'understand'?
    5·1 answer
  • .A card that connects directly to the motherboard of the computer and has external sockets so that the computer can be connected
    6·1 answer
  • A sample member of the list data is a1 = ['male', True] where the second item is True if the person is on the phone.
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!