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 41 to 50 of 170 total

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

Grid  List 

Set Descending Direction
  1. POS 409 Week 2 Card Game War C# Program

    POS 409 Week 2 Card Game War C# Program

    Regular Price: $20.00

    Special Price: $15.00

    POS 409 Week 2 Card Game War C# Program


    Design, implement, test, and debug a C# program to simulate playing the card game War. Utilizing the C# random number generator, deal 26 sets of 2 cards each. This should be accomplished with only one click of a button. The "cards" should be values 1 through 13; 1 is an ace, two is a two, etc.; and 11 is a jack, 12 is a queen, and 13 is a king. Keep two counters - one for player 1 and one for player 2. As you deal the cards (ie, generate the numbers in a loop), if the first card is larger than the second, add 1 to player 1's counter. If the second card is larger than the first, add 1 to player 2's counter. For the purposes of this program, a 2 will beat an ace. Also, as you deal the cards, write the results to a text file. The results should contain the values of both cards dealt and which player won that deal. For example, the record written to the text file could say "Player 1 dealt 3, player 2 dealt 11, player 2 wins". It is not necessary to translate a 1 into "ace", an 11 into "jack", a 12 into "queen", or a 13 into "king". After 26 deals of cards, the results will be read from the text file and displayed on the form. Remember to utilize concepts learned in this week's reading (especially chapters 4 and 5 of Starting Out with Visual C#). The type of application to be developed is a Windows Forms application. Please note that graphics are not needed. This program is only a simulation; it is not intended to actually look like the user is dealing cards. Also please note that no complicated algorithms or logic is needed. You do not need to do any logic to ensure that 52 unique cards are dealt or anything related to the suit of the card. The assignment is simply to see how you do with the key concepts for this week.


    When the user clicks a Deal Cards button, the program will write the values of the cards "dealt" to each of the players as noted above. If I open the text file written, I should see 26 records, with three things on each record (the value of each card and the winner of the deal). If the deal is a tie, note it in the results.
    Notify the user in some way that the game is done and the file is written.


    After the file is written, the user may click a Display Game Results button to read the items back in and display the results in a textbox or listbox. When I look at the form after I click the Display Game Results button, I should see 26 entries on the form. Also create 2 labels on the form. In the first label, display the number of deals won by player 1 (such as "Player 1 won 10 deals"). In the second label, display the number of deals won by player 2.


    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.
    Design a GUI for the program that will be intuitive for a novice user.


    Write the code for the program and test the results.


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

    Learn More
  2. POS409 Week 3 Rolling Dice

    POS 409 Week 3 Option B Rolling Dice C# Program

    Regular Price: $15.00

    Special Price: $12.00

    POS 409 Week 3 Option B Rolling Dice C# Program


    Design, implement, test, and debug a C# project to show the frequencies of the sum of two dice for 100 rolls. The program will read the file you created in the dice simulation in Week Two.


    Include the following:
    Declare an array that represents the possible results of throws of two dice. (2, 3, 4, 5, 6, 7, 8, 9, 10, 11 or 12)
    For each entry in the file, increment the element of the array corresponding to that result.
    Last, display the frequency count for that simulation. Show the 11 possible values and the frequency that the sum occurs in your file.


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

    Learn More
  3. Advanced Visual Basic 2010 Chapter 7 Programming Challenge 5 Students and Course Lists

    Advanced Visual Basic 2010 Chapter 7 Programming Challenge 5 Students and Course Lists

    Regular Price: $20.00

    Special Price: $15.00

    Advanced Visual Basic 2010 Chapter 7 Programming Challenge 5 Students and Course Lists


    In this programming challenge, you will use LINQ statements to display college courses taken by selected students. You will use a CourseRegistration database, which contains tables named Students and Courses.
    • The Students table contains the following columns: Id (smallint, primary key), LastName (varchar(30)), Status (smallint), and Major (varchar(5)).
    • The Courses table contains the following columns: Id (varchar(10)), Student_Id(smallint), Credits (smallint), and Grade (float). The primary key of the Courses table consists of two combined columns: Id and Student_Id.
    Figure 7-21 shows a one-to-many relationship between the Students and Courses tables. You can find the CourseRegistration.mdf database file in the chapter examples folder.


    Use a LINQ query to fill a DataGridView with a list of Student objects. When the user selects a student in the grid, display all courses taken by the student in a separate grid. Use another LINQ query to fill the second grid. A sample is shown in Figure 7-22, in which Student 1001 (Charles) was selected by clicking the left side of his row. The grid on the right fills with the list of courses taken by the selected student. Notice that the rightmost column in the Student grid displays a count of the number of courses the student has taken. This column was not in the database, but it is calculated by the LINQ query. We showed how to do such a calculation in Section 7.1.


    The two DataGridView controls should be inserted into panels belonging to a Split-Container control. At runtime, the user will drag the divider between the two panels to adjust their size. To format the Grade column in the right-hand grid, set its Default-CellStyle.Format property like this:
    dgvCourses.Columns(2).DefaultCellStyle.Format = "n"

    Learn More
  4. CIS407 Lab 4 PayrollSystem ASP.NET Application frmMain

    CIS407 Lab 4 PayrollSystem ASP.NET Application

    Regular Price: $12.00

    Special Price: $10.00

    CIS407 Lab 4 PayrollSystem ASP.NET Application


    STEP 1: Data Layer
    1. Open Microsoft Visual Studio.NET.
    2. Click the ASP.NET project called PayrollSystem to open it.
    3. Open the clsDataLayer class and add the following function:
    // This function saves the personnel data
    public static bool SavePersonnel(string Database, string FirstName, string LastName,
    string PayRate, string StartDate, string EndDate)
    {
    bool recordSaved;
    try {
    // Add your comments here
    OleDbConnection conn = new OleDbConnection("PROVIDER=Microsoft.ACE.OLEDB.12.0;" +
    "Data Source=" + Database);
    conn.Open();
    OleDbCommand command = conn.CreateCommand();
    string strSQL;
    // Add your comments here
    strSQL = "Insert into tblPersonnel " +
    "(FirstName, LastName, PayRate, StartDate, EndDate) values ('" +
    FirstName + "', '" + LastName + "', " + PayRate + ", '" + StartDate +
    "', '" + EndDate + "')";
    // Add your comments here
    command.CommandType = CommandType.Text;
    command.CommandText = strSQL;
    // Add your comments here
    command.ExecuteNonQuery();
    // Add your comments here
    conn.Close();
    recordSaved = true;
    } catch (Exception ex) {
    recordSaved = false;
    }
    return recordSaved;    
    }


    4. In the frmPersonnelVerified form, go to the Page_Load() event and add the following code after the existing code (but still in the Page_Load event handler):
    // Add your comments here
    if (clsDataLayer.SavePersonnel(Server.MapPath("PayrollSystem_DB.accdb"),
    Session["txtFirstName"].ToString(),
    Session ["txtLastName"].ToString(),
    Session ["txtPayRate"].ToString(),
    Session ["txtStartDate"].ToString(),
    Session ["txtEndDate"].ToString()))
    { txtVerifiedInfo.Text = txtVerifiedInfo.Text + "\nThe information was successfully saved!"; }
    else
    { txtVerifiedInfo.Text = txtVerifiedInfo.Text + "\nThe information was NOT saved.";  }
    5. Add comments for all code containing // Add your comments here.
    6. Test your work to make sure that no errors occur! (Make sure to put in valid date values for the date data entry fields).
    STEP 2: Data Display and Search
    7. Using the skills that you learned in Week 3, create a new DataSet for the tblPersonnel table (call the DataSet dsPersonnel).


    8. Using the skills that you learned in Week 3, create a new function called GetPersonnel in the clsDataLayer class. This function should retrieve all data from the tblPersonnel table and return it in the form of a dsPersonnel DataSet. Use the GetUserActivity function as an example.


    9. Create a new Web form called frmViewPersonnel.


    10. Using the skills that you learned in Week 3, add a GridView control (called grdViewPersonnel) to the form. This GridView control will be used to display data from the tblPersonnel table. Add the ACIT logo at the top of the page and make sure it links back to frmMain.


    11. Add the following code to the Page_Load() function in frmViewPersonnel.
    if (!Page.IsPostBack)
    {
    //Declare the Dataset
    dsPersonnel myDataSet = new dsPersonnel();
    //Fill the dataset with shat is returned from the method.
    myDataSet = clsDataLayer.GetPersonnel(Server.MapPath("PayrollSystem_DB.accdb"));
    //Set the DataGrid to the DataSource based on the table
    grdViewPersonnel.DataSource = myDataSet.Tables["tblPersonnel"];
    //Bind the DataGrid
    grdViewPersonnel.DataBind();
    }


    12. Return to the frmPersonnel Web form and add a button ((ID) = btnViewPersonnel, Text = View Personnel) which, when clicked, will display form frmViewPersonnel.


    13. Open the frmPersonnelVerified form and add a button ((ID) = btnViewPersonnel, Text = View Personnel) which, when clicked, will display form frmViewPersonnel. NOTE: This is the same button with the same functionality that you added to form frmPersonnel in the previous step. Also, add a new link and linked image to frmMain called View Personnel that will go to the new frmViewPersonnel page you created.
    Let's test the View Personnel page. Start your program in Internet Explorer. Click on Add New Employee and add yourself to the database and press Submit. Once you are on the personnel verified form, click the View Personnel button. You should see the data that you just entered.
     
    14. You will now add a Search feature to allow the user to find and display data. The user will enter a last name and the Web application will display the grid of employees with all employees that match that last name.


    15. Create a new Web form called frmSearchPersonnel. Add the hyperlinked ACIT logo to this page. Also, add a new item on frmMain (with a Link button and Image button) called Search Personnel.


    16. On the frmSearchPersonnel form, add a label that displays "Search for employee by last name:". Next to the label, add a text box with an ID of txtSearch. Add a button with an ID of btnSearch and set the text of the button to "Search".


    17. When the frmSearchPersonnel Search button is pressed, the frmViewPersonnel is displayed. At this point, no searching is actually happening, but you have the forms that you need and the navigation is working. Now you can focus on the coding that you will need to do to have the grid only display matching employees.


    18. Before calling the GetPersonnel method that you added previously in the lab, you will need to get the value that is in the Request["txtSearch"] item. When the form posts the search page results to the frmViewPersonnel, the name value pair for the search value is passed as part of the Request object. This value will need to be assigned to a string variable. To do this task, add the following line of code in the code block below to the Page_Load function in frmViewPersonnel after the line: dsPersonnel myDataSet = new dsPersonnel();
    string strSearch = Request["txtSearch"];
    Then, modify the call of the GetPersonnel function one line below to add the strSearch as one of the arguments:
    myDataSet = clsDataLayer.GetPersonnel(Server.MapPath("PayrollSystem_DB.accdb"), strSearch);


    19. Modify the GetPersonnel method that you added in the clsDataLayer.cs class to include a new parameter called strSearch of type string. Add string strSearch as an argument to the function as below:
    public static dsPersonnel GetPersonnel(string Database, string strSearch)
    Then modify the sqlDA select statement within the GetPersonnel function to test if a value is entered for a search parameter.
    if (strSearch == null || strSearch.Trim()=="")
    { sqlDA = new OleDbDataAdapter("select * from tblPersonnel", sqlConn); }
    else
    { sqlDA = new OleDbDataAdapter("select * from tblPersonnel where LastName = '" + strSearch + "'", sqlConn); }
    20. Test the search so that when you enter a last name, employees with that last name are returned. Make sure that when you access frmViewPersonnel and you are not searching, all employees are returned.
    STEP 3: Test and Submit
    Run your project and test it as follows:
    The frmMain form should be displayed first.
    Click on the Add New Employee hyperlink to go to the frmPersonnel data entry form. Click the View Personnel button on this form. The frmViewPersonnel form should be displayed in the browser, but at this point, there should not be very many personnel listed.
    Use the Back button in your Web browser to return to the frmPersonnel form and enter some personnel data for a few employees, similar to the following:
     
    Now, click the Submit button. The frmPersonnelVerified form should be displayed, showing the data you entered, and you should get a message saying that the data were successfully saved, like this example.
     
    You should be able to view the employee records by clicking the View Personnel link on the home page.
     
    Test the Search feature and make sure that entering no search string returns all of the data and that typing in a last name will return all employees with the same last name.


    NOTE: Make sure that you include comments in the code provided where specified (where the " // Your comments here" line appears) and for any code that you write, or else a 5-point deduction per item (form, class, function) will be made.

    Learn More
  5. Microsoft Visual Basic 2015 Chapter 9 Case 8 Moores Laws

    Microsoft Visual Basic 2015 Chapter 9 Case 8 Moores Laws

    Regular Price: $15.00

    Special Price: $12.00

    Microsoft Visual Basic 2015 Chapter 9 Case 8 Moore's Laws


    Moore's Laws
    Create a requirements document and a Use Case Definition document, and then create a Web application, based on the case project shown in Figure 9-93.


    Create a Web application that displays Moore's Law, which states that the computing power or the number of transistors within the same silicon processor doubles every months. In other words, computing speed doubles every months. As shown in the following table, allow the user to enter the current average speed in GHz and display the next 15 years of project speed. Use the validation controls to make sure the entry is filled in and that the decimal entered is between 1.0 and 10.0.

    Learn More
  6. Microsoft Visual Basic 2015 Chapter 8 Case 9 Job Growth in The Information Technology Field

    Microsoft Visual Basic 2015 Chapter 8 Case 9 Job Growth in The Information Technology Field

    Regular Price: $15.00

    Special Price: $12.00

    Microsoft Visual Basic 2015 Chapter 8 Case 9 Job Growth in The Information Technology Field


    Job Growth in The Information Technology Field
    Create a requirement document and a Use Case definition document and then design a Windows application based on the case project shown in Figure 8-120. Before writing the code, create an event planning document for each event in the program:


    The US department of Labor has projected that the Information Technology job sector is growing. Enter the information from the following table into Notepad and save the text file.


    Job Title Jobs in 2015 Jobs Projected for 2020
    Computer Developers 875000 1181000
    Computer Support 862000 1016000
    System Analyst 504000 650000
    Database Administrators 119000 154000
    Network Administrators 262000 402000
    IT Managers 205000 307000


    Calculate the changes in job numbers for each position and display the values. Compute the average number of positions that will be available in these fields each year during the period shown. Fill a ListBox object with the job titles so that the user can select a position and see the number of available jobs for the year 2015 and 2020 on the second form.

    Learn More
  7. CIS339 Week 7 Object-Oriented Application Coding

    CIS339 Week 7 Object-Oriented Application Coding

    Regular Price: $15.00

    Special Price: $12.00

    CIS339 Week 7 Object-Oriented Application Coding


    Your demonstrations of how to create both method contract and the method specification for the GetCourseByCourseID() method of the CourseList class were very well received by your team members. They then asked you for one final demonstration of how to implement the method specification using an object-oriented (OO) programming language and see the method actually execute.


    You realize that it is easy to implement the method specification in an OO programming language, but it is hard to test it because the rest of the application is not developed yet. You decided, therefore, to write two pieces of code.


    Code that implements the GetCourseByCourseID() method
    Code that implements a unit test for that method alone (outside of any other application code)
    This way you can demonstrate the method implementation and also verify its correct behavior.


    You are under a deadline constraint for this deliverable, so you asked some of your peer architects for help. They each are well versed in different OO languages like VB.NET, C#, and Java and they all have done unit testing before so they are familiar of how to construct one.


    Your peer architects provided you with partially-completed shells for your demonstration. Each shell contains:
    complete code for the Course class; partially completed code for CourseList class; and complete code for the CourseListTest class that unit tests the CourseList.GetCourseByCourseID() method.
    Your task is now easy. Just select one of these shells and complete the code for the partially completed CourseList by coding it GetCourseByCourseID() method. When you compile and run the shell, it will automatically test your GetCourseByCourseID() code to ensure its correct behavior



    Deliverables
    A copy of the code you wrote for the GetCourseByCourseID method() of the CourseList class in your favorite OO programming language
    A screen shot of the output of running the provided unit test in the shell (the CourseListTest class) showing that your code works as expected. Note that these unit tests only print out messages of testing problems. If your code is correct, the unit tests will succeed silently without any success messages.
    a zip file of the completed shell after you added your code so that the shell could be executed on a different machine.
    Verification and validation of your work
    Explanation of your work


    Download the iLabWeeklySubmissionTemplate. You are going to use this template for all of your iLab submissions throughout this course. This template is available in week1 iLab.
    Decide on your OO programming language that you will use for this lab and then download the corresponding shell from the following.
    Visual Basic Shell
    C# Shell
    Java Shell
    Both the Visual Basic and C# shells are Visual Studio projects while the Java shell include only the *.java source files that could be loaded into any Java IDE.


    Code and unit test the CourseList.GetCourseByCourseID() method in your favorite programming language. You only need to add code for the GetCourseByCourseID() method and then run the application (the unit test will automatically test your code), then print out problem messages, if any
    Using the iLabWeeklySubmissionTemplate, copy and paste the following into the template:
    code text of your CourseListGetCourseByCourseID() method
    a screenshot of running the unit test of CourseListGetCourseByCourseID() method
    a *.zip file of all the coding project files

    Learn More
  8. CIST2311 - Visual Basic Programming I Project 1 Employees Weekly Pay

    CIST2311 - Visual Basic Programming I Project 1 Employees Weekly Pay

    Regular Price: $20.00

    Special Price: $15.00

    CIST2311 - Visual Basic Programming I Project 1 Employees Weekly Pay


    Create a program that will calculate employee’s weekly pay as follows:
    Inputs:
    1) Name
    2) Hourly Rate of Pay ($ / hour)
    3) Marital Status (Married, Single)
    4) # of Dependents
    5) Healthcare (Yes or No)
    6) Hours worked


    Outputs:
    1) Gross pay (Hours over 40 are paid at time and ½)
    2) Health Insurance Amount
    3) Federal Tax, calculated as follows:
    A. From gross taxable pay subtract $70 for each dependent
    B. From value in A subtract appropriate value in Standard Deduction Column from table below to give taxable gross.
    C. Tax at rate of 10% appropriate amount in 10% Column from table below.
    D. Tax at rate of 15% appropriate amount in 15% Column from table below.
    E. Tax at rate of 25% appropriate amount in 25% Column from table below.
    F. Tax at rate of 35% remaining amount (if any) in 35% Column from table below.
    Marital Status Deductions Tax Rates
    Medical Standard 10% 15% 25% 35%
    Single $60 $75 <=$100 $101-$250 $251-$400 >$400
    Married $100 $150 <=$200 $201-$500 $501-$800 >$800
    4) Net Pay (Gross Pay – Health Care Deduction (if any) – Federal Tax).
    5) If any of the inputs are unreasonable, tell user with a message and force reentry of the data.


    Additional Requirements:
    1) Name any control that is referenced in code with a meaningful name
    2) Use functions for major tasks
    a. Calculate Gross Pay
    b. Calculate Health Deductions
    c. Calculate Tax
    3) Other than constants, do NOT use global variables (e.g. You need to pass variable between functions through the argument list and the return value).
    4) Comment each function and variable and major sections of code.
    5) Submitting a program that does not compile is an automatic 20 point deduction.


    Tax Calculation Pseudocode
    The following is one possible pseudocode for calculating the tax. There are many ways to implement this code, any that work are acceptable.


    Assume that variable GrossPay is the calculated total pay for individual. All the constants are from the table on the previous page:
    If married
    TaxablePay = GrossPay – 150 – 70.0 * NumberDependents
    if healthcare
    TaxablePay = TaxablePay – 100
    if TaxablePay > 800
    Tax = (TaxablePay - 800) * .35 + (800 - 500) * .25 + (500 - 200) * .15 +200 * .10
    else if TaxablePay > 500 Tax = (TaxablePay - 500) * .25 + (500 – 200) * .15 +200 * .10
    else if TaxablePay > 200 Tax = (TaxablePay - 200) * .15 +200 * .10
    else Tax = TaxablePay * .10
    else TaxablePay = GrossPay – 75 – 70.0 * NumberDependents
    if healthcare TaxablePay = TaxablePay – 60
    if TaxablePay > 400 Tax = (TaxablePay - 400) * .35 + (400 - 250) * .25 + (250 - 100) * .15 +100 * .10
    else if TaxablePay > 250 Tax = (TaxablePay - 250) * .25 + (250 – 100) * .15 +100 * .10
    else if TaxablePay > 100 Tax = (TaxablePay - 100) * .15 +100 * .10
    else Tax = TaxablePay * .10


    Examples:
    1. A married employee with 45 hours at $20.00/hour, 2 dependents and health care:
    A. Gross Pay: 40 * 20.00 + 5 * 20.00 * 1.5 = $950.00
    B. Minus Standard Deduction of $150.00 = 800.00
    C. Minus Medical Deduction of $100.00 = $700.00
    D. Minus 2 dependents (@$70) = $560.00
    E. Tax at 10% Bracket = 200 * .10 = $20.00
    F. Tax at 15% Bracket ($500 – $200) = 300 * .15 = $45.00
    G. Tax at 25% Bracket ($560 – $500) = $60.00 * .25 = $15.00
    H. Total Tax = $20 + $45 + $15.00 = $80.00
    I. Net Pay = 950.00 - $100.00 (Medical) - $80.00 (Tax) = $770.00
    2. A single employee with 45 hours at $20.00/hour, 1 dependent and no health care:
    A. Gross Pay: 40 * 20.00 + 5 * 20.00 * 1.5 = $950.00
    B. Minus Standard Deduction of $75.00 = 875.00
    C. Minus 1 dependent (@$70) = $805.00
    D. Tax at 10% Bracket = 100 * .10 = $10.00
    E. Tax at 15% Bracket ($250 – $100) = $150.00 * .15 = $22.5
    F. Tax at 25% Bracket ($400 – $250) = $150.00 * .25 = $37.5
    G. Tax at 35% Bracket ($805 - $400) = $405 * .35 = $141.75
    H. Total Tax = $10 + $22.50 + $37.50 + 141.75 = $211.75
    I. Net Pay = 950.00 - $0.00 (Medical) - $211.75 (Tax) = $738.25

    Learn More
  9. POS 409 Week 5 Regular Expression

    POS 409 Week 5 Regular Expression

    Regular Price: $15.00

    Special Price: $12.00

    POS 409 Week 5 Regular Expression


    Design, implement, test, and debug a C# Windows Form Application to demonstrate input validation using regular expression. The program should validate at least one type of data - you are free to choose a commonly used data format such as Social Security Number (999-9999-99), or phone number (999-999-9999), or a custom format that you designed.

    Learn More
  10. ITCO221 Unit 4 Graphical Calculator C# program

    ITCO221 Unit 4 Graphical Calculator C# program

    Regular Price: $15.00

    Special Price: $12.00

    ITCO221 Unit 4 Graphical Calculator C# program


    You have been engaged to develop a graphical calculator. Specific requirements are as follows:
    Create a graphical calculator with buttons that can add, subtract, multiply, divide, +/-, Sin, Cos, Tan, clear, and Modulus.


    Write a method for each of these calculations that will accept the needed incoming numbers and return the calculated value.
    Please note the call to these methods will occur when = is pressed.
    You may only use 1 textbox to input numbers and display the results.


    The first step is to open up the Windows Form. We can change the name of the form by modifying the text property on the form to be “Calculator”. Notice how the change is reflected automatically on the form.


    This assignment requires 11 buttons, and one textbox to input and display the results.
    Button1 is for add
    Button2 is for subtract
    Button3 is for multiply
    Button4 is for divide
    Button5 is for +/-
    Button6 is for Sin
    Button7 is for Cos
    Button8 is for Tan
    Button9 is for Clear
    Button10 is for Modulus
    Button11 is for =

    Learn More

Items 41 to 50 of 170 total

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

Grid  List 

Set Descending Direction