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
patriot [66]
3 years ago
6

PLEASE HELP ME!!! I REALLY NEED YOU TO HELP ME NOW!!!! THANKS!

Computers and Technology
1 answer:
Brilliant_brown [7]3 years ago
6 0

Answer:

Surface of a Cylinder Code:

#import math package to use math.pi for the value of PI

import math

#take radius of the base of a cylinder from user

r=float(input("Enter r of a cylinder"))

#take height of the curve surface of a cylinder from user

h=float(input("Enter the Height of a cylinder"))

#calculate the surface area of cylinder

s_area=2*math.pi*pow(r,2)*h

#calculate the volume of cylinder

volume=math.pi*pow(r,2)*h

print("surface area of a cylinder wll be %.2f" %s_area)

print("volume of a cylinder will be %.2f" %volume)

Quadratic Equation Code:

import math

a = int(input("Enter the coefficients of a: "))

b = int(input("Enter the coefficients of b: "))

c = int(input("Enter the coefficients of c: "))

d = b**2-4*a*c # discriminant

if d < 0:

print ("This equation has no real solution")

elif d == 0:

x = (-b+math.sqrt(b**2-4*a*c))/2*a

print ("This equation has one solutions: "), x

else:

x1 = (-b+math.sqrt((b**2)-(4*(a*c))))/(2*a)

x2 = (-b-math.sqrt((b**2)-(4*(a*c))))/(2*a)

print ("This equation has two solutions: ", x1, " or", x2)

You might be interested in
If the value of score1 is 350 and the value of score2 is 210, what will be the value of result after the code segment is execute
MAVERICK [17]

  The value of result of the  code segment is executed is known to be 4.

<h3>Why is the value of the code segment so?</h3>

  When the result of  is not  executed because the condition is said to be false and also when there is a false condition is, the else statement will be said to be true

  Therefore,   result = result + 2; -> result is brought up by 2 to bring about 4 and as such, the value of result of the  code segment is executed is known to be 4.

Learn more about scores from

brainly.com/question/19492935

#SJ1

4 0
2 years ago
HELP ME PLEASE !!!!!
aalyn [17]

Answer:

C

Explanation:

6 0
3 years ago
Which protocol below is used to email clients to send email
AVprozaik [17]

The Internet Message Access Protocol (IMAP) is a mail protocol used for accessing email on a remote web server from a local client. IMAP and POP3 are the two most commonly used Internet mail protocols for retrieving emails

4 0
3 years ago
What is a protocol in digital technology plwwes help
anzhelika [568]

Protocol, in computer science, a set of rules or procedures for transmitting data between electronic devices, such as computers. In order for computers to exchange information, there must be a preexisting agreement as to how the information will be structured and how each side will send and receive it.

3 0
2 years ago
#Write a function called population_density. The function #should take one parameter, which will be a list of #dictionaries. Eac
Radda [10]

Answer:

def population_density(dictionary_list):

     """ this function calculates the population density of a list of countries"""

    total_population= 0

    total_area= 0

    for country in dictionary_list:

           total_population += country['population']

           total_area += country['area']

    population_density = total_population / total_area

    return population_density

Explanation:

In python, functions are defined by the "def" keyword and a dictionary is used to hold immutable data key and its value. The for loop is used to loop through the list of dictionaries and the values of the country data and extracted with bracket notation.

3 0
3 years ago
Other questions:
  • Write a copy assignment operator for CarCounter that assigns objToCopy.carCount to the new objects's carCount, then returns *thi
    15·1 answer
  • Used prevalently on the web, it allows for secure messages to be sent between parties without having to agree on, or share, a se
    7·2 answers
  • Rita wants to know the size of each image in a folder. Which view will help her find this information quickly?
    7·1 answer
  • How might an engineer test a computer chair for comfort?
    10·1 answer
  • The way a program is proceed is know as control flow and are :Sequence(one line after the other), Decision-making(either this or
    8·1 answer
  • A top level class may have only the following accessmodifier.
    7·1 answer
  • How do you change the top and bottom margins of an entire document?
    7·2 answers
  • Write a program that will sort an array of data using the following guidelines - DO NOT USE VECTORS, COLLECTIONS, SETS or any ot
    10·1 answer
  • Need help on Assignment 4: Evens and Odds
    5·1 answer
  • Select the correct line of missing code to create an output of "hello."
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!