This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 129cf6367be7293bd524d2db4a75cc62f808e73f.doc Page 1 of 2 COS120 Software Development Using C++ Homework 1 Elementary Skills in Programming Don’t forget: Paper record to be presented before the end of next class Tasks: Version 1.4 • Write a program that reads and stores the coordinates (X,Y) in Cartesian Coordinate System of two points. The program should print the distance between these points. Comment lines to be inserted. • The triangular numbers are those resulting from the sum of the first n whole numbers. So the first four are:1; 3 (= 1 + 2); 6 (= 1 + 2 + 3) and 10 (= 1 + 2 + 3 + 4). Write a program that reads integer value and displays all triangular numbers between 1 and the input integer value. Comment lines to be inserted. Hint: Write appropriate number of comment lines. Prepare, P lease the paper record using the following template for the header page: COS120 Software Development Using C++ Student: Ivalina Petrova Homework Nmr 01 Tasks: • Write a program that reads and stores the coordinates (X,Y)...
View Full Document
- Fall '08
- Cartesian Coordinate System, Polar coordinate system, comment lines