Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started