Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Java! Nick has just opened a sign shop, specializing in Old School Neon signs (bent glass tubes, inert gasses, the real deal). Nick is
In Java!
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). mple: Welcome to Nick's Neon Tubing Calculator Enter the shape type (R, S, C, T, L, Q): R Enter Height and width of Rectangle: 6.5 12 The perimeter of a 6.5 x 12 rectangle is 37.0 Enter the shape type (R, S, C, T, L, Q): C Enter Diameter: 12 The circumference of circle with diameter 12 is 37.7 Enter the shape type (R, S, C, T, L, Q)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