Cos1512 Assignment 1
Question 1 INPUT: #include iostream using namespace std; void calcCharges(int daysInHospital, double dayRate, double mediCharges, double serviceCharges) { double totalCharges; totalCharges = ((daysInHospital * dayRate) + mediCharges + serviceCharges); (ios::fixed); (ios::showpoint); sion(2); cout "The Total Charges for hospital stay is: R" totalCharges; } int main() { int daysInHospital; double dayRate, mediCharges, serviceCharges; char patientType
Información del documento
- Subido en
- 7 de octubre de 2021
- Número de páginas
- 11
- Escrito en
- 2021/2022
- Tipo
- Examen
- Contiene
- Preguntas y respuestas