Question: Write a program to draw wine glasses separated by a blank line; there are two key parameters for this: the number of wine glasses to

Write a program to draw wine glasses separated by a blank line; there are two key parameters for this: the number of wine glasses to draw, and the size of the glasses. Define these values in main; for optional extra credit, prompt the user for the values. The program must define three methods to draw the various parts of a wine glass, the flute, the stem, and the base of the glass; each will receive the wine glass size. Drawing the glasses should be done from main by calling a fourth method, drawGlasses(number, size) have main call that at least twice with different inputs. Your methods can assume that the number of wine glasses to draw is 0 or greater, and that the size of the wine glasses is always an odd number greater than 2(in java)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!