Question: Specifications Overview: You will write a program this week that is composed of two classes: (1) one nam Dodecahedron that defines Dodecahedron objects, and (2)
Specifications Overview: You will write a program this week that is composed of two classes: (1) one nam Dodecahedron that defines Dodecahedron objects, and (2) the other, DodecahedronApp, which has a main method that reads in data, creates a Dodecahedron object, and then prints the object A dodecahedron has 12 equal pentagonal faces, 20 vertices, and 30 edges as depicted below. The s are provided to assist you in computing return values for the respective Dodecahedron methods described in this project. Surface Area (A) Volume (V) Edge length (a) Surface/Volume ratio (A/V) A 3/25+10 5 a 15+7 y5 . Dodecahedron.java Requirements: Create a Dodecahedron class that stores the label, color, and edge (i.e., length of an edge, which must be greater than zero). The Dodecahedron class also includes methods to set and get each of these fields, as well as methods to calculate the surface area, volume, and surface to volume ratio of a Dodecahedron object, and a method to provide a String value of a Dodecahedron object (i.e., a class instance). Page 1 of 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
