Question: Part #4 (20 points) Write a java application to store information about N Product objects; N is the first input by the user. The user
Part #4 (20 points)
Write a java application to store information about N Product objects; N is the first input by the user. The user should specify the type of each Product object (1- for LocalProduct and 2- for ImportedProduct), and input the corresponding values using a Scanner object to initialize the objects. (8 points)
Then the program should output the following information (using JOptionPane methods):
- Total price of all products (3 points)
- Names of suppliers of all type 1 local products (3 points)
- Country of origin of all imported products (3 points)
- Information about all products imported from France (3 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
