Question: in Visual Basic studio I need to code this assignment Purpose: This Windows Desktop application converts a patient s weight into pounds or kilograms for
in Visual Basic studio I need to code this assignment
Purpose:
This Windows Desktop application converts a patients weight into pounds or kilograms for medication purposes.
Program Procedures:
The medical staff enters the patients weight and selects either Pound to Kilograms or Kilograms to Pounds. The application will determine the users weight in pounds or kilograms. Many medications are prescribed based on the patient weight in kilograms.
Algorithms, Processing, and Conditions:
The medical staff must be able to enter the patients weight and indicate whether it should be converted from pounds to kilograms or kilograms to pounds.
To convert pounds to kilograms divide the number of pounds by To convert kilograms to pounds multiply the number of kilograms by
The medical staff must be able to initiate the calculation and display the converted weight.
The medical staff must be able to clear their input and the results.
Notes and Restrictions:
If the patients weight entry is blank or nonnumeric, the medical staff should be advised and asked for a valid entry.
The results should be displayed in three places past the decimal point.
Comments:
The image in this application is named Scale and is available on CengageBrain.com.
Use Case Definition:
The Windows Desktop application window opens.
The medical staff enters the weight for the patient and selects Pounds to Kilograms or Kilogram to Pounds.
The user taps or clicks the Display Weight button.
The program displays the converted weight with the appropriate units to three decimal places.
MsgBox control appears and displays a warning if the user enters a negative number for the weight value.
A MsgBox appears and displays a warning if the user enters a nonnumeric value for the weight value or does not enter a value.
The user can clear the input and the results by tapping or clicking the Clear button.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
