2016 Assignment 9 - CSC 2000 Introduction to C Programming Language Fall Term 2016 Assignment 09 30 points Due(11:45 A.M Assignment Objectives Learn

2016 Assignment 9 - CSC 2000 Introduction to C Programming...

This preview shows page 1 - 6 out of 7 pages.

CSC 2000 Introduction to C++ Programming Language Fall Term 2016 Assignment 09 30 points Due 11/29/2016 (11:45 A.M.) Assignment Objectives: . Learn about classes . Learn about private and public members of a class . Explore how classes are implemented . Examine constructors and destructors . Learn about the abstract data type (ADT) . Explore how classes are used to implement ADTs . Learn about information hiding . Explore how information hiding is implemented in C++ Problem 01 (2.5 points)
Image of page 1

Subscribe to view the full document.

Problem 02 (6 points)
Image of page 2
Problem 03 (12 points – 2 points each)
Image of page 3

Subscribe to view the full document.

Problem 04 (9.5 points – a to c = 4.5 points; d = 5 points)
Image of page 4
1. a. 12 b. 5 c. 2 d. 3 e. Default constructor 2. a. (i) Line 4 (ii) Line 5 (iii) Line 5 b. employee::employee() { name = "" ; numOfServiceYears = 0; salary = 0.0; } c. employee::employee(string s, int n, double p) { name = s; numOfServiceYears = n; salary = p; } d. employee::employee(string s, int n, double p) { name = "" ; numOfServiceYears = n; salary = p; 3. a. void houseType::set(string s, int bed, int bath, int cg, int yb, int fs, double pr, double tx ) { style = s; numOfBedrooms = bed; numOfBathrooms = bath; numOfCarsGarage = cg;
Image of page 5

Subscribe to view the full document.

Image of page 6
  • Fall '09
  • CSC 2000 Assignments And Labs, information hiding, const, int fs, int cg, int bath

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes