Question: Java A custom picture frame company sells its frames in packages of 12. A small frame under 250 square centimeters costs $15.00. A medium frame

A custom picture frame company sells its frames in packages of 12. A small frame under 250 square centimeters costs $15.00. A medium frame that is 250 square centimeters or more but under 600 square centimeters costs $23.50. A large frame of 600 square centimeters or more to 850 square centimeters (inclusive) costs $30.75. (These are the costs for one frame.) Write a program named Frames.java that will ask for the length and width of a picture frame (both integers). The program will then display: the area of the frame in square centimeters the frame size (small, medium, or large) the total price for the package of 12. If the area is zero or negative, print an appropriate error message. If the area of the frame is greater than 850 square centimeters, print the area along with a message telling the user that you cannot make a frame that large. Your program must use a variable to hold the price of a single frame and do a calculation to find the total price. of a single frame and do a calculation to find the total price. Display the total price with exactly two digits to the right of the decimal point. Here is a sample of the output from running the program several times. Your output does not have to look exactly like this, but it must reflect the same information. Enter the length of the frame in cm: 15 Enter the width of the frame in cm: -4 The length times width must be greater tha Enter the length of the frame in cm: 12 Enter the width of the frame in cm: 20 Your frame is 240 square centimeters. This is a small frame. The total cost for 12 frames is $180.00 Enter the length of the frame in cm: 30 Enter the width of the frame in cm: 15 Your frame is 450 square centimeters. This is a medium frame. The total cost for 12 frames is $282.00 Enter the length of the frame in cm: 30 Enter the width of the frame in cm: 30 The area of your frame is 900 square cm. Sorry, we cannot make frames that large
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
