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
Geschreven voor
- Instelling
- University of South Africa
- Vak
- COS1512 - Introduction To Programming II
Documentinformatie
- Geüpload op
- 7 oktober 2021
- Aantal pagina's
- 11
- Geschreven in
- 2021/2022
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
-
cos1512
-
cos1512 assignment 1