Jm sales employs five salespeople the sales manager wants

Assignment Help Computer Engineering
Reference no: EM13466707

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 amount in a one-dimensional array. The application should also display a report similar to the one shown in following figure. The report contains each sales person's ID and total sales. It also contains the total company sales.

In this assignment, you are required to complete the given incomplete application for the above scenario. The name of the solution, project, and form file are JM Sales Solution, JM Sales Project, and Main Form.vb, respectively.

The interface of this application is shown as follows:

The application includes following Function and Sub Procedures.

Function/Sub procedure

Description

exitButton_Click

Define exitButton click event.

MainForm_Load

Fills the list boxes with values and selects the first item.

addButton_Click

Define addButton click event (Accumulates the sales amounts).

salesAmtTextBox_Enter

Select existing text of the salesAmtTextBox.

salesAmtTextBox_KeyPress

Limit the input to numbers, the period, and the Backspace key for the salesAmtTextBox.

salesAmtTextBox_TextChanged

Clear the content of the salesAmtTextBox.

createButton_Click

Define createButton click event (Displays a report containing each salesperson's ID and total sales, as well as the total company sales).

You must complete the following parts in the given application.

1. Declare five- element one dimensional Integer array named sales. Use Private as the access modifier.

2. Write code to fill the idListBox list with values 101, 112, 203, 301, 302 as shown in the above figure.

3. Write code to get the value at salesAmtTextBox to the variable salesAmt.

4. Write code to get the index of selected value at idListBox to the variable salesperson.

5. Write code to add the new sales amount (value of variable salesAmt) to the relevent person's total sales amount in sales array.

Note: Use the index found in part 4 to access the corresponding element to that particular person in array sales.

6. Each salesperson's ID and total sales is display using the following loop. Fill the blanks according to the given instructions

  1. The loop should terminate when the salesperson variable value is reach to the upper bound of the array sales. Fill the termination condition of the loop.
  2. Write code to add the salesperson's total sales to the total company sales.

7. Write code to display the total company sales in reportTextBox.

Reference no: EM13466707

Questions Cloud

Describe three differences between a limited liability : question 1 in pre-trial discovery if a business does not produce incriminating e-mails the court can instruct the jury
Write down an applet which displays a 4x4 grid when the : write an applet that displays a 4x4 grid. when the user clicks on a square in the grid the applet should draw a filled
Many executives view change as purely technical or : many executives view change as purely technical or structural. do you agree with this perspective? to support your
Discuss how effectively resistance was managed throughout : discuss how effectively resistance was managed during an organizational change that you have experienced or with which
Jm sales employs five salespeople the sales manager wants : jm sales employs five salespeople. the sales manager wants an application that allows him to enter any number of sales
Some people actually state that oc is a good thing to have : answer the following two questions with a minimum of 500 words each. use an academic source for each - not our texts.
What crime was created to deal with caretakers who : what crime was created to deal with caretakers who wrongfully appropriated the money that came into their possession
Determine and discuss one approach to implementing change : identify and discuss one approach to implementing change supporting your description with a specific
Determining whether to try a child in the juvenile or the : determining whether to try a child in the juvenile or the criminal justice system will have an impact on every step

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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