d. Figure la shows item. TM To get the data of the patients from keyboard. Ask the user for |GST Statue As an IT Officer in Fatimah Hospital, write a program to help the Account Department to compute...


C-programming


d. Figure la shows<br>item. TM<br>To get the data of the patients from keyboard. Ask the user for<br>|GST Statue<br>As an IT Officer in Fatimah Hospital, write a program to help the Account Department to compute<br>total charges amount and generate the tax invoice bill for the patients. Table 1 shows the list of<br>services/items and its corresponding SST status used by the hospital to bill its patients.<br>Services/Items<br>5 UTM 5 UTA<br>* Medication U<br>2)<br>UTExempt<br>UTM<br>3) Length of stay (based on ward rate)<br>10%<br>5 UTM 5 UT<br>4) Consultancy<br>Inclusive<br>Table 1: Hospital services and charges.<br>5 UTM U<br>5 UTM 5 UT<br>The patient bill amount is the total of all four services and<br>Assume the ward rate is a flat-rate charge that is RM150 per day.<br>Your program should perform the following tasks:<br>8 UTM<br>charges as stated in Table 1.<br>5 UT<br>a. The program will read the data of the patients consisting of the tax invoice number, patient<br>details and services/item charges.<br>b. Your program will display the summary invoice of patient onto the screen.<br>c. Besides function main (), the program needs to define THREE (3) other functions as<br>UT described in Table 2. You should use appropriate arguments for each function, UTM<br>UTM & UTM<br>s an example run of the program with the keyboard inputs.<br>UTM & UTM<br>Function<br>Description<br>8 UTM 5 ÚTM M<br>the<br>getData ()<br>A UTM 5 UT<br>following input:<br>Таx invoice no.<br>ii. Patient details: name and identification number (IC)<br>5 UTM<br>5 UTM UT<br>1ii.<br>Services/Items charges: medication, registration, length<br>UTMOF stay (days), and consultancy<br>Refer to example of inputs in Figure la.<br>() To acquire the total bill amount. Calculate the total amount of<br>patient charges using the formula given.<br>5 UTM 5 UTM 8 UTM<br>8 UTM /UT<br>5 UTM<br>UTM<br>5 UTM 5 UTM S UTM<br>SummaryInvoice()<br>Total bill amount= Medication charge + (Registration charge<br>+ 10% SST) + (Ward charge +<br>charge<br>To display the tax invoice information summary of their<br>5 UTM /UT<br>TTM<br>service onto the output screen as described in Figure lb.<br>3 UTM /UT<br>Refer to sample of output in Figure lb.<br>

Extracted text: d. Figure la shows item. TM To get the data of the patients from keyboard. Ask the user for |GST Statue As an IT Officer in Fatimah Hospital, write a program to help the Account Department to compute total charges amount and generate the tax invoice bill for the patients. Table 1 shows the list of services/items and its corresponding SST status used by the hospital to bill its patients. Services/Items 5 UTM 5 UTA * Medication U 2) UTExempt UTM 3) Length of stay (based on ward rate) 10% 5 UTM 5 UT 4) Consultancy Inclusive Table 1: Hospital services and charges. 5 UTM U 5 UTM 5 UT The patient bill amount is the total of all four services and Assume the ward rate is a flat-rate charge that is RM150 per day. Your program should perform the following tasks: 8 UTM charges as stated in Table 1. 5 UT a. The program will read the data of the patients consisting of the tax invoice number, patient details and services/item charges. b. Your program will display the summary invoice of patient onto the screen. c. Besides function main (), the program needs to define THREE (3) other functions as UT described in Table 2. You should use appropriate arguments for each function, UTM UTM & UTM s an example run of the program with the keyboard inputs. UTM & UTM Function Description 8 UTM 5 ÚTM M the getData () A UTM 5 UT following input: Таx invoice no. ii. Patient details: name and identification number (IC) 5 UTM 5 UTM UT 1ii. Services/Items charges: medication, registration, length UTMOF stay (days), and consultancy Refer to example of inputs in Figure la. () To acquire the total bill amount. Calculate the total amount of patient charges using the formula given. 5 UTM 5 UTM 8 UTM 8 UTM /UT 5 UTM UTM 5 UTM 5 UTM S UTM SummaryInvoice() Total bill amount= Medication charge + (Registration charge + 10% SST) + (Ward charge + charge To display the tax invoice information summary of their 5 UTM /UT TTM service onto the output screen as described in Figure lb. 3 UTM /UT Refer to sample of output in Figure lb.
Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here