logo

CISP400 Object Oriented Programming with C++ Assignment

10 Pages2009 Words76 Views
   

Object Oriented Programming with C++ (CISP400)

   

Added on  2019-10-09

CISP400 Object Oriented Programming with C++ Assignment

   

Object Oriented Programming with C++ (CISP400)

   Added on 2019-10-09

ShareRelated Documents
You can choose to submit either A6 (worth 150 points), AD6 (worth 180), or both (worth 180) for 6th assignment you will get a score for this assignment either 150 points base or 180 points base. Grading Criteria:1.If the submitted program cannot be compiled or run on a Microsoft visual studio 2012 C++ compiler, the assignment will not get any credit.2.If the file name does not follow the naming instruction as stated in syllabus, the assignment will get 5 to 15 points deduction. 3.If the header section of the submitted file does not include personal information and purpose of the file, the assignment will get 5 to 30 points deduction.4.Late assignments will not get any credit for the assignment. 5.A submission does not follow the instructions of the assignment will get little credit.6.A portion of the assignment is not finished or incomplete will get little or no credit.7.Submit an assignment to a wrong drop box. The wrong drop box one will not get any credit.8.If use A for AD or AD for A assignments in the file name, the student will not get any credit for the assignments. 9.If the submitted file(s) cannot be opened by the instructor’s software (WinZip, Visual Studio, or text editor) the assignment will have little credit.10.If the submission file does not include all necessary programming files to run the program, the program will get little credit.11.If the program does not separate into several files (driver, header file, implementation file, etc.) as describe in the assignment, the program will get little credit.Page 1 of 10CISP400V9A6
CISP400 Object Oriented Programming with C++ Assignment_1
12.If the displaying result of the program is not exactly match with the graphic in the assignment description or the displaying result of the executable file which comes with the assignment, the assignment will get little credit. 13.If the program does not have enough detail documentation in the programming area the program will get 5 to 30 points deduction.14.If the program includes some unrelated documentation the program will get some points deduction.A6Write a simple function template for predicate function isEqualTo that compares its two arguments of the same type with the equality operator (==) and returns true if they are equal and false if they are not equal. Use this function template in a program that calls isEqualTo on a variety of built-in types and user define types, Complex and Date (need to overload the equality operator (operator==) and extraction operator (operator<<)). Write a program with variety of inputs to test the functionalities of the program.The following are classes, functions, and private data members needed in this program. You canadd and create more classes, functions and private data members for this program.Date classThere should have three private integer data members, month, day and year for the Date class. It should have Date, operator<< and operator== functions in the class. The Date class has to do a validation on data.Complex classThere should have two private double data members, real and imaginary for the Complex class. It should have Complex, operator<< and operator== functions in the class.CISP400V9A6.cpp Implement an isEqualTo template function to test with different types.The data type and data are list as follow:Page 2 of 10CISP400V9A6
CISP400 Object Oriented Programming with C++ Assignment_2
Data typeOperant 1Operant 2Int11Int24Int-11Int-1-1charaacharaccharcacharccdouble2.22.2double2.22.3double-2.22.2double-2.2-2.2Complex(10, 5)(10, 5)Complex(10, 5)(10, 54)Complex(10,- 5)(10, 5)Complex(-10, -5)(-10, -5)stringabcdefgAbcdefgstringabcdefgAbcdefhString-abcdefgAbcdefgstring-abcdefg-abcdefgDate(2, 31, 2017)(2, 31, 2017)Date(2, 13, 2017)(2, 14, 2017)Date(-2, 13, 2017)(2, 13, 2017)Date(-2, 13, 2017)(-2, 13, 2017)Display the data type they are testing in a group and use the isEqualTo function to thes the equality of the operants. This assignment comes with a CISP400V9A6.zip file. It includes CISP400V9A6.exe file. The CISP400V9A6.exe file is an executable file. You can double click the file to get to the expectingresult (see the picture below) of this assignment. You can choose any Date class and Complex class from the textbook to start the program. You also need to follow the specification for the CISP400V9A6.cpp to do the driver to test the program. After you finish your implementation for the Complex class, Date class and CISP400V9A6.cpp, you can put the CISP400V9A6.cpp, Date.h, Date.cpp, Complex.h and Complex.cpp in a project and then you can run to the same result as the CISP400V9A6.exe.Page 3 of 10CISP400V9A6
CISP400 Object Oriented Programming with C++ Assignment_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Assignment CISP400 Object Oriented Programming with C++
|11
|3830
|198

CISP400 Assignment Object Oriented Programming with C++
|11
|3728
|429

Object Oriented Programming with C++ CISP400
|10
|3182
|386

Assignment on CISP400 Object Oriented Programming with C++
|6
|2031
|364

CISP400 Object Oriented Programming with C++
|12
|2105
|260