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
ycow [4]
4 years ago
5

Unlike in previous questions where we wanted you to complete a function we had started, here we want you to write a Python funct

ion from scratch called surf_area_sphere that takes a single parameter, the radius of a sphere as a floating point number, and returns the surface area of that sphere. You can name your parameter whatever you want.
Engineering
1 answer:
Eddi Din [679]4 years ago
8 0

Explanation:

from math import pi//imports the pi constant

def surf_area_sphere(rad)://naming the function and designating input argument

return 4*pi*rad**2//value to be returned

print("Enter a number: ")

rad = float(input())//collects user input

print(surf_area_sphere(rad))//calls the function

You might be interested in
What does it mean if a manufacturing company "retools"?
zmey [24]

Answer:

It mean to equip more tools.

Explanation:

I hope this helps.

6 0
3 years ago
Read 2 more answers
Choose the best data type for each of the following so that any reasonable value is accommodated but no memory storage is wasted
stiks02 [169]

Answer:

Explanation:

Part (a):

Statement : The number of siblings you have

Suitable Data type : Byte

Typical Value : From -128 and up to 127

Explanation: Byte data type is the most suitable since it can covers minimum and maximum number of siblings one can have.

Part (b):

Statement : Your final grade in this class

Suitable Data type : Char

Typical Value : 1 byte

Explanation: Grades is in the form of alphabetical letter which is either A, B, C, D, F or E which can be stored in character data type.

Part (c):

Statement : Population of Earth

Suitable Data type : Long

Maximum Value : 9223372036854775807

Explanation: Long Data takes up to 8 bytes and can store up to 9223372036854775807 which can cater for more than 36 billion. The population of earth is only around 7 billion currently making Long data type the most suitable data type to store earth population.

Part (d):

Statement : Population of US Country

Suitable Data type : Integer

Typical Value :2147483647

Explanation: Integer data type takes up to 4 bytes and can store up to  2147483647 making it suitable to store U.S population.

Part (e):

Statement : The number of passengers on bus

Suitable Data type : Byte

Typical Value :From -128 up to 127

Explanation: The typical maximum number of passengers of a bus are only around 72. Byte data type is the most suitable since it can cater the number up to 127.

Part (f):

Statement : Player's score in a Scrabble game

Suitable Data type : Short

Typical Value : 32767

Explanation: The maximum point can be scored in the Scrabble game is only 830 therefore the most suitable data type for this case is the short data type.

Part (g):

Statement : One team's score in a Major League Baseball game

Suitable Data type : Byte

Typical Value : From -128 up to 127

Explanation: The maximum point can be scored in the Base ball game is only 49 therefore the most suitable data type for this case is the Byte data type since it can cater up to 127.

Part (h):

Statement : The year an historical event occurred

Suitable Data type : Short

Maximum Value: 32767

Explanation: The historic event year can be any number from 1 to 2020 therefore the most suitable data type is the short data type.

Part (i):

Statement : The number of legs on an animal

Suitable Data type : Short

Maximum Value: 32767

Explanation: The most number of legs found are 750 legs therefore the most suitable data type is the short data type which can cater up to 32767.

Part (j):

Statement : The Price of an automobile

Suitable Data type : Float

Maximum Value: 340282350

Explanation: The most expensive car is around 15 million therefore the most suitable data type is the float data type which can cater up to 340 million.  

3 0
3 years ago
Recently, there was an outbreak of a computer virus, known as the Melissa virus. The FBI is determining whether the virus meets
never [62]

Answer:

Correct answer is (c)

Explanation:

The transmission of a program, information, code, or command that intentionally causes damage without authorization, to a protected computer.

Melissa virus is a computer program that was meant to cause serious damage to computer system by sending e-mail from an infected computer to the mail address on that computer. The virus was investigated by the FBI's National Infrastructure Protection Center. By transmission of a program, information, code, or command that intentionally causes damage without authorization, to a protected computer, The FBI's NIPC will be able to investigate how Melissa is being proliferated.

5 0
3 years ago
Drag the tiles to the correct boxes to complete the pairs. Not all tiles will be used.
enyata [817]

Answer:

Check image, right on PLATO

Explanation:

7 0
3 years ago
The Reynolds number for flow over a fixed horizontal flat plate is constant throughout its length. a) True b) False
ANTONII [103]

Answer: False

Explanation: Reynolds number is the number for determining he flow pattern of the behavior of fluids.It judges the flow of the fluid ans states whether it is of turbulent or laminar natured. This number has the property of kinematics as well as statics. It can also be defined as the ratio between the inertial force to viscous force.It's length changes along with change length of the horizontal plate .Thus, the statement given is false.

5 0
4 years ago
Other questions:
  • Two technicians are discussing cylinder- testing. Technician A says that when testing the power level of a specific cylinder usi
    8·1 answer
  • An equal-tangent vertical curve is to be constructed between grades of -2% (initial) and 1% (final). The PVI is at station 110 0
    9·1 answer
  • For some transformation having kinetics that obey the Avrami equation (Equation 11.17), the parameter n is known to have a value
    15·1 answer
  • Why does the the diffusion capacitance fall off at high frequencies?
    10·1 answer
  • A particular op amp using ±15-V supplies operates linearly for outputs in the range−14 V to+14 V. If used in an inverting amplif
    13·1 answer
  • The pilot of an airplane reads the altitude 6400 m and the absolute pressure 45 kPa when flying over the city. Calculate the loc
    10·1 answer
  • Which one of the following statements belt batter boards is correct
    15·2 answers
  • Plis 3 conclusiones de este video
    15·1 answer
  • Which two states about electric motor are true
    8·1 answer
  • Zander worked at a pet shop in high school and during college began taking classes in veterinary medicine. To pay the bills duri
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!