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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started