How would I create this program in Visual Basic?

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
How would I create this program in Visual Basic?
7
2. Hospital Charges (Pages 421-422)
Create an application that calculates the total cost of a hospital stay. The application should accept the following input:
The number of days spent in the hospital, as an integer
The amount of medication charges
The amount of surgical charges
The amount of lab fees
The amount of physical rehabilitation charges
The hospital charges $350 per day. The application's form should resemble the one shown in Figure 6-23.
Figure 6-23 Hospital Charges form
Hospital Charges
Length of Stay (Days)
Medication
Surgical Charges
Lab Fees
Physical Rehab
Calculate Charges
3
Create the following functions:
CalcStayCharges
CalcMiscCharges
CalcTotalCharges
ValidatelnputFields
750.00
2500.00
1000.00
1500.00
Total Cost: $6,800.00
Clear Form
Exit
X
Calculates and returns the base charges for the hospital stay. This is computed as $350 times the number of days in
Calculates and returns the total of the medication, surgical, lab, and physical rehabilitation charges.
Calculates and returns the total charges.
Checks the validity of the input fields by converting each to a numeric value and checking its range. If any input fiel
displays an error message and returns a value of False.
Transcribed Image Text:7 2. Hospital Charges (Pages 421-422) Create an application that calculates the total cost of a hospital stay. The application should accept the following input: The number of days spent in the hospital, as an integer The amount of medication charges The amount of surgical charges The amount of lab fees The amount of physical rehabilitation charges The hospital charges $350 per day. The application's form should resemble the one shown in Figure 6-23. Figure 6-23 Hospital Charges form Hospital Charges Length of Stay (Days) Medication Surgical Charges Lab Fees Physical Rehab Calculate Charges 3 Create the following functions: CalcStayCharges CalcMiscCharges CalcTotalCharges ValidatelnputFields 750.00 2500.00 1000.00 1500.00 Total Cost: $6,800.00 Clear Form Exit X Calculates and returns the base charges for the hospital stay. This is computed as $350 times the number of days in Calculates and returns the total of the medication, surgical, lab, and physical rehabilitation charges. Calculates and returns the total charges. Checks the validity of the input fields by converting each to a numeric value and checking its range. If any input fiel displays an error message and returns a value of False.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY