Question: Using OBJECT ORIENTED java programming with hierarchy Nick has just opened a sign shop, specializing in Old School Neon signs (bent glass tubes, inert gasses,
Using OBJECT ORIENTED java programming with hierarchy


Nick has just opened a sign shop, specializing in "Old School" Neon signs (bent glass tubes, inert gasses, the real deal). Nick is trying to reduce how much glass tubing he uses (i.e. wastes through "trial and error") and has asked you to write a Java program to figure out how much tubing to use for various sizes and shapes. Design and code a Java program that prompts the user for the shapes and sizes, and calculates and prints the "outside" dimension: - (R)ectangle given height and width - (S)quare given height - (C)ircumference of a circle, given the diameter. - (T)riangle perimeter - (L)ine given length [used for connecting shapes] The program should continue to ask the user for values until the user enters ' Q ' as the type of calculation. After data entry, print the list of shapes and the Total Length. The program should echo print the input data and prompt appropriately. Label the output and format to one decimal place (omit units for now). uring the Design Phase: Apply Object Oriented design principles following the guidelines discussed in class. Use inheritance to create a hierarchy of shapes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
