Pro Par Can
![]() American DJ 64 P LED Pro PAR Can 889406799554 US $169.99
|
![]() American DJ PRO38B LED RC PAR Can 886830073090 US $75.00
|
![]() American DJ PRO38B LED RC PAR Can 886830073106 US $127.49
|
![]() American DJ 64 LED Pro Par Can Chrome US $199.99
|
| Powered by phpBay Pro |

JCreator Pro v5.00 help with "switch"?
for my java homework, I have to create a program that says what your score's name is in golf for a par 5 hole when you type in the number of strokes you took.
I'm not allowed to use any "if" or "else if" statements, only switch, case, default, and break.
I'm not allowed to use applets nor am i allowed to use JOptionPane.
that being said, can anyone PLEASE help me out here, and either explain it to me, or write in a response a working code. please and thanks:)
I'll sketch this out:
diff = score - par;
switch(diff)
{
case -2:
strscore = "eagle";
break;
case - 1:
strscore = "birdie";
break;
case 1:
strscore = "bogie";
break;
case 2:
strscore = "double bogie";
break;
default:
strscore = "par";
break;
}
Items Recently Purchased From This Site:
| Powered by phpBay Pro |
Leave a Reply
You must be logged in to post a comment.




























































