Question: Create a ProductOrder object called prodOrder1, using default constructors. Use the setters on prodOrder1 to set the values of instance variables quantityFulfilled and quantityRequested. Prompt
Create a ProductOrder object called prodOrder1, using default constructors. Use the setters on prodOrder1 to set the values of instance variables quantityFulfilled and quantityRequested. Prompt the user to provide a value for the amount and scan this into a variable called price. Call the calculatePayments method for prodOrder1 (quantityFulfilled*price) and pass on the value of price. Print out the return value. Prompt the user to provide a new value for quantityFulfilled and use the setter on prodOrder1 to set the new value of quantityFulfilled.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
