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 11 to 20 of 166 total

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

Grid  List 

Set Descending Direction
  1. BMIS 209 Programming Assignment 7 Account hierarchy

    BMIS 209 Programming Assignment 7 Account hierarchy

    Regular Price: $15.00

    Special Price: $12.00

    BMIS 209 Programming Assignment 7 Account hierarchy


    Based on the program you created for Assignment 5, modify your code to perform the following steps.


    In Assignment 5, you created an Account hierarchy with a base class (Account) and two derived classes (SavingsAccount and CheckingAccount). Three of the mutator methods in this assignment validated user input: setBalance, setInterestRate, and setFeeCharged. In all of these methods, you were instructed to set the respective variables equal to zero if the user passed in a negative amount. In this assignment, you will modify your code such that if the user passes in a negative amount, an exception will be thrown that alerts the user that a negative amount has been entered. The program should catch the exception and display the error message to the user. Once an error (negative amount) has occurred, the program should inform the user that negative numbers are not permitted. It should then redisplay the menu. If an exception has not occurred, and a checking or savings object has been successfully created, the program should print the information for that object.


    [Hint: You will need to create an exception class – call it NegativeNumberException – that takes a string as an argument to its constructor that represents the error. The string should be "Invalid Entry – Negative numbers are not permitted."]


    Modify your Main() method such that instead of hardcoding the SavingsAccount and CheckingAccount information, you prompt the user to enter the needed information. Generate a menu like the one below and loop until the user enters "Q" to quit the application.


    Based on the 18 steps required for Assignment 5, you only need to implement steps 1 and 2 and instantiate their creation based on the user's menu selections. You may remove steps 3 through 18. This assignment is only intended to demonstrate your ability to handle exceptions.

    Learn More
  2. Advanced Visual Basic 2010 Chapter 7 Programming Challenge 3 Grouping Karate Payments

    Advanced Visual Basic 2010 Chapter 7 Programming Challenge 3 Grouping Karate Payments

    Regular Price: $12.00

    Special Price: $10.00

    Advanced Visual Basic 2010 Chapter 7 Programming Challenge 3 Grouping Karate Payments


    Use the Group By operator to group the Payments table by member ID. Display the member ID in the outside group, and display the individual payment dates and amounts within each group. Write the output to a ListBox control, as demonstrated in Figure 7-19.

    Learn More
  3. Advanced Visual Basic 2010 Chapter 7 Programming Challenge 2 Deleting Payments

    Advanced Visual Basic 2010 Chapter 7 Programming Challenge 2 Deleting Payments

    Regular Price: $12.00

    Special Price: $10.00

    Advanced Visual Basic 2010 Chapter 7 Programming Challenge 2 Deleting Payments


    Create an application that lets the user delete payments from the Karate database. Use an Object data source and a BindingSource control. Add a ToolStrip control containing a Delete button, as shown in Figure 7-18. Display all payments in a DataGridView control. When the user selects a payment and clicks the Delete button, LINQ queries that delete the payment and refresh the grid are executed.

    Learn More
  4. Advanced Visual Basic 2010 Chapter 7 Programming Challenge 1 Adding New Payments

    Advanced Visual Basic 2010 Chapter 7 Programming Challenge 1 Adding New Payments

    Regular Price: $15.00

    Special Price: $12.00

    Advanced Visual Basic 2010 Chapter 7 Programming Challenge 1 Adding New Payments


    Create an application that lets the user add new payments to the Karate database. Use an Object data source, a LINQ query, and a BindingSource control. Do not use a MenuStrip control, but use a Save button to save the payments. Add a Show Payments button that displays the Payments table on a separate form in a DataGridView control. A sample main form is shown in Figure 7-17. Catch all exceptions and display a message box if an exception is thrown. Display a confirmation message when a row is added successfully. Hint: Be sure to initialize the BindingSource’s DataSource property with a LINQ Select query when the form is loaded.

    Learn More
  5. Advanced Visual Basic 2010 Chapter 6 Programming Challenge 9 Weather Station Summary

    Advanced Visual Basic 2010 Chapter 6 Programming Challenge 9 Weather Station Summary

    Regular Price: $20.00

    Special Price: $15.00

    Advanced Visual Basic 2010 Chapter 6 Programming Challenge 9 Weather Station Summary


    The purpose of this programming challenge is to show how events raised by a class can be broadcast to more than one class. Use the Weather Station Events application from Tutorial 6-7 as a starting point for this programming challenge. Create a Summary form, as shown in Figure 6-29, that keeps a running count of each type of event raised by the WeatherStation class. The Summary form’s class contains an event handler for each type of event raised by the WeatherStation class. Just before showing the Summary form, the main form can pass to it a reference to the same WeatherStation object declared at the top of the main form. Use the Show (not ShowDialog) method to display the Summary form. As events appear on the main form, the summary form counts the number of each type of event that has been raised so far.

    Learn More
  6. Visual Basic 2010 How to Program Deitel Exercise 9.7 Employee Class

    Visual Basic 2010 How to Program Deitel Exercise 9.7 Employee Class

    Regular Price: $12.00

    Special Price: $10.00

    Visual Basic 2010 How to Program Deitel Exercise 9.7 Employee Class


    (Employee Class) Create a class called Employee that includes three pieces of information as instance variables-a first name (type String), a last name (type String) and a monthly salary (type Integer). Your class should have a constructor that initializes the three instance variables. Provide a property for each instance variable. The property for the monthly salary should ensure that its value remains positive-if an attempt is made to assign a negative value, throw an exception. Write an application that demonstrates class Employee's capabilities. Create two Employee objects and display each object's yearly salary. Then give each Employee a 10% raise and display each Employee's yearly salary again.

    Learn More
  7. Visual Basic 2010 How to Program Deitel Exercise 7.4 Write statements

    Visual Basic 2010 How to Program Deitel Exercise 7.4 Write statements

    Regular Price: $12.00

    Special Price: $10.00

    Visual Basic 2010 How to Program Deitel Exercise 7.4 Write statements


    Write statements to accomplish each of the following task:
    a) Display the value of element 6 of array members.


    b) Using a For...Next statement, assign the value 8 to each of the five elements of one-dimensional Integer array values.


    c) Total the 100 elements of floating-point array results.


    d) Copy 11-element array source into the first portion of 34-element array sourceCopy.


    e) Determine the smallest and largest values in 99-element floating-point array data.

    Learn More
  8. Visual Basic 2010 How to Program Deitel Exercise 7.15 Telephone-Number Word Generator

    Visual Basic 2010 How to Program Deitel Exercise 7.15 Telephone-Number Word Generator

    Regular Price: $20.00

    Special Price: $15.00

    Visual Basic 2010 How to Program Deitel Exercise 7.15 Telephone-Number Word Generator


    (Telephone-Number Word Generator) Standard telephone keypads contain the digits zero through nine. The numbers two through nine each have three letters associated with them(Fig 7.29). Many people find it difficult to memorize phone numbers, so they use the correspondence between digits and letters to develop seven-letter words that correspond to their phone numbers. For example, a person whose telephone number is 686-2377 might use the correspondence indicated in Fig. 7.29 to develop the seven-letter word "NUMBERS." Every seven-letter word corresponds to exactly one seven-digit telephone number. A restaurant wishing to increase its takeout business could surely do so with the numbers 825-3688 (that is, "TAKEOUT"). Every seven-letter phone number corresponds to many different seven-letter combinations. Unfortunately, most of these represent unrecognizable juxtapositions of letter. It's possible, however, that the owner of a barbershop would be pleased to know that the shop's telephone number, 424-7288, corresponds to "HAIRCUT." A veterinarian with the phone number 738-2273 would be pleased to know that the number corresponds to the letters "PETCARE." An automotive dealership would be pleased to know that the dealership number, 639-2277, corresponds to "NEW CARS."


    Write an application that allows the user to enter a seven-digit number in a TextBox, and displays every possible seven-letter word combination corresponding to that number in a multiple line scrollable TextBox when the user clicks the Generate Words button. There are 2,187 (3 To the seventh power) such combinations. Avoid phone numbers with the digits 0 and 1.

    Learn More
  9. Programming in Visual Basic 2010 Chapter 4 Novelty Solution

    Programming in Visual Basic 2010 Chapter 4 Novelty Solution

    Regular Price: $15.00

    Special Price: $12.00

    Programming in Visual Basic 2010 Chapter 4 Novelty Solution


    Create a Visual Basic Windows application. Use the following names for the solution, project, and form file, respectively: Novelty Solution, Novelty Project, and Main Form.vb. Save the application in the VB2010\Chap04 folder. Create the interface shown in the figure 4-65. When the user clicks the Calculate Total button, the button's Click event procedure should add the item price to the total of the prices already entered; this amount represents the subtotal owed by the customer. The procedure should display the subtotal on the form. It also should display a 3% sales tax, the shipping charge, and the grand total owed by the customer. The grand total is calculated by adding together the subtotal, the 3% sales tax, and a $15 shipping charge. For example, if the user enters 26.75 as the item price and then clicks the Calculate Total button, the button's Click event procedure should display 26.75 as the subtotal, 0.80 as the sales tax, 15.00 as the shipping charge, and 42.55 as the grand total. If the user subsequently enters 30 as the price and then clicks the Calculate Total button, the button's Click event procedure should display 56.75 as the subtotal, 1.70 as the sales tax, 15.00 as the shipping charge, and 73.45 as the grand total. However, when the subtotal is at least $100, the shipping charge is 0.00. Code the application. Save the solution and then start and test the application. Close the code editor window and then close the solution.

    Learn More
  10. 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

Items 11 to 20 of 166 total

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

Grid  List 

Set Descending Direction