GST Status As an IT Officer in Fatimah Hospital, write a program to help the Account Department to con total charges amount and generate the tax invoice bill for the patients. Table 1 shows the services/items and its corresponding SST status used by the hospital to bill its patients. 1) Medication 2) Registration Exempt 3) Length of stay (based on ward rate) 10% TM 5 UTM UTM 5 UT 4) Consultancy 10% OTMTM Inclusive UTM

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

C-programming 

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.
Transcribed Image 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.
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education