if (noGadgets == 1 && noGadgets <= 500) {
premium = 4.99;
}


If it is equal to 1, it will always be less than or equal to 500.

if (noGadgets == 1 && noGadgets > 500 && mostExpensive <=...