Question: Using C # objects and classes INSTRUCTIONS Complete the requirements of this assignmen-on your own. When you have finished, write your name on the board
INSTRUCTIONS Complete the requirements of this assignmen-on your own. When you have finished, write your name on the board to get your instructor to mark your assignment. You are encouraged to create a flowchart; without a flowchart your instructor may not provide any assistance. Step 1: Create a program named CPSC1012-Ex10-YourName Step 2: Create a class called Product, that has the following properties, and has one constructor: .Name: string Description: string Price: double Step 3: Create the method specified below: static int AddProduct (Product [] products) Input/output parameter: products (input) an empty array of Product (output) updated array of Product that includes new products added by the user Returns: How many products were added Step 4: Create the method specified below: static void DisplayProducts (Product [1 products, int productCount) Input parameters: products: an array of Product productCount: the logical size of the products array Output: The Products will be displayed (see Sample Output). Step 5: In the Main() method, provide required additional code, then call the methods in the above order
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
