COS1512 Introduction to Programming II (COS1512)

University of South Africa

Here are the best resources to pass COS1512 Introduction to Programming II (COS1512). Find COS1512 Introduction to Programming II (COS1512) study guides, notes, assignments, and much more.

Page 4 out of 36 results

Sort by

COS1512 ASSIGNMENT 2 SEMESTER 2 2022
  • COS1512 ASSIGNMENT 2 SEMESTER 2 2022

  • Exam (elaborations) • 8 pages • 2022
  • COS1512 ASSIGNMENT 2 SEMESTER 2 2022. Introduction To Programming II. Consider the following structure used to keep record of a meeting: struct Meeting { string speaker; string topic; string venue; string date; } Turn the meeting struct into a class. The class should have member variables for all the values in the corresponding struct. Make all member variables private. Include public member functions for each of the following:  a default constructor that sets the string data membe...
    (0)
  • $2.80
  • + learn more
COS1512 EXAM PACK
  • COS1512 EXAM PACK

  • Exam (elaborations) • 55 pages • 2021
  • 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 to anything. The results are disastrous. 3...
    (0)
  • $3.39
  • 1x sold
  • + learn more
COS1512_EXAM_PACK
  • COS1512_EXAM_PACK

  • Exam (elaborations) • 55 pages • 2021
  • 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 to anything. The...
    (0)
  • $3.49
  • + learn more
COS1512_EXAM_PACK.
  • COS1512_EXAM_PACK.

  • Exam (elaborations) • 55 pages • 2021
  • COS1512_EXAM_PACK. COS1512 - Introduction To Programming II. Consider the following instantiation: FinalMark myMark; W Write down a statement to invoke the version of calcMark() provided in class Marks for object myMark and display the result on the consol. Double Results; Results = myMMark(); 5.5 This statement would be invalid and I DON’T know why because I’ve declared Marks as protected.. : ( JUNE 2017 P2 Page 6 of 6 6 TEMPLATES 6.1 Interface for Class Template Template (class ...
    (0)
  • $3.99
  • + learn more
COS1512 ASSIGNMENT 1
  • COS1512 ASSIGNMENT 1

  • Exam (elaborations) • 11 pages • 2021
  • 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 pa...
    (0)
  • $3.29
  • + learn more
Class notes COS1512 - Introduction To Programming II
  • Class notes COS1512 - Introduction To Programming II

  • Class notes • 137 pages • 2021
  • Welcome to COS1512. We hope that you will find this module interesting and stimulating and that you will increase your knowledge about and your skills in programming in C++. We shall do our best to make your study of this module successful. You will be well on your way to success if you start studying early in the semester and resolve to do the assignments properly. This Tutorial Letter 101 contains important information about the scheme of work, resources and assignments for this module. We u...
    (0)
  • $10.99
  • + learn more