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 31 to 40 of 170 total

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

Grid  List 

Set Descending Direction
  1. CIS 115 Week 7 Exercise Modularized Code word Document

    CIS 115 Week 7 Exercise - Modularized Code

    Regular Price: $12.00

    Special Price: $10.00

    CIS 115 Week 7 Exercise - Modularized Code


    Assignment
    It’s often necessary to convert between units. In this exercise, you will create two functions for converting between units of distance. The first function will be called ConvertMilesToKilometers(), which will accept one parameter for the number of miles. It will return the equivalent number of kilometers. The second function will be called ConvertKilometersToMiles() and will accept kilometers as its parameter; this will return the equivalent number of miles.
    The main program will ask the user if he or she wants to convert miles to kilometers or kilometers to miles. It will then ask for the number of miles or kilometers. It will call the appropriate function and display the converted value. Be sure to call the correct function. Be sure to save the return value in an appropriate variable. To convert miles to kilometers, divide miles by 0.62137. To convert kilometers to miles, multiply kilometers by 0.62137.


    Examples
    Do you want to convert to Miles or Kilometers? (M or K): M
    Enter number of Kilometers: 3.5
    3.5 kilometers equals 2.174795 miles.


    Do you want to convert to Miles or Kilometers? (M or K): K
    Enter number of Miles: 4.2
    4.2 miles equals 6.759258 kilometers.


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


    Rubric
    Complete the steps, record your results in this document and submit the completed file to
    the appropriate Dropbox.
    1) Variable list
    2) IPO chart
    3) Hierarchy Chart & Flowchart
    4) Pseudocode
    5) Visual Basic code


    Modularized Code
    Document Points possible Points received
    Variable list 4
    IPO chart 4
    Hierarchy Chart & Flowchart 4
    Pseudocode 4
    Working Program 4
    Total Points 20


    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 outputs. Use the same valid variable names you used in Step 1.
    Inputs Process (calculations) Outputs


    3) Hierarchy Chart & Flowchart
    Use MS Visio to create a hierarchy chart and flowchart. Paste the hierarchy chart and flowchart 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(s) of the complete working program here.

    Learn More
  2. POS 409 Week 1 Dogs name GUI

    POS 409 Week 1 Dogs name GUI C# Program

    Regular Price: $15.00

    Special Price: $12.00

    POS 409 Week 1 Dogs name GUI C# Program


    Design, implement, test, and debug a C# program that displays a dog's name and age when a button is clicked. The type of application to be developed is a Windows Forms application.


    Create a graphical user interface (GUI) with a button labeled "Continue", a textbox labeled "Name", and a textbox labeled "Age".


    When the Continue button is clicked, the program will capture the name from the Name textbox, the age from the Age textbox, calculate the age in dog years (multiply the age by 7), and display the name and age of the pet in one label on the form (for example, "Rocky is 35 years old").


    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.

    Learn More
  3. Program 1 Review Exercise

    Program 1 Review Exercise

    Regular Price: $20.00

    Special Price: $15.00

    Program 1 is a simple review exercise.


    Construct an application that contains at least 15 DIFFERENT controls of your choosing.


    The controls must function properly.


    That is, it is not simply a matter of including the controls, they must each have at least minimum functionality.


    As part of the same application, but on a separate form, list the controls and their functionality.

    Learn More
  4. Advanced Visual Basic 2010 Student Course Collection

    Advanced Visual Basic 2010 Programming Challenge 7 Student Course Collection

    Regular Price: $20.00

    Special Price: $15.00

    Advanced Visual Basic 2010 Programming Challenge 7 Student Course Collection


    Create an application that collects information about students and the courses they have completed, and holds this information in collection, implemented as a List or ArrayList object. You can use Tutorial 3-2 as a starting point for this project. The main form, displayed when the application starts, should have the same fields as shown in the tutorial.
    A sample of the main form is shown in Figure 3-26.
    In addition, do the following:
    • Create a class named Course with the following properties: CourseId As String, Credits As Integer, Grade As Double.
    • Add a class-level variable to the Student class that holds a list of courses.
    • Create a new form named Course Information that contains the following input
    fields: course ID, credits, and grade. A sample is shown in Figure 3-27. The list box displays all courses in the student’s transcript.
    • On the main form, add a Course Information button. Use this button to display the Course Information form. The button should initially be disabled; it is enabled when the user clicks either the Add to Collection button or the Find by ID button.


    Input Requirements
    The following input requirements are designed to prevent the program from throwing an exception or storing invalid data:
    1. No two Student IDs can be the same.
    2. No input fields can be blank.
    3. The Grade field must be a positive numeric value between 0.0 and 4.0.
    4. The course credits field must be a positive integer between 0 and 6.
    5. A duplicate course number cannot be added to the list of courses.
    6. Error messages must be specific, identifying exactly which field has a missing or incorrect value.
    Each of these requirements is included in the testing steps that we have outlined for this programming challenge.


    Suggestions
    1. In the main form, create a class-level variable of type Student so it can be accessible to different event handlers. This will affect the event handlers for both the Add and Find buttons.
    2. The Student class should have a ReadOnly property that exposes its ArrayList. This will be useful when your program needs to display the courses in a list box or add a new course to the list.
    3. The Form_Load event handler for the Course Information form should fill the list box with the list of courses belonging to the current student. It should also clear all text boxes on the form.
    4. Use the ErrorProvider control to display error messages.

    Learn More
  5. POS 409 Week 4 Inheritance C# Program

    POS 409 Week 4 Inheritance C# Program

    Regular Price: $20.00

    Special Price: $15.00

    POS 409 Week 4 Inheritance C# Program


    Create a base class that will include the properties of some type of data related to the company you work for or a favorite hobby. For example, I work for a healthcare provider, so my base class might be "Medical Facility". Include at least five properties. Be creative with your classes -employee type classes are not acceptable. In addition, include data of a variety of types in your classes.


    Add a second class (derived class) that inherits from the base class and describes a subgroup of the base class. In my example, a derived class might be "Clinic". Define at least three properties that are specific to this derived class.


    Design, implement, test, and debug a C# program that asks the user to enter properties for the classes you have defined on a single form. Enhance the user interface by including two groupboxes. In the first groupbox, place the controls for the base class. In the second groupbox, place the controls for the derived class. The entries will include fields for the properties of the base class, as well as the derived class. Add a second form to your project that will display a cumulative list of all the data that the user has entered. A cumulative list means that if the user enters data for 10 clinics (in my example), then 10 clinics will be viewed on the second form. Please note that it is not acceptable to write the data gathered to a database for presentation of the data on the second form. Databases are a topic for week 5, not this week. Also note that it is not acceptable to use text files as a means of transferring data from one form to the other. Text files were used for the last two assignments, so it is time to try some new techniques. The type of application to be developed is a Windows Forms application.


    As with prior weeks, remember to utilize the concepts described in the weekly reading to complete the project.


    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.

    Learn More
  6. Advanced Visual Basic 2010 Programming Challenge 5 Client Billing

    Advanced Visual Basic 2010 Programming Challenge 5 Client Billing

    Regular Price: $15.00

    Special Price: $12.00

    Advanced Visual Basic 2010 Programming Challenge 5 Client Billing


    Write an application that tracks the amount of billable time that the user spends on consulting projects. The application reads an input client file and appends information to a billing file, which it creates the first time it runs.


    Startup Form
    Figure 1-24 shows a sample of the main window. When the user begins working on a project, the client name is selected from a ComboBox control. In Figure 1-25, the user has clicked the Start button, so the billing timer is running. Notice that the Start button is disabled. In Figure 1-26, the user has clicked the Stop button. At that moment, the application shows the amount of elapsed time and writes a record to the billing file.

    Learn More
  7. Advanced Visual Basic 2010 Programming Challenge 3 Winter Sports Rentals

    Advanced Visual Basic 2010 Programming Challenge 3 Winter Sports Rentals

    Regular Price: $20.00

    Special Price: $15.00

    Advanced Visual Basic 2010 Programming Challenge 3 Winter Sports Rentals


    A winter sports rentals store needs an application that will let the user (a store clerk) enter information about each customer’s rental. The user should be able to select multiple equipment items, a rental duration, and insurance. Figure 2-46 shows a sample design, after the user has selected all items and clicked the Calculate button. Include a check box showing that a liability waiver was signed, and let the user input the deposit amount. Use a combo box to list the rental durations, but do not let the user type in an arbitrary duration. When the user clicks the Calculate button, the application should calculate the subtotal, tax, and balance due. Also, use a LinkLabel control (Weather forecast) to display a second form containing a WebBrowser control.


    The form containing the WebBrowser control, shown in Figure 2-47, should display a series of links to weather forecasts for the area near the winter sports rental store. Place a ToolStrip container at the top of the form; it should contain a text box (for entering a Web address), a Go button to navigate to the address typed into the text box, and a Close button that closes the browser window. Note: We do not endorse any particular Web search engine, so you may substitute another of your choosing.


    Error Checking: When the user clicks the Calculate button, make sure that at least one item has been selected from the equipment list box. Also, a rental duration must have been selected, and the Deposit amount must be a positive number. Use the ErrorProvider control to display all error messages. The following rental durations should appear in the combo box: 1 day, 2 days, 3 days, 1 week, 2 weeks.


    Calculations: Each equipment item has a rental rate based on different durations. Create a two-dimensional array containing all possible rental rates. Each row should contain the rental rates for a single item, using the different rental durations. The following first row of the array, for example, contains rental rates for Skis, beginner:
    35,45,80,150,280
    For this equipment, the rates are $35.00 for 1 day, $45.00 for 2 days, $80.00 for 3 days, $150.00 for a week, and $280.00 for 2 weeks. Damage insurance costs 10 percent of the total rental charge before taxes.

    Learn More
  8. POS 409 Week 3 Sorting and Searching C# Program

    POS 409 Week 3 Sorting and Searching C# Program

    Regular Price: $20.00

    Special Price: $15.00

    POS 409 Week 3 Sorting and Searching C# Program


    Create a text file with one record of text data. This text file will be read by the program and the data in the text file will serve as a search term.


    Design, implement, test, and debug a C# program using the following guidelines.


    In the form load event, read the text file you built. This row of data will be a word or phrase that may occur in the data entered on the form (referred to later as "search term"). Convert the text read to uppercase.


    Create a form with textboxes for 10 input fields. Designate the fields in such a way that the user enters specific data (for example, movies, books, names, or sports). The data entered should be of type string.


    Add a button, "Accept Input", to accept the input. In the click event for the button, validate the input and load the input into an array.
    Validate the input by calling a value-returning method. Pass the 10 input fields to the method and return a value to indicate whether or not the data passed validation (for example, you can return a zero if the data passed validation and a 1 if it did not). Validation should consist of checking if data was entered in the field. Notify the user if the data is not valid and stop execution.
    Add a void method that loads the input fields into an array and converts the data in them to uppercase.


    Add another button, "Sort Input", to sort the input data. In the click event for the button, add a void method to do the sorting. In the void method, use the selection sort algorithm presented in chapter 7 to sort the data. After sorting, in the button click event, create a loop to iterate through the array of sorted data and display the data in a listbox on the form.


    Add a final button to the form, "Check Input". In the click event for the button, call a value-returning method. This method will compare the data in the array and the search term (data read in the form load event). Count the number of elements in the array in which the search term is found. Pass the number of times the word or phrase is found back as the value returned. Put the results in a label on the form. For example, if my search term is "the", the label might say "Search term - the - is found 3 times in the input data". The search should count as a match if the search term is only a portion of the array element. For example, if your search term is "the" and the array element is "The Old Man and The Sea", it should count as a match because "the" is contained within the array element. However, you do not need to count all occurrences of the search term in the array element. So, in "The Old Man and The Sea" example, count once, not twice.


    Here is an example. My search term is "the". The array elements are: "The Old Man and The Sea", "Jane Eyre", "Moby Dick", "The Great Gatsby", "MacBeth", "The Iliad and the Odyssey", "Huckleberry Finn", "Catch-22", "To Kill a Mockingbird", and "The Bell Jar". With this data, the program should find 4 occurrences of the search term (those array elements that are underlined).


    The type of application to be developed is a Windows Forms application.


    Please note that the reason the selection sort algorithm is required for this assignment is two-fold. First, it will give you a chance to look at someone else's code and learn it well enough to figure out how to modify it. Second, it will give you additional practice with string handling when you learn how to compare strings. It is not acceptable to try to find another way to sort the data.


    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 text file used in your zip file also.

    Learn More
  9. Penn Foster Final Graded Project 03784400 Hangman Game

    Penn Foster Final Graded Project 03784400 Hangman Game

    Regular Price: $25.00

    Special Price: $20.00

    Penn Foster Final Graded Project 03784400 Hangman Game


    OVERVIEW
    Now that you've completed the lessons and required textbook reading, you're ready to put it all together for the final project. This project is a final assessment on the entire course and covers all the lessons. This is a new Windows application that's not based on the output of any previous graded projects. You may find it helpful to review the instructions of previous graded projects and the completed output from Lesson 5 graded project.
    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
    You've been tasked to create an educational game for a fifth grade reading class. The game must test student's spelling skills using a variation of the classic game Hangman. If you're unfamiliar with the rules and general game play, please consult the online reference at http://en.wikipedia.org/wiki/Hangman_(game) for more information.


    Database
    The application will use the HangManDB.mdf file. The HangManDB database contains the tables in Figure 58. The UnitID column in the Words table is a foreign key to the ID column in the Units table. The Word column contains the actual word to guess, while the Description column contains the description of words for that unit.


    User Interface
    The user interface will consist of a single Windows form. The user interface will resemble Figure 59.
    When the application first loads, the textbox for the letter guess should be disabled (Figure 60). If the New option is chosen in the menu, then a new word and the unit description should be loaded from the database. If the Quit option is chosen in the menu, then the application should quit.


    After each guess, one of two things should happen. If it's a correct guess, then all occurrences of that letter should appear in the labels at the bottom. If it's an incorrect guess, then the next stage of the hangman should appear in the picture box. In either case, the textbox should highlight the letter, so that the user can make another guess. The textbox should not be cleared or the user may attempt to guess the same letter (Figure 61).


    The game ends when either all letters of the word are guessed correctly or the hangman picture is completed. When the game is won (Figure 62) or lost (Figure 63), a message box should display, prompting to play again.


    In either case, clicking the Yes button should have the same effect as clicking the New option in the menu, and clicking the No button should exit out of the application.


    Application Files
    This application will consist of the following files in the solution explorer:
    1. GameForm.vb. The only form in the application.
    2. HangmanDB.mdf. The database that contains the questions and unit descriptions.
    3. Images folder. The images needed for the different visual states of the hangman.
    4. QuestionDataSet.xsd. The DataSet for the HangmanDB database. Should contain both tables Words and Units.
    HangmanDB.MDF and the Images folder will be provided to you.


    Provided Files
    You'll be provided with the following files:
    - The HangmanDB.mdf database
    - The Images folder that contains the image files
    Hangman-0.png, Hangman-1.png, Hangman-2.png, Hangman-3.png, Hangman-4.png, Hangman-5.png, and Hangman-6.png
    - The HelperMethodsCode.txt file with suggested code


    INSTRUCTIONS
    1. In Visual Studio, create a new Windows Forms Application project named HangmanApp.
    2. Create the Images folder in the project by using the Add > New Folder option in the Solution Explorer or the New Folder option in the Project menu
    3. Add each hangman image to the Image folder. You can either click and drag them into the Solution Explorer or use the Add > Existing Item... option and select all images using the Shift key. If using the second method, make sure to change filter to All Files (*.*).
    4. In the Properties panel, set the Copy To Output Directory property to Copy Always for each image file. You can use the Shift key to select all image files at once.
    5. Add the HangmanDB.mdf database to the project. Use the Add > Existing Item... option. Make sure to change filter to All Files (*.*).
    6. In the Data Source Configuration Wizard dialog, choose the DataSet option and then click the Next button.
    7. Check the checkbox next to Tables and then click the Finish button. This will create a default dataset named HangmanDBDataSet with the Units and Words data tables.
    8. Rename the Form1.vb file to GameForm.vb.
    9. Click the Yes button in the dialog to rename the Form1 class as well.


    10. Create the user interface for GameForm.vb. See the User Interface section above for the layout. The form will consist of the following controls:
    a. One MenuStrip control that contains the Game menu with the options New and Quit.
    b. One Label control for instruction with the text Guess a letter; 14-point font recommended.
    c. One Label control for the unit description.
    d. One TextBox control for the user to type in letter choices.
    e. A PictureBox control that will display the hangman images. You'll set the ImageLocation property to load the hangman images.
    f. A Panel control that will contain the displayed letter labels.
    g. Eleven Label controls, one for each letter of the word. These labels should be in the panel and will have an initial placeholder until the user guesses a letter.
    You can choose to set the control properties to whatever you like, but below are some helpful suggestions. If you don’t name the controls with the recommended names, you will need to modify some provided code shown in Table 4.


    6. In the body of GameForm, you should define the following variables:
    a. dsQuestions. A HangmanDBDataSet object
    b. numWord. The index of which word is being guessed.
    c. strWord. The actual word being guessed.
    d. numRightGuesses. Number of right guesses in a game.
    e. numWrongGuesses. Number of wrong guesses in a game.
    f. blnGameStarted. Indicates whether the game has started or not.


    7. In the body of GameForm, you should define the following utility methods:
    a. A method named CheckProgress that calculates the total number of tries (numRightGuesses + numWrongGuesses), displays the correct message box for winning or losing, and starts the next game or exits the application depending on the message box button
    b. A method named WonGame that checks each letter in the word is matched by its label and returns True if this is the case
    c. A method named LostGame that checks to see if the number of wrong guesses is greater than six and returns True if this is the case
    d. A method named ResetAllLabels that sets each character label to blank text


    8. Open the HelperMethodsCode.txt file and copy and paste its contents into the GameForm class.
    Note: These handy methods will reduce your development time. Think of it as help from a colleague, because you’ll rarely develop a business application alone and most often will work within a team.


    9. In the body of GameForm, you should have the following event procedures:
    a. Form Load event handler. Disable the txtGuess textbox, initialize numWord to -1 to indicate no word has been chosen, and call the LoadData method.
    b. Quit button Click event handler. Exit the application
    c. In the New button Click event handler, perform the following tasks:
    I. Initialize all variables, especially numRightGuesses, numWrongGuesses, blnGameStarted, and numWord. Make sure to increment numWord to the next index. Each game will increment this number by one.
    II. Initialize controls. Clear the text of all controls, including the labels, textbox, and picture box. For the picture box, you can just set its ImageLocation to “”.
    III. Enable and set the focus of the txtGuess textbox.
    IV. Set controls using the DataSet. If you followed the same names, then you can use this code:
    ‘Get a word column row
    strWord = CStr(dsQuestions.Words(numWord)(1))
    ‘Gets unitdescription
    lblUnitDescription.Text = CStr(dsQuestions.Words(numWord).UnitsRow(1))
    V. Set the Text property to the underscore character (_) for each label control based on the number of characters in the word.
    D. In the txt Guess text box Text Changed event, perform the following tasks:
    I. Check if the game is started using the blnGameStarted variable and that the txtGuess textbox contains a value. Clearing a textbox will trigger a TextChanged event, so you’ll need to
    verify a letter was actually typed by the user.
    II. Check to see if the word (strWord) contains the guess (txtGuess).
    III. If it does, then call the SetRightLetterLabels method and increment the numRightGuesses variable.
    IV. If it doesn't, set the image in the pboxHangman and increment the numWrongGuesses variable.
    Your code should resemble the following:
    pboxHangman.ImageLocation ="images\Hangman-" & numWrongGuesses & ".png"
    numWrongGuesses + = 1
    V. Check to see if the game has been won or lost yet. Use the CheckProgress method.
    VI. Select the text in the txtGuess textbox.


    10. 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 HangmanApp.exe file for your project.
    To find this file, you should go to directory to where you saved the HangmanApp project and copy the HangmanApp.exe file from the bin\Debug folder. Make sure the HangmanApp.exe file executes before submission. The Images folder and HangmanDB.mdf must be in the same directory as the HangmanApp.exe to execute as expected.


    Use the following procedure to submit your project online:
    1. Log in to view your student homepage and go to the My Courses page.
    2. Click the Take Exam link next to the lesson you’re working on.
    3. Attach our files as follows:
    a. Click the Browse button.
    b. Locate the file you wish to attach.
    c. Double-click on the file.
    d. Click the Upload File button.
    4. Enter your email address in the box provided.
    (Note: Your email address is required for online submissions.)
    5. If you wish to include comments about this project to your instructor, enter your comments in the Message textbox.
    6. Click Submit Files.

    Learn More
  10. POS 409 Week 1 C# Program Friends Name GUI

    POS 409 Week 1 C# Program Friends Name GUI

    Regular Price: $12.00

    Special Price: $10.00

    POS 409 Week 1 C# Program Friends Name GUI


    Design, implement, test, and debug a C# program that displays a Friend's name when button is clicked.


    Create a graphical user interface (GUI) with a button labeled "Friend's name".
    When the Friend's Name button is clicked, the program will display the name of the Friend in a label on the form.
    Add a button that will exit the program.
    Your name, date, project description and class name 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 a variables and labels).


    Options:
    Add a button that will change the color of the name label.
    Add a button that will change the location of the name label.
    Cycle through multiple names when the Friend's Name button is selected.


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

    Learn More

Items 31 to 40 of 170 total

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

Grid  List 

Set Descending Direction