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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!