Zena Manufacturing
Zena Manufacturing has two warehouses, which the company refers to as warehouse A and warehouse B. Create an application using Visual Studio 2015, that uses two list boxes to display the IDs of the company’s products: one for products stored in warehouse A and one for products stored in warehouse B. Use the following names for the solution and project, respectively: Zena Solution and Zena Project. Change the form file’s name to Main Form.vb. The application should allow the user to enter a product ID, which will contain only letters and numbers. It then should use the Items collection’s Contain method to determine whether the ID is listed in Warehouse A list box; if it is, the application should display the letter A in the Location box. If the ID is not in the Warehouse A list box, the application should use the Contains method to determine whether it is listed in the Warehouse B list box; if it is, the application should display the letter B in the Location box. If the ID is not listed in either list box, the application should display N/A. (Hint: The syntax of the Contains method is listbox.Items.Contains(value).) Use the following IDs to fill the Warehouse A list box: AB11, HY16, JK56, MM12, PY63, PY64, AB21, and AB14. Use the following IDs to fill the Warehouse B list box: AB20, JM17, PJ23, JK52, and TR16.
Needing the layout of the user interface with the names of the labels, buttons, etc. And the code that makes the program work.
Public Class MainForm
'to search for the presence of the product in the
warehouse
Private Sub btnFind_Click(sender As System.Object, e As
System.EventArgs) Handles btnFind.Click
'if textbox value is not filled
If txtID.Text = "" Then
MsgBox("Please enter the id to find")
Else
'if value matched with warehouse a products
If lb1.Items.Contains(txtID.Text) Then
txtLocation.Text = "A"
'if value matched with warehouse b products
ElseIf lb2.Items.Contains(txtID.Text) Then
txtLocation.Text = "B"
'if value not matched with any warehouse products
Else
txtLocation.Text = "N/A"
End If
txtID.Text = ""
End If
End Sub
'for exiting the application
Private Sub btnExit_Click(sender As System.Object, e As
System.EventArgs) Handles btnExit.Click
Me.Close()
End Sub
End Class
output:
Zena Manufacturing Zena Manufacturing has two warehouses, which the company refers to as warehouse A and...
******The posted solution does not work. I have coded everything exactly the way the solution is posted here, but does not work. PLEASE HELP! These are the form element names I used. Case Projects - JM Sales, pg. 501 JM Sales employs five salespeople. The sales manager wants an application that allows him to enter any number of sales amounts for each of the five salespeople. The application should accumulate the sales amounts in a one-dimensional array. The application should...
Please solve using c++ plus There are two text files with the following information stored in them: The instructor.txt file where each line stores the id, name and affiliated department of an instructor separated by a comma The department.txt file where each line stores the name, location and budget of the department separated by a comma You need to write a C++ program that reads these text files and provides user with the following menu: 1. Enter the instructor ID...
Write a C# code for a Sales Calculator: Note: You cannot use the foreach loop in any part of this program! sales.txt file: 1189.55, 1207.00, 1348.27, 1456.88, 1198.34, 1128.55, 1172.37, 1498.55, 1163.29 The application should have controls described as follows: • A button that reads Get Sales. If the user clicks this button, the application should call a method named ProcesSalesFile. ProcessSalesFile Method: accepts no arguments and does not return anything The ProcessSalesFile Method will do the following: o Open...
Write a C# code for a Sales Calculator: Note: You cannot use the foreach loop in any part of this program! sales.txt file: 1189.55, 1207.00, 1348.27, 1456.88, 1198.34, 1128.55, 1172.37, 1498.55, 1163.29 The application should have controls described as follows: • A button that reads Get Sales. If the user clicks this button, the application should call a method named ProcesSalesFile. ProcessSalesFile Method: accepts no arguments and does not return anything The ProcessSalesFile Method will do the following: o Open...
The file Months.txt has 12 lines with each line containing one of the months of the year. Write a program that displays the months containing the letter r. The program should use a global variable months that is initialized as the empty list. The function main should call three functions, one to fill the list months with the contents of the text file, one to delete from the list months the months that do not contain the letter r, and...
Chapter 7, Problem 5PP in Starting out with Visual C# (4th Edition) World Series Champions Teams.txt - This ile contains a list of several Major League baseball teams in alphabetical order. Each team listed in the file has one the World Series at least once. WorldSeriesWinners.txt - This file contains a chronological list of the World Series' winning teams from 1903 through 2012. Create an application that displays the contents of the Teams.txt file in a ListBox control. When the...
In header file (.h) and c++ file format (.cpp). A local company has asked you to write a program which creates an Employee class, a vector of Employee class objects, and fills the objects with employee data, creating a "database" of employee information. The program allows the user to repeatedly search for an employee in the vector by entering the employee's ID number and if found, display the employee's data. The Employee_C class should have the following data and in...
Inventory ManagementObjectives:Use inheritance to create base and child classesUtilize multiple classes in the same programPerform standard input validationImplement a solution that uses polymorphismProblem:A small electronics company has hired you to write an application to manage their inventory. The company requested a role-based access control (RBAC) to increase the security around using the new application. The company also requested that the application menu must be flexible enough to allow adding new menu items to the menu with minimal changes. This includes...
is due in 2 hours so i had to repost, sorry. Create an application that allows you to manage a task list that’s stored in a database. using java and netbeans Console: Task List COMMAND MENU view - View pending tasks history -View completed tasks add -Add a task complete -Complete a task delete -Delete a task exit -Exit program Command: view 1. Buy toothbrush 2. Do homework Command: complete Number: 2 Command: add Description: Pay bills Command: view 1....