SET UP INSTRUCTIONS:
MARKS ALLOCATION
Programming and implementation of Logic
User Interface Design
Functionality (the app running as expected)
Creativity
QUESTION
Hospital Charges
Create a mobile application that calculates the total cost of a hospital stay. The daily base charge is GHC 500. The hospital also charges for medication, surgical fees, lab fees, and physical rehab.
The application should accept the following input:
Create an application that will generate the receipt for the customer based on the services rendered to the customer. This should be sent to the customer via an email with the subject “HOSPITAL BILL”.
User Interface
Let the user interface be divided into the following sections with their respective components. (You can use multiple user interface if necessary)
Section Name | ComponentsInputs | Description |
Details | [EditText]editName [EditText]editAddress [EditText]editAge[RadioGroup] radioGender | Name of the Patient Address of the Patient Age of the PatientGender of the patient |
Services | [EditText]editDays [EditText]editMedication [EditText]editSurgical [EditText]editLab [EditText]editRehab | The number of days spent in the hospital The amount of medication chargesThe amount of surgical charges The amount of lab feesThe amount of physical rehabilitation charges |
Outputs | ||
Summary | [TextView]viewReport | Displays all services rendered with their respective cost and the total cost in a receiptformat. |
Operations | ||
[Button]btnCalculate | A button when click will display the outputs in the summary section | |
[Button]btnClear | A button when click will clear everything in all sections | |
[Button]btnSend | A button when click will send the receipt asan email to the customer. |
PROGRAMMING STRUCTURE OF THE APPLICATION
The codes should have comments at the beginning bearing your full Name and ID, and date.
The application should have the following value-returning methods:
• CalcStayCharges—Calculates and returns the base charges for the hospital stay. This is computed as GHC500 times the number of days in the hospital.
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of