Question: Exercise 1 [ 4 0 Marks ] Write a class called Seller that may be used to model shops with the following attributes: table
Exercise Marks
Write a class called "Seller" that may be used to model shops with the following attributes:
tableAttribute name,Stored value,DescriptionIDPNPA unique key of the sellerNamePic n pay,Name of the sellerLocationRondebosch,Location of the sellerProductMeet,The product to sellunitprice,RPrice per unitnumberofunits,Number of available units
The class will only contain instance variables well move on to constructors and methods in later assignments one per attribute. Each variable should bear exactly the same name as the attribute it models. You must choose a suitable type for each variable based on the sample values. Hint: Money and Currency from assignment
Page of
Version ::
Based on the following sample IO write a simple program called "TestSeller.java" that asks the user to input seller details as specified in the table creates a Seller object and inserts the details in the appropriate fields, then retrieves and prints out those details.
Sample IO The input from the user is shown in bold font do not program this:
note that the price has to be an instance of the Money class and not a double.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
