VB Exercise 6-2 - The form accepts the following inputs...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
The form accepts the following inputs: Number of days spent in the hospital at $350/day Amount of medication costs Amount of surgical costs Amount of Lab Fees Rehabilitation Charges We are asked to create the following VB functions CalculateStayCharges – returns base charges for the days in the hospital at $350/day CalculateMiscCharges – returns total cost for medication, surgical, lab fees, and physical rehabilitation CalculateTotalCharges – returns total costs for hospital stay Clear – Clears the inputs so a new calculation can be made The usual input validation is also to be included. Start Program Code Imports Microsoft.VisualBasic.ControlChars Public Class Form1 Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load Clear() End Sub Private Sub btnExit_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click Me .Close()
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
End Sub Private Sub btnClear_Click( ByVal sender
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

VB Exercise 6-2 - The form accepts the following inputs...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online