INPUT There will be no inputs for this activity, as you are only tasked to create the required class. However, if you want to try the test cases below, you can download the inputs.py file – and run it along with your ConeAreas.py file. Note: you are not allowed to edit the contents of inputs.py or place the contents of inputs.py in ConeAreas.py! The sequence of inputs are: diameter followed by height. OUTPUT Once the user enters the input, the program should be able to calculate and print the given shape's surface area and volume, rounded off to 1 floating point (use %.if). If the user decides to enter more or less than the required number of inputs, then the program should output "Cone Area Error!" instead. The same error would be printed if the user entered zero/negative dimension values. SAMPLE INPUT SAMPLE OUTPUT 45 BA: 12.6 LSA: 33.8 10 11 BA: 78.5 LSA: 189.8 1 Cone Area Error! 1111 Cone Area Error! Cone Area Error! a -100 Cone Area Error!
INPUT There will be no inputs for this activity, as you are only tasked to create the required class. However, if you want to try the test cases below, you can download the inputs.py file – and run it along with your ConeAreas.py file. Note: you are not allowed to edit the contents of inputs.py or place the contents of inputs.py in ConeAreas.py! The sequence of inputs are: diameter followed by height. OUTPUT Once the user enters the input, the program should be able to calculate and print the given shape's surface area and volume, rounded off to 1 floating point (use %.if). If the user decides to enter more or less than the required number of inputs, then the program should output "Cone Area Error!" instead. The same error would be printed if the user entered zero/negative dimension values. SAMPLE INPUT SAMPLE OUTPUT 45 BA: 12.6 LSA: 33.8 10 11 BA: 78.5 LSA: 189.8 1 Cone Area Error! 1111 Cone Area Error! Cone Area Error! a -100 Cone Area Error!
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%
The instructions are in the attached photo. Please provide comments in every line of the code so that I can understand it clearly.
**Here's the input code:
from ConeAreas import ConeAreas
inp = input().split()
inputs = (float(x) for x in inp)
c = ConeAreas(*inputs)
c.printResults()
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education