Problem. A program is needed to print the properties of a number of shapes (e.g., Polygon, Circle, etc.) from an input file. The information includes --

Slides:



Advertisements
Similar presentations
Version Control CS440 – Introduction to Software Engineering © 2014 – John Bell Based on slides prepared by Jason Leigh for CS 340 University.
Advertisements

Introduction to git Alan Orth Nairobi, Kenya September, 2010 version control for serious hackers ;)
Program Development Tools IDE vs point tools Two tool flavors exist for developing embedded software: -IDEs: (Integrated Development Environments) i.e.,
CS201 - Information. CS201 - Laboratories All labs will be done using Linux on the PC’s or esus. All labs MUST use Makefiles. First lab is due NEXT WEEK.
Basic linux shell commands and Makefiles. Log on to engsoft.rutgers.edu Open SSH Secure Shell – Quick Connect Hostname: engsoft.rutgers.edu Username/password:
1 Basics of Linux On linux machine: Login at your home directory Open a “shell” or “terminal” or “xterm” workspace (4) On windows machine Intall linux.
CS 117 Section 2 + KNET Computer accounts – ed to KNET students –Change password Homework 1 Lab Tutors –In lab for next 2 weeks –Will help you with.
Git. What’s Git? A British swear A Distributed Version Control System Developed in 2005 by Linus Torvalds for use on the Linux Kernel Git Logo by Jason.
Developing C/C++ applications with the Eclipse CDT David Gallardo.
Drexel University Software Engineering Research Group Git for SE101 1.
Version Control Systems academy.zariba.com 1. Lecture Content 1.What is Software Configuration Management? 2.Version Control Systems (VCS) 3.Basic Git.
Chapter Ten g++ and make1 System Programming Software Development: g++ and make.
1.8: Perimeter, Circumference, and Area
INCS Virtual Data Center Security using Linux.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Intro to Git presented by Brian K. Vagnini Hosted by.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Introduction to Git Yonglei Tao GVSU. Version Control Systems  Also known as Source Code Management systems  Increase your productivity by allowing.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
Dayu Zhang 9/10/2014 Lab03. Outline Brief Review of the 4 Steps in Hello.cpp Example Understand endl and \n Understand Comment Programming Exercise -
INTRODUCTION TO GIT. Install Egit for eclipse Open eclipse->Help->Install New Software Search for one of the following -
Technical Presentation by: David Spano. About Git (VCS) Simple Git Commands Branching Github Git GUI Summary.
Carl’s Ultra-Basic Guide to the Command Line and Git Carl G. Stahmer Director of Digital Scholarship cstahmer UD Davis Data Science.
Using Subversion for Source Code Control Michael McLennan HUBzero® Platform for Scientific Collaboration Purdue University This work licensed under Creative.
Programming C++ in Linux by various IDEs and editors by: Danial Khashabi Master: Dr.B.Taheri November 2008.
Backing up a machine with git
Version Control Systems
CS5220 Advanced Topics in Web Programming Version Control with Git
Introduction to GitHub
Polygons, Perimeter, & Area
How to Program.
M.Sc. Juan Carlos Olivares Rojas
EE516: Embedded Software Project 1
Chapter 11 Command-Line Master Class
Open Source Software Development Environment
L – Modeling and Simulating Social Systems with MATLAB
Git-Github Safa Prepared for the course COP4331 – Fall 2016.
Setting up Git, GitBash, and GitHub
L – Modeling and Simulating Social Systems with MATLAB
C Programming Lecture-1 Overview and Environment Setup
CS5220 Advanced Topics in Web Programming Version Control with Git
Git branches and remotes
Computer Engineering 1nd Semester
A Guide to Unix Using Linux Fourth Edition
By Jonathan Rinfret CREATING A BASH SCRIPT By Jonathan Rinfret
Editor, Compiler, Linker, Debugger, Makefiles
Sign in on the attendance sheet!
Version Control Systems
Linux.
Lab 1 introduction, debrief
Akshay Narayan git up to speed with RCS Akshay Narayan
SIG: Open Week 1: GitHub Tim Choh.
find the perimeter of the new rectangle !
Git-Github Tools Prepared for COP4331. Git-Github Tools Prepared for COP4331.
Getting Started: Developing Code with Cloud9
Transformations: Dilations
Header files.
Version control with Git Part II
Setting up CDT Makefile project
Version Control System - Git
Version control with Git
Class Projects and Environment
Introduction to Git and GitHub
Convert an Eclipse Project to a Git repository and push up to GitHub
Yung-Hsiang Lu Purdue University
Similarity and Transformations
Version/revision control via git
Preparation for Assignment 2
Git GitHub.
Area of Regular Polygons and Circles
Presentation transcript:

Problem. A program is needed to print the properties of a number of shapes (e.g., Polygon, Circle, etc.) from an input file. The information includes -- descriptive information (name of the shape, vertices in polygon, center and radius in circle) -- area, and -- perimeter.

P10: Read shapes from file vP11: Add descriptive information vP12: add circle, point, etc. P13: add a print function

P11: Add descriptive information convex polygon 3 (0,0), (3,0), (3,4) Area 6 Perimeter 12 {convex polygon, 3, [(0,0), (3,0), (3,4)], 6, 12}

{Circle, (0,0), 1}

Exercise: Sort a number of shapes by their perimeter in the increasing order (shapes with smaller perimeter in front) Do this with an unit test.

Given a unit square P={(0,0),(1,0),(1,1),(01)} apply linear transformation M to it https://en.wikipedia.org/wiki/Matrix_%28mathematics%29#Linear_transformations

Goodbye code::blocks! Why Platform Compatibility: you want your project to compile across multiple platforms without modification, e.g., windows, Ubuntu, OSX, … gcc is available on all of them but not code::blocks (and many other IDEs) So you need a platform independent way of developing your C++ program

Software stack for platform independence Compiler: gcc Builder: make Editor: atom Version control: git Hello mingw-64 (gcc, make) , atom, and git (git and bash)!

Windows Mingw-w64 atom git Windows

Ubuntu/OSX/other Linux-based atom git gcc Ubuntu/OSX/…(Linux-based)

makefile CXXFLAGS = -O3 -o hello.exe -L./libCppUnitLite LIBS = ./cppunitlite/libCppUnitLite.a hello.exe: hello.cpp g++ hello.cpp $(LIBS) $(CXXFLAGS) clean: rm hello.exe

Version control with git Open git bash on your working directory git init vi .gitignore git add <files> git status git commit editor is vim git log --oneline git checkout version git checkout master -f