Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your lucrative consulting career continues! The retail store has hired you once again - this time to convert your simple inventory program from a console

Your lucrative consulting career continues! The retail store has hired you once again - this time to convert your simple inventory program from a console interface to a Windows interface. Specifically, you are to replace the "text-based" calling program that was developed as part of assignment # 1 with a Windows graphic user interface (GUI). Program Input The input to the program will be the product id number (a 5-digit identification number), the manufacturer's id number (a 4-digit identification number), the wholesale price of the product, the mark-up percentage for the product, the description of the product, and the quantity of product in stock.

The application should display a dialog box requesting the user to enter the information for a single product. The following is an example of such a dialog box for a store which sells office supplies:

Output 1. The application should display a listing of the data for a product in the store using appropriate labels and text boxes. This listing should include the following: a. the product id number; b. the product description; c. the manufacturer's id number; d. the retail price of the product (the wholesale price increased by the mark-up percentage); e. the quantity of product in inventory. Input Output - Page 135 - Processing 1. The class variables, which represent a single product sold by the store, should include the following data members: a. the product id number integer; b. the description of the product character array; c. the manufacturer's id number integer; d. the wholesale price of the product double; e. the mark-up percentage for the product double; f. the quantity of product in inventory integer; 2. The class should have the following member functions: a. Two constructors. The first is the default, which sets all of the members of the class to zero. The second constructor should enable the user to specify all of the initial attributes of the members of the class. b. Separate functions which return the values of the members of the class. c. A function that displays the values of the members of the class to the monitor (as described in the "output" section for program #1 on page 119). d. A function that returns the class object's retail price (the wholesale price increased by the mark-up percentage).

3. A Graphical User Interface (GUI) that provides a text box for each of the input data items for the product in inventory. Two buttons should appear on the form - one which allows the user to display the information concerning the product (as described in the "output" section) and the other to exit the program. When the button is clicked to display the information concerning a product, the text in each text box should be extracted and stored in a character array. These arrays should then be converted to the appropriate data type (as described in section # 1), an object of the class should be created by calling the appropriate constructor, and the retail price of the item should be calculated using the appropriate member function for the class. Lastly, the data members for the object should be written to the appropriate output text boxes using a conversion function. Upon clicking in the first input text box, all text should be cleared from all text boxes on the form. When the button is clicked to exit the program, the program should terminate.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions