C++ / G4MICE Course Session 4 Create a complete C++ class

Slides:



Advertisements
Similar presentations
PHY283 Scientific Modelling Week 1Slide 1 Physics Simulations In this lab class we will be creating Simulations of Gravitational Systems. This will involve.
Advertisements

7-5 Microoperation An elementary operations performed on data stored in registers or in memory. Transfer Arithmetic Logic: perform bit manipulation on.
CIS101 Introduction to Computing Week 12. Agenda Your questions Solutions to practice text Final HTML/JavaScript Project Copy and paste assignment JavaScript:
Program Name Developed by Team Name Student1, Student2, Student3, Student4.
Statistics for the Social Sciences Psychology 340 Spring 2005 Introductions.
Trip Generation Modeling—Cross-Classification
Introduction to Class Modules Please use speaker notes for additional information!
Bret Juliano. Introduction What Documentation is Required? – To use a program – To believe a program – To modify a program The Flow-Chart Curse Self-Documenting.
C++ / G4MICE Course Session 3 Introduction to Classes Pointers and References Makefiles Standard Template Library.
Synthesis ENGR 1181 MATLAB 11. Topics  No new material  Covers topics that will be on the Midterm 2 Exam MATLAB 01 – Program Design MATLAB 02 – Introduction.
C++ / G4MICE Course Session 2 Basic C++ types. Control and Looping Functions in C Function/method signatures and scope.
C++ / G4MICE Course Session 5 Materials in G4MICE Units in G4MICE Visualisation in G4MICE G4MICE Modelling.
2.1.1 Calling Plans day 3 Unit 2: Linear Relationships SWBAT: Compare calling plans by using graphs, tables, and equations.
A brief introduction to javadoc and doxygen. What’s in a program file? 1. Comments 2. Code.
C++ / G4MICE Course Session 1 - Introduction Edit text files in a UNIX environment. Use the g++ compiler to compile a single C++ file. Understand the C++
Slide 1   .. Introduction to the. slide 2  ..  The Welcome Screen ( Click here to enter.
1 Lecture 4 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Sociology 680 SPSS Introduction. Using SPSS The Statistical Package for the Social Sciences (SPSS) started at Stanford University in the late 1960’s.
CPSC 871 John D. McGregor Module 8 Session 3 Assignment.
Introduction to Literate Programming in Matlab 2WN50 – Week programming-in-matlab.pptx?dl=0.
Warm Up Solve, showing all steps. 1. n + 9 = x = – z = n = 8 x = 7 z = 16 Course Solving Two-Step Equations = 9 y = 72 y8y8.
C++ / G4MICE Course Session 6 G4MICE Design and Domains Datacards Configurations (MiceModules) Using existing G4MICE Applications.
COP 3275 – Finishing Loops and Beginning Arrays Instructor: Diego Rivera-Gutierrez.
Warm Up Find the solution to linear system using the substitution method. 1) 2x = 82) x = 3y - 11 x + y = 2 2x – 5y = 33 x + y = 2 2x – 5y = 33.
November 17, 2014 ERCOT AMS Data Loading Result Code Descriptions & Distribution AMS Workshop IV.
CS140 – Computer Programming 1 Course Overview First Semester – Fall /1438 – 2016/2017 CS140 - Computer Programming 11.
Nursing homework help BEST ASSIGNMENT.
49c + 25c = 20c + 5c 1c + 4c Add and Subtract Money + 20c + 1c + 4c
Metrics Replication Presentation for Maryland Staff September 26, 2002
Software Session Introduction
Factoring Trinomials.
Abstract Classes and Inheritence Operator over-loading
NDA Coaching in Chandigarh
Introduction to javadoc
CS190/295 Programming in Python for Life Sciences: Lecture 1
Welcome to CS 1340! Computing for scientists.
INTAKE OF NEW PORTFOLIO AND INVOICES
Lecture 5 – Improved Monte Carlo methods in finance: lab
Physics I Class 01 Introduction & 1D Motion.
Computer Programming Machine and Assembly.
exa.im/stempy16.files - Session 12 Python Camp
General Instructions You have the liberty to select the background, transition effects, sounds, etc. Use the Slide Master view to make settings that apply.
CSCE Problem Solving Programming Strategies
Solving Word Problems Objective: Students will be able to write and solve equations based on real world situations.
Here is a Suggested Way to Use MML to Study
Class Commenting Doxygen for Classes.
Chapter 3 – Combinational Logic Design
Introduction to Programming Using C++
Code is on the Website Outline Comparison of Excel and R
نجاح وفشل المنشآت الصغيرة
RTI-B Recap: Session 1: 28 Sept 2015
We’ve plotted points on graphs before… • •
Lab 1: Getting started ICE0125 Programming Fundamentals II – C/C++
Installing Packages Introduction to R, Part II
Suppose I want to add all the even integers from 1 to 100 (inclusive)
Soldiers personal and unit information
Topics Introduction to Value-returning Functions: Generating Random Numbers Writing Your Own Value-Returning Functions The math Module Storing Functions.
Introduction to javadoc
For this assignment, copy and past the XHTML to a notepad file with the .html extension. Then add the code I ask for to complete the problems.
See requirements for practice program on next slide.
LEVEL 1 FIRST AID BASIC LIFE SUPPORT
LEVEL 2 FIRST AID BASIC LIFE SUPPORT
FIN 515 Entire Course of Devry University | Just Question Answer.
What is the number whose area is 16 unit square?
ADD YOUR LOGO HERE TYPE IN CENTRE NAME LEVEL 2 GDPR AWARENESS
Learning Intention I will learn about the different types of programming errors.
Systems Analysis InfoSys 3810 Week One 2013
JavaScript 101 Lesson 8: Loops.
Blackfin Syntax Moves and Adds
Unit 2 – Section 1 “Solving One-Step Equations”
Presentation transcript:

C++ / G4MICE Course Session 4 Create a complete C++ class Introduction to Unit Testing Documentation and Doxygen Homework!!!

ThreeVector For this session (and the homework) we will develop a complete C++ class to represent a 3-vector. We will also document and test the class.

ThreeVector I have provided a file ThreeVector.hh which contains the signatures of the public methods that you need to implement. There is also a ThreeVector.cc file which currently has no implementation in it. It is up to you to implement the functions, including any necessary private variables.

Unit Testing For each method in the class, you should add some code in the UnitTest.cc program to test that method. You should consider the range of situations that the class will have to deal with and attempt to cover all of the plausible cases.

Documentation All of the code should be documented (the .hh, .cc and the unit test). If you want to, you can try to use the format that doxygen understands: http://www.stack.nl/~dimitri/doxygen/ The doxygen generated documentation for G4MICE can be found here: http://www.mice.iit.edu/software/doxygen/html/

To Work! Try to implement the functions that are currently listed in the ThreeVector.hh file. If you have time, you can try to add some more advanced functions, such as the assignment operator or look at over-loading some of the mathematical operators or a logical operator.