22samuelbezdicek
22samuelbezdicek 22samuelbezdicek
  • 28-10-2020
  • Computers and Technology
contestada

I need help completing the Project: Programming a Math Algorithm for Intro to Computer Science on Edginuity. I completely zoomed through the past few lessons so I have no idea how to do this portion. Thanks for any help.

Respuesta :

Cytokine
Cytokine Cytokine
  • 28-10-2020

In python:

import math

radius = float(input("Enter the radius of a cylinder: "))

height = float(input("Enter the height of a cylinder: "))

print(f"The surface area of a cylinder with radius of {radius} and height of {height} equals {round((2*math.pi * radius * height) + ((2 * math.pi) * radius**2), 2)}")

I rounded the answer to 2 decimal places, I don't know if that's how you want it. Anyway, I hope this helps!

Answer Link

Otras preguntas

Parameters are associated with __________; whereas, statistics are associated with __________.
Property taxes are collected at the____level. A.neighborhood B.local C.state D.federal
Algebra problem below.
Justin's dog eats 3/4 cup of food a day Masons puppy is 1/3 cup of food a day how much more food is Justin's dog eat
The key characteristics of poetry are _____.
Keisha has a straightedge and a compass, but noprotractor. What kind of angle can Keisha draw exactly with only these tools?
Easy Chemistry Help? Give the number of each kind of atom in the following formula units or molecules A. 5NaCl I put Na=5 Cl=5 ?? B. Ca(OH)2 I put C
The step function g(x) is defined as shown. What is the range of g(x)? –3 ≤ g(x) ≤ 5 0 ≤ g(x) ≤ 10 {–3, 2, 5} {0, 4, 10}
4x-16=6(3+x) this doesnt make sence...
Write an email to the editor of your local newspaper or school publication about an issue with which you are concerned. First, find a focus by brainstorming, w