Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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
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