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

  A new business for a new environment the geek squad gives

a new business for a new environment. the geek squad provides help for all computing needs and is impacted by the

  You work for mit consulting a leading it project consulting

you work for mit consulting a leading it project consulting company. your expertise is in project management scoping a

  What are the ways a device can become infected

The spread of the mobile viruses has been slow since the mobile devices lack a prevalent OS like PCs and Windows. As mobile communications become more prevalent, so does the onslaught of viruses.

  Performance clause in the license agreement

Explain why is it significant to have the performance clause within the license agreement?

  Questionassume a client host m wants to obtain secure

questionassume a client host m wants to obtain secure connections with a web server n. they use the certificate

  Write down a perl program that given a dna string prints

write a perl program that given a dna string prints out the 20 characters upstream of the start codon atg. that is

  Key elements of an entry strategy

Write down the key elements of an entry strategy, especially for the high-tech environment? The answer requires to be of at least 300 words. Also include any references

  Develop a marie program that will input a variable number

Develop a MARIE program that will input a variable number of user entered Decimal whole number grades, validating each one (0-100) in a subroutine. If the input is invalid just terminate the input loop.

  What are the kinds of information systems

What are the kinds of information systems

  Program on wireless connection technology

Program on wireless connection technology.

  Explain about doing ethics technique

The Doing Ethics Technique (DET), ensuring you address each of the DET questions and relating specific clauses from this code to the ethical issue/s, you have identified.

  Describe two companies with a global presence

I want to construct a PowerPoint Presentation identifying, comparing, and contrasting the IT governance structure for two major companies with a global presence.

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