Question: Complete and modify the following method such that it displays n to the console if n is a valid order amount. A valid number amount
Complete and modify the following method such that it displays n to the console if n is a valid order amount. A valid number amount is one that is a multiple of 5 and greater than a provided constant MIN_ORDER (assume it is defined earlier in the code). If n does not fit these conditions, the method should throw an Exception. The Exception's message should specify that the value passed as a parameter (i.e., n) is not a valid order number. public static void orderGPUs(int n)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
