Discount Get CIS 170A ALL WEEKS Solution ONLY $98.95 $131.93
CIS 170A Week 2 - Lab 2A - Input and Output with Variables - you ... [$15.99]
CIS 170A Week 2 - Lab 2B - You will create a program that will pr... [$15.99]
CIS 170A Week 3 - Lab 3 - Create a Windows Form application that ... [$19.99]
CIS 170A Week 4 - Lab 4 - Create a program that will calculate an... [$19.99]
CIS 170A Week 5 - Lab 5 - Hockey Player - The customer has decide... [$19.99]
CIS 170A Week 6 - Lab 6 - Create a program, using an array, which... [$19.99]
CIS 170A Week 7 - Lab 7 - Hockey Player The user shall be able to... [$19.99]
Get Selected Weeks Solution with ONLY NOT Add Selected Tutorials To Cart
CIS 170 CIS/170 CIS170 CIS170A Visual Basic Week 5 - iLab 5 - Lab 5 Hockey Player - The customer has decided that he or she wants to change the upper limits for goals, assists, and seasons
    CIS 170 CIS/170 CIS170 CIS170A Visual Basic Week 5 - iLab 5 - Lab 5 Hockey Player - The customer has decided that he or she wants to change the upper limits for goals, assists, and seasons

CIS 170 CIS/170 CIS170 CIS170A Visual Basic Week 5 - iLab 5 - Lab 5 Hockey Player - The customer has decided that he or she wants to change the upper limits for goals, assists, and seasons

$19.99

The following are the new requirements that the customer need to have.

The customer has decided that he or she wants to change the upper limits for goals, assists, and seasons. He or she wants the upper limit of the seasons to be 25, the upper limit for the goals is 70, and the upper limit for assists will be 75.

As with most programs that collect names of individuals, the full name shall be broken into two parts: the first name and the last name. Both the first and last name must contain nonempty-string values.

The customer wants to keep track of how old the player was when he or she started playing hockey, so the program shall provide a field to collect and validate the age of the player when he or she was a rookie. The starting age shall be at least 18 years old and no more than 30 years old, and the age shall be displayed as part of the summary output.

The user cannot begin to collect season data until after the first name, last name, seasons, and age are all provided and validated.

Consider using the following pseudocode as a guide in developing the main processing algorithms of the program:

Main program (button’s event handler, btnProcess_Click)

Initialize program and declare variables

If ValidateString(“First name”, Me.txtFirstName.Text, strFirstName) = False, return.

If ValidateString(“Last name”, Me.txtLastName.text, strLastName) = False, return.

If ValidateInteger(“Age”, Me.txtAge.Text, intAge, 18, 30) = False, return.

If ValidateInteger(“Seasons”, Me.txtSeasons.Text, intSeasons, 1, 25) = False, return.

Call ProduceOutput(strFirstName, strLastName, intAge, intSeasons)

ValidateString Function

Parameters: strText (ByVal), strInput (ByVal), strValue (ByRef)

Checks to see if strInput is empty

If it is, displays error message and returns False

If it’s OK, then

strValue = strInput

Returns True

ValidateInteger Function

Parameters: strText (ByVal), strInput (ByVal), intValue (ByRef), intLowValue (ByVal), intHighValue (ByVal)

Checks to see if strInput is empty

If it is, displays error message and returns False

If it’s OK, then

intValue = strInput (transformed into Integer)

Checks inValue is within acceptable range

If not, displays error message, returns False

If it’s OK, then Returns True

ProduceOutput Sub

Parameters: strFirst (ByVal), strLast (ByVal), intPlayerAge (ByVal), intNoSeasons (ByVal)

Initialize display in listbox

Loop from 1 to intNoSeasons

Accept Goals with InputBox() function --> strInput

If ValidateInteger(“Goals”, strInput, intGoals, 0, 70) = False, go back to 2.a

Accept Assists with InputBox() function --> strInput

If ValidateInteger(“Assists”, strInput, intAssists, 0, 75) = False, go back to 2.c

Accumulate intGoals and intAssists

Display season data in listbox

Finalize display of data in listbox

Note that we use Functions and Subs in the logic above, and also note that although most parameters are passed By Value, we have a couple passed By Reference.  As long as you comply with the new user requirements described above and you use good modularization of the program, you can use any modularization technique desired. However, please keep in mind that “good” modularization for this particular Lab means:

Using Function modules;

Using Sub modules; and

Using ByVal and ByRef parameters

My solution contain Visual Basic projects.

Please using Visual Studio to open this project.

If you have more question or need help, please contact me via email support@extutorials.com. I will help you any time.

Thank you !

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B