Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems 12th Asian Conference ACIIDS 2020 Phuket Thailand March 23 26 2020 Proceedings

Authors: Pawel Sitek ,Marcin Pietranik ,Marek Krotkiewicz ,Chutimet Srinilta

1st Edition

9811533792, 978-9811533792

More Books

Students also viewed these Databases questions

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago