COS1512
University of South Africa
Hier vind je de beste samenvattingen om te slagen voor COS1512. Er zijn o.a. samenvattingen, aantekeningen en oefenvragen beschikbaar.
Populaire samengevatte studieboeken
Alle boeken 3 SluitAlle 8 resultaten
Sorteer op:
-
Tentamen (uitwerkingen)
COS1512 -ASSIGNMENT 1
-
---11oktober 20212021/2022A+
- 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, se...
-
$3.99 Meer Info
lectdenis
-
Tentamen (uitwerkingen)
COS1512 ASSIGNMENT 02_
-
---20oktober 20212021/2022A+
- //Question 1 
#include<iostream> 
#include<iomanip> 
using namespace std; 
//Class definition - user interface 
class Module 
{ 
private: 
string moduleName; 
string moduleCode; 
string lecturer; 
int nrStudents; 
public: 
Module(); 
Module(string moduleNameP,string moduleCodeP,string lecturerP,int nrStudentsP); 
void setModuleName(string moduleNameP); 
void setModuleCode(string moduleCodeP); 
void setLecturer(string lecturerP); 
void setNrStudents(int nrStudentsP); 
string getModule...
-
$3.99 Meer Info
lectdenis
-
Voordeelbundel
COS1512
-
---4oktober 2021
- Exam (elaborations)
COS1512 ASSIGNMENT 02_

2
Exam (elaborations)
COS1512 QUESTIONS AND ANSWERS

3
Exam (elaborations)
COS1512_OCT2017_EXAM and answers

4
Exam (elaborations)
COS1512_EXAM_PACK
-
$7.99 Meer Info
lectdenis
-
Tentamen (uitwerkingen)
COS1512_EXAM_PACK
-
---55september 20212021/2022A+
- COS1512_EXAM_PACK 
JUNE 2017 P2 
Page 1 of 6 1 C STRINGS 
Error Correction 
If(str!=”STOP” If(strcmp(str,”STOP”); 
Str = “STOP” Strcpy(str,”STOP”); 
2 RECURSION 
Void CountDown(int num) 
{ 
If (num = 0) 
Cout << 0 << endl; 
Else 
{ 
 Cout << num << endl; 
CountDown(num-1); 
} } 3 POINTERS 
3.1 The problem with this this code fragment is that the code deletes the pointer. 
Thereafter, the programmer is assigning the value to a pointer that doesn’t point ...
-
$4.79 Meer Info
lectdenis