This week's book giveaway is in the JavaScript forum.We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
programming forums Java Java JSRs Mobile Certification Databases Caching Books Engineering Languages Frameworks Products This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Sheriffs:
Saloon Keepers:
Bartenders:

B Taylor
Greenhorn
Posts: 5
Hi everyone,
I have created separate four class:
and I want to setup a main menu, so if a user press 1, then it goes to the Annulus Class, if a user press 2, it goes to Diameters Class and if a user press 3, it goes to the Circumference class.
I've spent all day trying to figure it out how I can set up a menu. I've attach my work what I've done so far. I'm not sure how I can finish off this? Can you help me please?
Many thanks!

[ November 04, 2002: Message edited by: B Taylor ]

Sayed Ibrahim Hashimi
Ranch Hand
Posts: 148
Hi, what do you mean "goes to.."? If the user presses 1(or 2...) exactly what are you expecting to happen?
The other thing explain the classes a little better, like are they related? Do they share the same interface, etc. If we have a better idea of your problem, then we can help better.

B Taylor
Greenhorn
Posts: 5
To explain further, with the other three classes are different calculation.
First class performs the area of an annulus if the inside and outside radii of the annulus are given
Second class performs the area of an annulus if the inside and outside diameters of the annulus are given

Third class performs the area of an annulus if the inside and outside circumferences of the annulus are given
The three class is like a program, and that's what I am looking for, when a user press 1, it takes us to the first class to perform the radii calculation.
An example of my first class is

Hope this makes sense!
Thanks
[ November 04, 2002: Message edited by: B Taylor ]
[ November 04, 2002: Message edited by: B Taylor ]