VB/C#

Need Help in Visual Basic and C# Assignments?
We can help you if you are having difficulty with your Visual Basic Assignment. Just email your assignments at support@assignmentcache.com.
We provide help for students all over the world.

Items 21 to 30 of 170 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Grid  List 

Set Descending Direction
  1. POS 409 Week 4 Display Employees

    POS 409 Week 4 Employees C# Program

    Regular Price: $15.00

    Special Price: $12.00

    POS 409 Week 4 Employees C# Program


    Create a class called Employee that will include the attributes of all employees of your organization. Include at least five attributes. If you are not currently working, you may use a fictional organization or one with which you are familiar.


    Add a second class that inherits from the Employee class and describes a subgroup of employees. For example, you may define the class as Managers. In the case of city employees, you may define the class as Police Officers. Define at least three attributes that are specific to this subclass.


    Design, implement, test, and debug a C# program that asks the user to enter attributes for members of the subclass on a single form. The entries will include fields for the attributes of the main Employee class as well as the subclass. Include a second form that will display a cumulative list of all the employee data that the user has entered.


    Add a button that will exit the program.
    you name, date, project description and class must be in the code as comments (similar to an APA title page).
    Your project must be properly documented (describe the use of variables, describe how a function or routine works, use proper naming conventions for variables and labels)


    Zip all files of the project together and submit the zipped file.

    Learn More
  2. CIS 170 Week 5 iLab 5 of 7 Tournament Stats

    CIS 170 Week 5 iLab 5 of 7 Tournament Stats and Alphabetical Order Program

    Regular Price: $15.00

    Special Price: $12.00

    CIS 170 Week 5 iLab 5 of 7 Tournament Stats and Alphabetical Order Program


    Part A: Tournament Stats


    Requirements
    Your mission: Write a program to determine statistics for a video game tournament. The user will input names and scores of all tournament players. The program will calculate the average score and display the players who scored below average.


    The program will implement these functions:
    • Main(): Declares variables for the number of players and average score, and two arrays of size 100: one to store player names and the other to store their respective scores. Calls the following functions in sequence, passing necessary parameters by reference:
    InputData( ): Gets player names and scores from the user and stores them into the two arrays for an unknown number of players up to 100.
    DisplayPlayerData(): Displays each player’s name and score.
    CalculateAverageScore( ): Calculates the average score and returns it by value.
    DisplayBelowAverage( ): Displays the names and scores of players who scored below average.


    Sample output:
    Enter Player Name (Q to quit): Bob
    Enter score for Bob: 3245
    Enter Player Name (Q to quit): Sue
    Enter score for Sue: 1098
    Enter Player Name (Q to quit): Dave
    Enter score for Dave: 8219
    Enter Player Name (Q to quit): Pat
    Enter score for Pat: 3217
    Enter Player Name (Q to quit): Q


    Name Score
    Bob 3245
    Sue 1098
    Dave 8219
    Pat 3217


    Average Score: 3944.75
    Players who scored below average


    Name Score
    Bob 3245
    Sue 1098
    Pat 3217


    Press any key to continue . . .
    Tips
    Best practices: Don’t try to write too much at a time! First, write an outline in comments based on the requirements and the pseudocode. Then, implement each function one at a time. Start each by writing a shell that just accepts data and perhaps prints it out for testing purposes. Test by calling the function from Main(). Then, add more functionality. Keep working incrementally, compiling and testing as you go. Set breakpoints and use the debugger at each phase to make sure your logic is working correctly. Then, use the same approach to implement each of the other functions.
    Pseudocode
    • Main Function
    Declare player and score arrays, and variables for number of players and average score.
    Call the InputData( ) function, passing arrays and number of players variable by reference
    Call the DisplayPlayerData( ) function, passing arrays and number of players variable by reference
    Call the CalculateAverageScore( ) function, passing arrays and number of players by reference. Store returned value in average variable.
    Display the average score
    Call the DisplayBelowAverage( ) function, passing arrays and number of players variable by reference, passing average variable by value


    • InputData function
    Loop while the number of players is less than the length of the array
    Prompt for the player’s name
    If the user entered Q, break out of the loop
    Prompt the user for the player’s score
    Add 1 to the number of players


    • DisplayPlayerData function
    Loop to display the name and score of each player


    • CalculateAverageScore function
    Loop to add up the scores
    Divide by the number of players to calculate the average score
    Return the average score to main


    • DisplayBelowAverage function
    Loop to display the names and scores of all players who scored below the average score


    END OF PART A



    Part B: Alphabetical Order
    Requirements
    Your mission: Write a program to alphabetize a list of last names. The user will input an undetermined number of last names. The program will display the number of names entered and alphabetized lists of the names in ascending (A-Z) and descending (Z-A) order.


    Your program will store the names in an ArrayList object. It will use various ArrayList properties and methods to implement the program requirements.
    Sample output:


    Enter a last name: Roberts
    Keep going? (Y/N): y
    Enter a last name: DeLay
    Keep going? (Y/N): y
    Enter a last name: Foreman
    Keep going? (Y/N): y
    Enter a last name: Ganguly
    Keep going? (Y/N): n
    4 last names entered


    Names in Ascending Order
    DeLay
    Foreman
    Ganguly
    Names in Descending Order
    Roberts
    Ganguly
    Foreman
    DeLay


    Tips
    Best practices: Don’t try to write too much at a time! First, write an outline in comments based on the requirements and the pseudocode. Then, work on instantiating an ArrayList object, followed by implementing the loop that will get user input. As always, keep things simple and implement incrementally. Review the list of ArrayList methods and properties in the textbook and experiment with the ones you think you’ll need.
    Pseudocode
    • Main function
    • Instantiate ArrayList object
    • Loop to get last names, until user wants to quit
    o Add each last name to the ArrayList
    • Display the count of the last names
    • Sort the ArrayList
    • Loop to display the names
    • Reverse the order of the ArrayList
    • Loop to display the names
    END OF LAB

    Learn More
  3. POS 409 Week 5 Database Application

    POS 409 Week 5 Database Application

    Regular Price: $20.00

    Special Price: $15.00

    POS 409 Week 5 Database Application


    Build a SQL Server database in your Visual Studio project. Add a table in the database using the properties of the classes you defined in Week Four as your fields. Populate the table with at least five records. The table can be manually populated within Visual Studio instead of populated in a programmatic manner.


    Design, implement, test, and debug a C# program to access the database and display the entries in a DataGridView. As with prior weeks, remember to utilize the concepts described in the weekly reading to complete the project. The type of application to be developed is a Windows Forms application.


    Use SQL to create two queries in the table adapter on the form. For the first query, sort the data in the DataGridView by one of the fields in the table. Create a button on the form to execute the query to sort the data. For the second query, use one of the fields on the form in a Where clause to only display a subset of data in the DataGridView. For example, if one of the fields in the table is QuantityOnHand, you could have the query display only records where QuantityOnHand is greater than a particular amount. Create another button on the form to execute the query to display a subset of the data using the second query.


    Include identifying information in the form of block comments at the top of each class in the project (programmer name, date, program description). Include adequate comments throughout the program, utilize meaningful names for controls, variables, fields, and forms. Include white space for readability purposes in the code. The focus of the project is on learning the C#.Net syntax. However, ensure the form is simple and easy to understand for the user. Refer to the Individual Assignment grading form to view grading criteria.


    Zip the files of the project together and submit the zipped file. Include the database in your zip file also.

    Learn More
  4. CIS 115 Week 7 Lab Sales Tax

    CIS 115 Week 7 Lab - Sales Tax

    Regular Price: $15.00

    Special Price: $12.00

    CIS 115 Week 7 Lab - Sales Tax


    Scenario
    Your algorithm will write two functions called ComputeTotal() and ComputeTax().
    ComputeTotal() will receive the quantity of items purchased, and the unit price of each item. It will return the total sales (quantity times price).
    ComputeTax() will receive total sales as a number and the state as a string and return the amount of tax depending on the state. NJ requires 7% tax, FL requires 6% tax, and NY has 4% tax.
    The main program will ask for the name of the customer as well as one of the three states listed above. It will ask for the number of items sold and the unit price of the item.
    Main will then call ComputeTotal(), passing the quantity and unit price. Main will then call ComputeTax(), passing the state and the amount of sales and receive back the tax. Finally Main() will print out the total sales, the tax amount, and the total with taxes. For example, see below.
    Input Example:
    Enter the name of the customer: Jack
    In which state (NY / NJ / FL): NJ
    How many items were purchased: 3
    What was the unit price of the items: 1.50


    Corresponding Output Example:
    The total sales for Jack are $4.50
    The tax amount is $0.32 based on a tax rate for NJ
    The total with taxes is $4.82


    Make sure you save the return values into an appropriate variable.


    Be sure to think about the logic and design first (IPO chart, pseudocode, and flowchart), then code the Visual Basic program.
    See list of required steps and grading rubric on next page…


    Rubric
    Point distribution for this activity:
    Sales Tax
    Document Points possible Points received
    Variable list 5
    IPO chart 10
    Hierarchy chart & Flowchart 15
    Pseudocode 10
    Working program 20
    Total Points 60


    1) Variable List
    List all of the variables you will use and make sure those variable names are valid. Indicate whether the data type is string, integer, decimal, etc.


    2) IPO Chart
    List the inputs, processes/calculations, and the outputs. Use the same valid variable names you used in Step 1.


    3) Hierarchy chart & Flowchart
    Use MS Visio to create a hierarchy chart and a flowchart. Paste the charts here. Use the same valid variable names you used in Step 1.


    4) Pseudocode
    Describe your solution using pseudocode. Use the same valid variable names you selected in Step 1.


    5) Visual Basic Code
    Screen Shot of Running Program


    Copy/paste your Visual Basic code here.
    Paste a screenshot of the complete working program here.

    Learn More
  5. Penn Foster Graded Project 03784300 GroceryApp Basket Details

    Penn Foster Graded Project 03784300 Windows Forms and Applications

    Regular Price: $20.00

    Special Price: $15.00

    Penn Foster Graded Project 03784300 Windows Forms and Applications


    OVERVIEW
    This project will assess your understanding of accessing files, using data-bound controls, and deploying your application.
    Make sure that you follow all directions completely and verify your results before submitting the project. Remember to include all required components in your solution.


    YOUR PROJECT
    In the graded project for Lesson 4, you added the GroceryItemForm to the GroceryApp project. In this project, you’ll
    - Add functionality to save and load saved grocery basket files
    - Display the contents of the basket using the data-bound control DataGridView
    - Add a form to the project to display grocery items in the basket
    - Locate and share your application assembly with your instructor
    Note: This project is the last graded project based on this scenario. You’ll be graded on the end-user functionality, so variable names and other code conventions are your choice, but the application must behave as expected.


    INSTRUCTIONS
    1. In Visual Studio, load the GroceryApp project that you completed in Lesson 4.
    2. Open the GroceryItemForm.vb file.
    3. Add the options &Save and &L oad to the Application menu above the Exit option. You can add the Save and Exit options to the Application menu underneath Exit and then click and drag them above it.
    4. Add the OpenFileDialog and SaveFileDialog components to the Windows form.
    5. In the Click event for the Save option, prompt the user for a file location and store the basket as a text file. Recall that grocery items are stored in the basket variable.
    Hint: You could use a CSV file similar to a flat-file database, like the example in Section 2 of Lesson 5.
    6. In the Click event for the Load option, prompt the user for a file location and load the contents of the text file into the basket. Make sure you empty the basket first.
    Hint: You could use the Split method in the String class to break each line into individual array items. See the MSDN Library at http://tinyurl.com/3odx56 for more details.
    7. Save your work and test the application.
    a. Add some items to the basket and save them.
    b. Then attempt to load them again.
    c. Click on the View option in the Basket menu to see the basket contents. You will modify how this menu option works in the concluding steps.
    8. Add a new form to the project named BasketDisplayForm.
    a. Set the Text property to Basket Contents.
    b. Set the Size property to 600, 300.
    9. Add a DataGridView control named viewBasket.
    10. Set the Dock property of the DataGridView control to Fill.
    11. In the Load event of the BasketDisplayForm, add the following code to display the basket contents in the DataGridView control:
    viewBasket.DataSource = basket
    Notice how simple it is to perform data-binding with collections.
    12. Go back to the code view of GroceryItemForm.
    13. Replace the content of the ViewToolStripMenuItem_Click event handler, so that it loads and displays the BasketDisplayForm modally.
    Hint: You don’t have to worry about the basket variable, because the BasketDisplayForm handles data-binding in its Load event.
    14. Save and run the application. Verify that all controls and menus work correctly. You’ll submit the compiled application for this project.


    SUBMISSION GUIDELINES
    You’ll submit the GroceryApp.exe file for your project. To find this file, you should go to directory where you saved the GroceryApp project. To open the project directory, right-click on GroceryApp in the Solution Explorer panel and choose the Open Folder in File Explorer option in the context menu.
    Go to the bin\Debug folder and copy the GroceryApp.exe file to your desktop or any other temporary location. You should make sure the GroceryApp.exe file executes before submission. You can double-click on it without using Visual Studio for testing.


    GRADING CRITERIA
    Your project will be graded using the following rubric:
    The Save menu option performs the correct behavior 30 points
    The Load menu option performs the correct behavior 30 points
    The View menu option performs the correct behavior 15 points
    The BasketDisplayForm is laid out correctly 15 points
    The compiled application is included and runs 10 points
    TOTAL 100 points

    Learn More
  6. Penn Foster Graded Project 03784200 GroceryApp

    Penn Foster Graded Project 03784200 Graphical User Interface Design for Windows Forms

    Regular Price: $20.00

    Special Price: $15.00

    Penn Foster Graded Project 03784200 Graphical User Interface Design for Windows Forms


    OVERVIEW
    You now have the basic GUI skills to make the GroceryApp project a multiple-form application. This project will assess your understanding of using controls, menus, and handling multiple forms. Make sure that you follow all directions completely and verify your results before submitting the project. Remember to include all required components in your solution.


    YOUR PROJECT
    In the graded project for Lesson 3, you added grocery classes to the GroceryApp project. In this project, you’ll add a form with controls and menus to allow users to add grocery items to the shopping basket. You’ll also set the startup form and manage the login form.
    Note: You’ll use the output of this project in the graded project for Lesson 5.


    INSTRUCTIONS
    1. In Visual Studio, load the GroceryApp project that you completed in Lesson 3. If this is not available, then you will need to ask your instructor for the finished Lesson 3 project.
    2. Add a new form to the project named GroceryItemForm.
    3. Add controls to GroceryItemForm to the layout shown
    This form contains two menus, four Label controls, two TextBox controls, a NumericUpDown control, a ComboBox control, a GroupBox component, a RichTextBox control, and a Button control.
    Note: See Assignment 10 in Lesson 4 for how to lay out controls.
    1. Modify the design-time properties of the form and its controls using the information in Table 3.
    2. Add the option E&xit to the Application menu.
    3. Add the options A&dd and &View in the Basket menu.
    4. Save your work on GroceryItemForm.vb.
    5. Open the design view of LoginForm.vb.
    6. Set the AcceptButton and CancelButton properties on LoginForm to the buttons btnLogin and btnCancel, respectively.
    7. Set the PasswordChar property to * on txtPassword.
    8. Set the TabIndex property for the two TextBox controls to 0 and 1, respectively.
    9. In the Click event of btnCancel button, end the application.
    10. Save these changes on LoginForm.vb.
    11. Open GroceryItemForm.vb.
    12. In the form’s Load event, display the login form modally and exit the application.
    13. In the Click event of the btnAddToBasket button, perform the following steps:
    a. Create a GroceryItem object using the values from the controls and add it to the basket variable.
    Note: Remember the basket variable is the GroceryBasket collection.
    b. Verify all controls except txtScanNumber contain a value.
    c. Set the value of the txtScanNumber control using the following code:
    t xt ScanNum ber. Text = _txtBrandName.Text.Substring(0,3) & "1019"
    d. Instantiate the GroceryItem class, using the control values.
    e. Use the following expression to set the Aisle property. The expression converts the text into an Aisle enumeration.
    [Enum].Parse(Get Type(Aisle), cboAisle.Text )
    f. Add the GroceryItem object to the basket variable.
    14. In the Click event of the Exit menu item, end the application.
    15. Have the btnAddToBasket_Click method handle the Click event of AddToolStripMenuItem as well.
    16. In the Click event of the View menu item, display all of the items in the basket variable in an informational message box. You need only display the Aisle, ScanNumber and BrandName properties.
    17. Set GroceryItemForm as the startup form.
    18. Save and run the application. Verify that all controls and menus work correctly.
    Note: You don’t need to login successfully to test the application. If you click the Close button in the top right corner of the login form, you can skip the login process. This is by design in this case, but in a real-world application, this would be considered a serious security breach.
    19. Test your work.


    SUBMISSION GUIDELINES
    To submit your project, you must provide the following files:
    - LoginForm.Designer.vb
    - GroceryItemForm.vb
    - GroceryItemForm.Designer.vb


    PREPARE YOUR FILES
    To find these files, go to directory where you saved the GroceryApp project. To open the project directory, right-click on GroceryApp in the Solution Explorer panel and choose the Open Folder in File Explorer option in the context menu Figure 45.
    Copy the LoginForm.Designer.vb, GroceryItemForm.vb and GroceryItemForm.Designer.vb files to your desktop or any other temporary location.


    GRADING CRITERIA
    Your project will be graded using the following rubric:
    The GroceryItemForm contains the required controls and layout 40 points
    The GroceryItemForm contains the required application logic 20 points
    The LoginForm has been modified correctly 10 points
    All source code files are included 30 points
    TOTAL 100 points

    Learn More
  7. Penn Foster Graded Project 03784100 GroceryApp

    Penn Foster Graded Project 03784100 Object-Oriented Programming Fundamentals

    Regular Price: $15.00

    Special Price: $12.00

    Penn Foster Graded Project 03784100 Object-Oriented Programming Fundamentals


    OVERVIEW
    You now have the requisite OOP knowledge to expand the logic in the GroceryApp project. This project will assess your ability to create and use classes, collections, enumerations, and runtime exceptions. Make sure that you follow all directions completely and verify your results before submitting the project. Remember to include all required components in your solution.


    YOUR PROJECT
    In the graded project for Lesson 2, you implemented the login process for a Windows Forms application in Visual Studio. In this project, you’ll add exception handling to that login process. You'll also create a class to represent a grocery item and a custom collection class to represent a grocery basket.
    Note: The output of this project will be used in the graded project for Lesson 4.


    INSTRUCTIONS
    1. In Visual Studio, load the GroceryApp project that you completed in Lesson 2.
    2. Add a new class named LoginException to the project.
    3. Make the LoginException class a custom exception by deriving from the Exception class. See the last assignment in Lesson 3 for an example.
    4. In the Login procedure of the Main module, replace the two lines that read MessageBox.Show("Incorrect password.") with the following code:
    Throw New LoginException
    5. Save your work and debug the application. What happens now when you type in an incorrect password for a valid username?
    6. Stop debugging the application. You’ll now add exception handling code.
    7. Add a Try...Catch statement for the following line in the btnLogin_Click event handler procedure:
    Main.Login(txtUsername.Text, txtPassword.Text)
    8. Add the following line to the Catch block:
    MessageBox.Show("Incorrect password. ")
    9. Save your work and debug the application. It should perform the same action as before.
    10. Add a new public class to the project named GroceryItem.
    11. The GroceryItem class should contain the following public properties:
    a. ScanNumber - Represents the unique serial code for the item on the shelf. This property should be read-only.
    b. BrandName - The name as described on the item’s packaging
    c. Description - A short description of the item
    d. Price - The amount of money it costs to buy the item. Make sure that only positive values can be assigned to this property.
    e. Aisle - This should indicate one of the following aisles: Bakery, CannedGoods, Drinks, Deli, DryGoods, FrozenFoods, and Produce.
    Note: See the second assignment in Lesson 3 for how to create an enumeration.
    12. The GroceryItem class should contain the following public constructors:
    a. A constructor that accepts and sets only the ScanNumber property. Remember: If a property is read-only, then you’ll need to set the variable, not use the property name.
    b. A constructor that accepts and sets the ScanNumber, BrandName and Price properties.
    13. Add a new public class named GroceryBasket to the project.
    n Derive from the generic List class.
    n Ensure that only GroceryItem objects are stored as items.
    14. Add the following variable declaration to the Main module:
    Friend basket As New GroceryBasket
    15. Test your work.
    Note: You can add code to the btnLogin_Click event handler procedure to instantiate the GroceryItem class and add multiple objects to the GroceryBasket variable. Make sure you either remove or comment out this code after testing.


    SUBMISSION GUIDELINES
    To submit your project, you must provide the following five files:
    - Main.vb
    - LoginException.vb
    - LoginForm.vb
    - GroceryItem.vb
    - GroceryBasket.vb
    To find these files, you should go to directory where you saved the GroceryApp project. To open the project directory, right-click on GroceryApp in the Solution Explorer panel and choose the Open Folder in File Explorer option in the context menu.
    Copy the Main.vb, LoginForm.vb, LoginException.vb, GroceryItem.vb and GroceryBasket.vb files to your desktop or any other temporary location.


    Grading Criteria
    Remember to follow directions and good OOP principles as described in Lesson 3.
    Your project will be graded using the following rubric:
    The LoginException class is defined correctly 20 points
    The Login button correctly uses a Try...Catch statement 20 points
    The GroceryItem class is defined correctly 20 points
    The GroceryBasket class is defined correctly 20 points
    All source code files are included 20 points
    TOTAL 100 points

    Learn More
  8. Penn Foster Graded Project 03784000 GroceryApp

    Penn Foster Graded Project 03784000 Data Types and Application Logic

    Regular Price: $15.00

    Special Price: $12.00

    Penn Foster Graded Project 03784000 Data Types and Application Logic


    OVERVIEW
    You're ready to add further functionality to the GroceryApp project. This project will assess your understanding of using variables, arrays, modules, and procedures. Make sure that you follow all directions completely and verify your results before submitting the project. Remember to include all required components in your solution.


    YOUR PROJECT
    In the grade project for Lesson 1, you created a login form using a Windows Forms Application project in Visual Studio. In this project, you’ll implement the login process.
    Note: The output of this project will be used in the graded project for Lesson 3.


    INSTRUCTIONS
    1. In Visual Studio, load the GroceryApp project that you completed in Lesson 1. If this is not available, then you will need to ask your instructor for the finished Lesson 1 project.
    2. Add a new module to the project.
    a. Right-click the project name in Solution Explorer and choose Add > Module... or choose the Add Module... option in the PROJECT menu.
    b. Type the name Main.vb in the Name text box at the bottom (Figure 22).
    c. Click the Add button.
    3. In the Main module, you will perform the following actions.
    a. Declare a Boolean variable named blnLoggedIn.
    b. Declare two String arrays named arrUsernames and arrPasswords.
    c. Declare a subroutine named Login that accepts two String parameters named username and password.
    d. Declare two functions named VerifyUsername and VerifyPassword. The VerifyUsername function should accept a String parameter named username and return a Boolean value. The VerifyPassword function should accept a String parameter named password and return a Boolean value.
    When this task is completed, the source code editor should contain the code shown in Figure 23.
    4. Save your work.
    5. Use the values Admin, Clerk, and Manager as items in the arrUsernames array. Use the assignment operator and curly braces to modify the declaration as follows:
    Dim arrUsernames() As String = {"Admin", "Clerk", "Manager"}
    6. Use the values P@ssword, pa$$word, and passw0rd as items in the arrPasswords array. Use the assignment operator and curly braces to modify the declaration as follows:
    Dim arrPasswords () As String = {"P@ssword" , "pa$$word" , "passw0rd" }
    7. In the Login subroutine, make sure that the username and password arguments are valid and match.
    a. Set the blnLoggedIn variable to False. This is to ensure that previous attempts are overwritten.
    b. Use an If...Else statement. Using the logical operator And, combine the return value from calling the VerifyUsername and VerifyPassword functions.
    c. If the username and password arguments are valid, then make sure the value in the arrUsernames array matches the value in the arrPasswords array.
    d. If the correct password is specified for the username, then set the blnLoggedIn variable to the value True. If not, then display an error message box.
    e. When the task is complete, the Login function should be defined as follows:
    Sub Login(username As String, password As String)
    blnLoggedIn = False
    If VerifyUsername(username) And VerifyPassword(password)
    Then
    'Find index for username
    Dim userIndex As Integer
    For loopIndex = 0 To arrUsernames.Length - 1
    If arrUsernames (loopIndex) = username Then
    userIndex = loopIndex
    Exit For
    End If
    Next
    'Check for password match
    If arrPasswords (userIndex) = password Then
    blnLoggedIn = True
    Else
    MessageBox.Show("Incorrect password.")
    End If
    End If
    End Sub
    8. Using what you know about search arrays, implement the VerifyUsername and VerifyPassword functions. They should return true if the username or password is found in the arrUsernames or arrPasswords array, respectively.
    9. Save your work.
    10. In the LoginForm.vb, find the subroutine btnLogin_Click.
    a. You can either right-click on the LoginForm.vb file in Solution Explorer and choose the View Code option in the context menu or double-click on the LoginForm.vb file in Solution Explorer and doubleclick on the Login button on the form.
    b. Navigate to the btnLogin_Click subroutine.
    11. Modify the contents of the btnLogin_Click button.
    a. Call the Login subroutine in the Main module
    b. Use the blnLoggedIn variable to determine whether to display the message box.
    c. The btnLogin_Click subroutine should resemble the following:
    You should get an error message using the blnLoggedIn variable. In the next lesson, you’ll be introduced to access modifiers, but for right now, just know that you need to change the Dim keyword to Friend.
    12. Open the Main.vb file and modify the blnLoggedIn declaration as follows:
    Friend blnLoggedIn As Boolean
    13. Save your work and debug the application. See what happens when you type in an incorrect username andpassword.
    14. Make sure the application works as intended.
    Main.Login(txtUsername.Text , txtPassword.Text)
    If Main.blnLoggedIn Then
    MessageBox.Show("Thank you for logging in, " & txtUsername.Text , "Logged In. ")
    Me.Close()
    End If


    SUBMISSION GUIDELINES
    To submit your project, you must provide the following two files:
    - Main.vb
    - LoginForm.vb
    To find these files, you should go to directory where you saved the GroceryApp project. To open the project directory, right-click on GroceryApp in the Solution Explorer panel and choose the Open Folder in File Explorer option in the context menu (Figure 24).
    Copy both the Main.vb and LoginForm.vb files to your desktop or any other temporary location.


    Your project will be graded using the following guidelines:
    The code contains the correct
    variables and procedures 60 points
    The logic of the procedures is correct 20 points
    The Login button works as expected 10 points
    Both source code files are included 10 points
    TOTAL 100 points

    Learn More
  9. Penn Foster Graded Project 03783900 GroceryApp

    Penn Foster Graded Project 03783900 Visual Basic and the Visual Studio Environment

    Regular Price: $12.00

    Special Price: $10.00

    Penn Foster Graded Project 03783900 Visual Basic and the Visual Studio Environment


    OVERVIEW
    Now you're ready to work on your first Visual Studio solution. This project will assess your understanding of Visual Basic and the Visual Studio Environment. Make sure that you follow all directions completely and verify your results before submitting the project. Remember to include all required components in your solution.


    YOUR PROJECT
    For your first project, you'll create a login form using a Windows Forms Application project in Visual Studio. The login form will prompt the user for a username and password. This form is a high-fidelity prototype that will provide a default message if the user clicks the OK or Cancel buttons.
    Note: The output of this project will be used in the graded project for Lesson 2.


    INSTRUCTIONS
    1. In Visual Studio, create a new Windows Forms Application project named GroceryApp. Review the Try It Out exercises in Chapter 1 of your textbook if you need a reminder of how to perform this step.
    2. Rename Form1.vb to LoginForm.vb. You can use either the Properties panel or right-click Form.vb in the Solution Explorer panel and choose the Rename option.
    3. Add two Label, two TextBox, and two Button controls to Form1.
    4. Modify the design-time properties of the form and its controls using the information in Table 1.
    Table 1
    LoginForm Text Please Login
    LoginForm Size 300,125
    Label1 (Name) lblUsername
    Label1 Text Username:
    Label2 (Name) lblPassword
    Label2 Text Password:
    TextBox1 (Name) txtUsername
    TextBox2 (Name) txtPassword
    Button1 (Name) btnLogin
    Button1 Text Login
    Button2 (Name) btnCancel
    Button2 Text Cancel
    5. Move the controls to resemble the layout in Figure 16.
    6. In the Click event handler for the btnLogin control, add the following statement:
    MessageBox.Show("Thank you for logging in, " & txtUsername.Text , "Logged In. ")
    7. In the Click event handler for the btnLogin control, add the statement Application.Exit() to close out of the application.
    8. Save your work and debug the application.
    9. Make sure the application works as intended.


    SUBMISSION GUIDELINES
    To submit your project, you must provide the following two files:
    - LoginForm.vb
    - LoginForm.Designer.vb
    To find these files, go to directory where you saved the GroceryApp project. To open the project directory, right-click on GroceryApp in the Solution Explorer panel and choose the Open Folder in File Explorer option in the context menu (Figure 17).
    Copy both the LoginForm.vb and LoginForm.Designer.vb files to your Desktop or any other temporary location.


    Your project will be graded using the following rubric:
    All controls have correct properties set 70 points
    The Login button displays the correct message box 10 points
    The Cancel button closes out of the application 10 points
    Both source code files are included 10 points
    TOTAL 100 points

    Learn More
  10. POS 408 Week 5 Verion 6 Simple Customer Relationship System

    POS 408 Week 5 Version 6 Simple Customer Relationship System

    Regular Price: $30.00

    Special Price: $20.00

    POS 408 Week 5 Version 6 Simple Customer Relationship System


    Objectives:
    For your Learning Team Final Project, your team plays the role of a consulting company that specializes in rapid application development. A client company wishes to improve their customer data and interactions records. You will create a simple customer relationship system for the organization.


    Use your own organization as a model or an organization with which you are familiar, if possible. Alternatively, you may use a Virtual Organization or a fictitious company.


    In Week Five, the team should have completed building the Visual Basic® application.


    The milestones for the Learning Team Final Project are as follows:
    Week Two
    Design the features of this Visual Basic® application, and mock up a user interface.


    Week Three
    Identify the data type and data range of every data element used in the Visual Basic® application.


    Week Four
    Write the data entry related feature of the Visual Basic® program.
    Design a database in preparation for the program next week.


    Week Five
    Complete the Visual Basic® program by adding a feature to read from and write to a database.

    Learn More

Items 21 to 30 of 170 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Grid  List 

Set Descending Direction