Run Time Errors
Not what you're looking for?
Using the following table test the application of the attached Visual Basic program
Quantity Price (sales in $ per unit) Variable Expenses per unit Fixed Expenses
300 $300 $125 $34,000
300 $300 $125 $1,000
0 $200 $100 $40,000
500 $0 $20 $22,000
200 $150 $0 $20,000
500 $200 $175 $35,000
1. Run the attached project. Use the first and second rows of test data in the above table to test the application. The second set of data results in a run time error.
2. Return to design mode and open the code window for the form 1 form. Set Option Strict On for the form. Several Syntax errors result from setting Option Strict to On. Open the task list to view the errors resulting from setting Option Strict to On.
3. Declare all necessary variables and perform the necessary data conversions in the code to perform the calculations properly without Syntax errors.
4. Correct the run-time error that results from the data in row 2 of the above table. Do not modify the range of the NumericUpDown controls to fix the error. Rather, use the proper data types in the code and perform the necessary data conversions to handle the numeric data properly.
5. Format all output to the Textbox controls to currency where currency values are used. Ratios are not currency values.
See attached file for full problem description.
Purchase this Solution
Solution Summary
Run Time Errors are highlighted.
Solution Preview
Code changed in Form1.vb in btnCalculate_Click
--------------------------------------------------------------------------------------------------------------
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ...
Purchase this Solution
Free BrainMass Quizzes
Javscript Basics
Quiz on basics of javascript programming language.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.
C# variables and classes
This quiz contains questions about C# classes and variables.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.