Add two classes to the Inventory Maintenance application

Assignment Help Visual Basic Programming
Reference no: EM132319749

Assignment - Use inheritance with the Inventory Maintenance application

In this exercise, you'll add two classes to the Inventory Maintenance application that inherit the InvItem class. Then, you'll add code to the forms to provide for these new classes.

1. Open the InventoryMaintenance project in the InventoryMaintenance directory. Then, review the code for the New Item form to see that the items in the combo box and the label for the combo box depend on which radio button is selected.

2. Display the InvItem Class and modify the GetDisplayText method so it's overridable.

3. Add a class named Plant that inherits the InvItem class. This new class should add a string property named Size. It should also provide a default constructor and a constructor that accepts four parameters (item number, description, price, and size) to initialize the class properties. This constructor should call the base class constructor to initialize the properties defined by that class. Finally, this class should override the GetDisplayText method to add the size in front of the description, as in this example: 3245649 1 gallon Agapanthus ($7.95)

4. Add another class named Supply that inherits the InvItem class and adds a string property named Manufacturer. Like the Plant class, the Supply class should provide a default constructor and a constructor that accepts four parameters, and it should override the GetDisplayText method so the manufacturer is added in front of the description like this: 9210584 Ortho Snail pellets ($12.95)

5. Modify the event handler for the Click event of the Save button on New Item form so it creates a new item of the appropriate type using the data entered by the user.

6. Test the application by adding at least one of each type of inventory item.

Attachment:- Assignment Files.rar

Verified Expert

The task of the assignment is to develop the VB.NET program for Inventory Maintenance application. The task of the assignment is to develop two classes namely InvItem and Plant class. The event handlers are written for the code and the code is documented with required comments and output is attached.

Reference no: EM132319749

Questions Cloud

What are the pros and cons or weaknesses of each test : Select two of the personality assessments from the Personality Tests list below. Compare the two personality assessments and respond to the following questions.
Effectiveness and usability of company : Identify and discuss five items that every e-business should consider for improving the effectiveness and usability of their company's website.
Explain one advantage of the survey method : Explain one advantage and one potential disadvantage of the survey method you proposed as it relates to your specific study idea.
Procedures relevant to managing a project : What are the procedures relevant to managing a project. Why would it be important to explain, to the project team, the requirements applicable to:
Add two classes to the Inventory Maintenance application : Use inheritance with the Inventory Maintenance application - add two classes to the Inventory Maintenance application that inherit the InvItem class
Strategic marketing-sustainability-competitive advantage : 'Inventing new knowledge is not a specialised activity...it is a way of behaving, indeed a way of being, in which everyone is a knowledge worker' (Nonaka, 1991)
Define the parametric or nonparametric statistical analysis : What factors should be considered when deciding whether to use a parametric or nonparametric statistical analysis? Identify a research question from your.
Consider supervisory or management positions : What are three specifics a GM can do to encourage talented hourly employees to consider supervisory or management positions in the hotel industry?
Describe the current stance on the aforementioned issue : In a few sentences, relate your own personal stance on your chosen issue, including how or why you came to this belief. Next, you will select a minimum of two.

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms". This assignment will contain two (2) Parts: Written Paper and Visual Basic Prototype. The Visual Basic Prototype is not included in the total page count but is included in the e..

  Visual basic programming discussion

The use of decision logic is one of the major concepts of computer programming. The decision takes your code from being sequential to one that can take various options based on the different conditions. Determine the method of coding that you would u..

  Ticketseller

Use Visual basic 2010Visual Basic,  TicketSeller. This assignment will contain two (2) Parts: Event Planning Document and Coding phase. You must submit both parts as separate files for the completion of this assignment. Remember, you are only to de..

  Data storage & "exception error trapping"

Discussion on Data Storage and  "Exception Error Trapping".

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms".

  The implementation of server side of the application

Implementation of dynamic content, server side (backend) and database for your web site using Microsoft Visual Studio 2012

  Need help building a vwd website

Need help building a VWD website. This website may not go live. I have little progress as a family tragedy has impeded my time for school.

  To develop a visual basic console application

The aim of the assessment is to develop a Visual Basic console application that performs a number of mathematical functions. The mathematics package will be menu driven, i.e. a number of options will be displayed, and the user will be able to input w..

  Program in basic which prompts user to input two integers

Write down the program by using Small Basic which prompts the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).

  Develop vb-net application that includes arrays and loops

Develop a VB.NET application that includes arrays, loops, and IF statements to do the following. Your output must also display the number of applicant(s) being interviewed.

  Visual basic program to accept numeral values

Write a VISUAL BASIC program to accept numeral values of any unit, sum up the total, calculate the average, and then Output the result with a proper unit.

  Write a visual logic program to accept series of number

Write a Visual Logic program which accepts a series of numbers, until the first negative value is entered. The maximum number of non-negative input values is 250.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd