Question: Here is Hourglass.java: /* Programmer: Date: Project: Bonus Lab 2.2 Hourglass File Name: Hourglass.java Program Description: Prints an hourglass of stars for a given width
Intro to Computer Science Bonus Lab 2.2 Hourglass Write a program Hourglass.java that asks the user for the width of an hourglass and prints an hourglass of stars. Force the user to enter a positive odd number so the width corresponds to a feasible hourglass Example Outputs: Enter odd integer for hourglass width:5 Enter odd integer for hourglass width:9 Enter odd integer for hourglass width:6 Enter odd integer for hourglass width:7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
