أخوي انا انهيت البروجيكت بس عندي مشكله أحط أي رقم في السيرفس يحسب لي أول حاله دائماً انا كذا سويت
كود:
System.out.println("Enter 1.for Residential,2.for Commercial,3.for Governmental,4.for Agricultural,5.for Charities,6.for Private educational establishments,7. for Private health establishments");
Service = in.nextShort();
وبعدها كتبت كذا
كود:
if (Service==1)
{
if ( TotalConsumption >= 1 && TotalConsumption <= 1000 )
RatePerUnit=5;
الخ....
ونفس الشي في الحالات الثانيه للـ Service بس في النهايه في الـ output أحط أي رقم دائماً يحسب لي الحاله الأولى الي هيا Residential
ممكن مساعدة