CECS2203: Computer Programming I Lab


Dr. Luis M. Vicente

Departamento de Ingeniería Eléctrica, Computadoras y Ciencias de Computadoras
Universidad Politécnica de Puerto Rico


| Prontuario | Reglas | Objetivos | Temas y fechas | Notas de otros trimestres |


Trimestre FA 14
Temas (pdf)
| topicos |
Notas de clase. Leer estas notas antes de empezar a hacer los ejercicios del lab.
| ApendiceA | ApendiceB | Cap1 | Cap2 | Cap3 | Cap4 | Cap5 | Cap61 | Cap62 | Cap7 | Cap8 | Cap9 | Cap10 |cap13 |
Todos los Labs (codigo fuente)
| AllLabs |
Document Report Template
| ReportTemplate |
Circles Class in separate files
circleszip
Matrix Class in separate files
matrixzip | explanation
MinGW y Notepad ++ listo para usar descomprimir (unzip) en un USB y usar!!
MinGW
Como crear una cuenta en Clould Nine http://c9.io
| instrucciones |
Ejemplo Compiler on line
http://c9.io
imagenEjemplo
MinGW y Notepad++
| notepad++ | minGW |

 

Semana fecha
Temas, fechas de asignaciones y exámenes

S1: 10-16 agosto
S2: 17- 23 agosto

  • Introduction to the Laboratory
  • Course topics (Syllabus) 
  • Evaluation and assessment rules
  • Use of compilers MinGw y Notepad++, Visual Studio.
  • Diagnostic test.
  • Lab Set 3: Expression, Input, Output and Data Conversion
  • Lab 3.1 (bill)
    Lab 3.2 (tabledata)
    Lab 3.3 (righttrig)
    Lab 3.4 (batavg)
    Lab 3.5 (optional) (Student Generated Code)

    • Quiz Lab 03

S3: 24-30 agosto
S4: 31-6 septiembre

  • Lab Set 4: Conditional Statements

Lab 4.1 (initialize).
Lab 4.2 (grades)
Lab 4.3 (LogicalOp)
Lab 4.4 (switch)
Lab 4.5 (Optional) (Student Generated Code)
Option 1: Write a program that prompts the user for their quarterly water bill
for the last four quarters.
Option 2: The local t-shirt shop sells shirts that retail for $12.
Option 3: The University of Guiness charges $3000 per semester for in-state
tuition and $4500 per semester for out-of-state tuition.

  • Quiz Lab 04
  • Lab Set 5: Loops

    Lab 5.1 (while),
    Lab 5.2 (Dowhile),
    Lab 5.3 (For)and
    Lab 5.4 (Nested)
    Lab 5.6 (Optional) (Student Generated Code)

    • Quiz Lab 05

S5: 7-13 septiembre
S6: 14-20 septiembre

  • Empiecen a trabajar en el Lab Set 6: Introduction to Void Functions (Procedures)
  • El Quiz lo haremos la semana que viene!!
  • Lab Set 6.1: Introduction to Void Functions (Procedures) ,Functions that Return a Value

Lab 6.1 (proverb) and
Lab 6.2 (newproverb)
Lab 6.3 (paycheck) ,
• Lab 6.4
(Student generated code: swap numbers)
• Lab 6.6 (money) and
• Lab 6.7
(convertmoney)
• Lab 6.8 (Optional) (Student Generated code: Convert Miles to Kilometers)

  • Quiz Lab 06

S7: 21-27 septiembre
S8: 28-4 octubre

  • Lab Set 7: Arrays

Lab 7.1 (testscorecpp),
• Lab 7.3
(pricecpp) and
• Lab 7.4 (Optional) (Student Generated code: Complete Age Population)

S9: 5-11 octubre
S10: 12-18 octubre

  • Lab Set 10: Characters and Strings

    • Lab 10.1(american_equities)
      Lab 10.2 (case_convert)
      Lab
      10.3 (grades y gradestxt)
      • Lab 10.4 (Optional) (Student Generated: String Cat) and
      • Lab 10.5 (Optional) (Student Generated Code: Palindrome)
    • Quiz Lab 10
  • Lab Set 9: Pointers

S11: 19-25 octubre
S12: 26-1 noviembre

  • Lab Set 13: Classes

Lab 13.1 (square) and
Lab 13.2
(circles)
Lab 13.3 (floatarray y temperaturestxt) and
• Lab 13.5 (Optional) (Student Generated Code: Class Savings Account)

  • Quiz Lab 13
  • Examenes finales
  • SI USTED YA COMPLETO TODOS LOS LABS Y TOMADOS LOS EXÁMENES SEMANALES USTED YA HA TERMINADO... SUERTE!!!

 

 

 

 

 

 

 

 

 

 

 

   

 

 


Profesor
  • Dr. Luis M. Vicente
  • Oficina: DSP Lab L 310A (dentro del salón de Capstone)
  • Horas de oficina: martes y jueves 12:00-2:00pm
  • Teléfono: 787 622 8000 - ext: 344 Fax: 787 760 7815
  • Correo electrónico : lvicente @ pupr . edu
  • Internet: http://www.lmvicente.com/cecs2203.htm
Prerequisitos
  • CECS 2202 (Jordan, Tallaj 05 20, ...)
Libro de Texto
  • Tony Gaddis, Starting Out with C++; From Control Structures through Objects, Seventh Edition, Prentice Hall, 2011, ISBN 978-0-13-2576253.
Referencias bibliográficas
  • Gary J. Bronson. “C++ for Engineers and Scientists”. Second Edition, Thomson, 2005, ISBN13: 9780534950606.
  • 2. Gary Bronson. “Object-Oriented Program Development Using C++: A Class-Centered Approach”. First Edition, Thomson, 2005, ISBN-13: 9780619159665.
  • 3. Nell Dale and Chip Weems. “Programming and Problem Solving”. Forth Edition, Jones and Bartlett, 2004. ISBN- 13:9780763707989.
  • 4. James P Cohoon and Jack W Davidson. “C++ Program Design”. Third Edition, Mc Graw Hill, 2002. ISBN-0-07-2411663-5.
Formato de examen
  • Trabajar y realizar los problemas del Laboratorio antes de terminar cada sesión.
Reglas de evaluación
  • Cada clase el estudiante deberá Completar los ejercicios de la semana. No hace falta entregarlos al profesor. Deben hacer quizzes semanales para verificar que absorben y retienen los conocimientos adquiridos
  • Cada laboratorio cuenta un 4.5% del total del lab.
Reglas del curso
  • Solamente se garantizan comunicaciones si usan su e-mail de la institución
  • USEN SIEMPRE SU E-MAIL DE LA INSTITUCIÓN. MENSAJES PROCEDENTES DE E-MAILS PERSONALES SERÁN RECHAZADOS.
  • Los mensajes deberán titularse (subject) CECS2203 nombre apellido – (motivo del e-mail). Así evitaremos perdidas innecesarias.
  • El estudiante debe hacer los problemas de la semana y Completarlos a tiempo. Se rechazarán los trabajos tardíos.
  • Las fechas oficiales serán expuestas en el calendario del curso de la página web lmvicente.com/mmp6141 y en Blackboard (BB).
  • El estudiante es responsable de leer todos los anuncios expuestos en la página web y en BB, por favor activen su cuenta en BB Enterprise.
Objetivos
  • Los estudiantes se familiarizaran con los siguientes temas:
  • Implement and test simple programs that follow modular decomposition and/or object-oriented approach (a3, b.1, b.2, b.3, b.4, c.1, c.2, e.1, e.2, e.3, g.1, k.1, k.2, k3)
Contenido del curso
  • 1. Introduction to the lab
  • 2. Lab. Exercise 1: Simple C++ program
  • 3. Lab. Exercise 2: Selection Structures
  • 4. Lab. Exercise 3: Repetition Structure
  • 5. Lab. Exercise 4: Math Library Functions
  • 6. Lab. Exercise 5: User defined functions
  • 7. Lab. Exercise 6: Arrays and Functions
  • 8. Lab. Exercise 7: Sorting Arrays and Linear Search
  • 9. Lab. Exercise 8: Arrays of characters
  • 10. Lab. Exercise 9: String library
  • 11. Lab. Exercise 10: Pointers
  • 12. Lab. Exercise 11: Pointers and Functions

 

Trimestre Su 14
Temas (pdf)
| topicos |
Notas de clase. Leer estas notas antes de empezar a hacer los ejercicios del lab.
Todos los Labs (codigo fuente)
Document Report Template
Circles Class in separate files
Matrix Class in separate files
MinGW y Notepad ++ listo para usar descomprimir (unzip) en un USB y usar!!
Como crear una cuenta en Clould Nine http://c9.io
Ejemplo Compiler on line
http://c9.io
MinGW y Notepad++

 

Trimestre Sp14
Temas (pdf)
| topicos |
Notas de clase. Leer estas notas antes de empezar a hacer los ejercicios del lab.
Todos los Labs (codigo fuente)
Document Report Template
Circles Class in separate files
Matrix Class in separate files
MinGW y Notepad ++ listo para usar descomprimir (unzip) en un USB y usar!!
Como crear una cuenta en Clould Nine http://c9.io
Ejemplo Compiler on line
http://c9.io
MinGW y Notepad++

 

Trimestre Wi13
Temas (pdf)
| topicos |
Notas de clase (pdf)
Codigo fuente Lab3

Lab Set 3: Expression, Input, Output and Data Conversion

Lab 3.1 (bill)
Lab 3.2 (tabledata)
Lab 3.3 (righttrig)
Lab 3.4 (batavg)
Lab 3.5 (optional) (Student Generated Code)

Codigo fuente Lab4

Lab Set 4: Conditional Statements

Lab 4.1 (initialize).
Lab 4.2 (grades)
Lab 4.3 (LogicalOp)
Lab 4.4 (switch)
Lab 4.5 (Optional) (Student Generated Code)
Option 1: Write a program that prompts the user for their quarterly water bill
for the last four quarters.
Option 2: The local t-shirt shop sells shirts that retail for $12.
Option 3: The University of Guiness charges $3000 per semester for in-state
tuition and $4500 per semester for out-of-state tuition.

Codigo fuente Lab5

Lab Set 5: Loops

Lab 5.1 (while),
Lab 5.2 (Dowhile),
Lab 5.3 (For)and
Lab 5.4 (Nested)
Lab 5.6 (Optional) (Student Generated Code)

Codigo fuente Lab6

Lab Set 6.1: Introduction to Void Functions (Procedures) ,Functions that Return a Value

Lab 6.1 (proverb) and
Lab 6.2 (newproverb)
Lab 6.3 (paycheck) ,
• Lab 6.4
(Student generated code: swap numbers)
• Lab 6.6 (money) and
• Lab 6.7
(convertmoney)
• Lab 6.8 (Optional) (Student Generated code: Convert Miles to Kilometers)

Codigo fuente Lab7

Lab Set 7: Arrays

Lab 7.1 (testscorecpp),
• Lab 7.3
(pricecpp) and
• Lab 7.4 (Optional) (Student Generated code: Complete Age Population)

Codigo fuente Lab8

Lab Set 8: Searching and Sorting Arrays

Lab 8.1 (linearsearch),
Lab 8.2 (binary_search) and
Lab 8.3 (bubble_sort,y selectionsort)

Codigo fuente Lab 10

Lab Set 10: Characters and Strings

Lab 10.1(american_equities)
Lab 10.2 (case_convert)
Lab
10.3 (grades y gradestxt)
• Lab 10.4 (Optional) (Student Generated: String Cat) and
• Lab 10.5 (Optional) (Student Generated Code: Palindrome)

Codigo fuente Lab 9 y 13

Lab Set 9: Pointers

Lab 9.1 (pointers)


Lab Set 13: Classes

Lab 13.1 (square) and
Lab 13.2
(circles)
Lab 13.3 (floatarray y temperaturestxt) and
• Lab 13.5 (Optional) (Student Generated Code: Class Savings Account)


Document Report Template
Circles Class in separate files
Matrix Class in separate files
Examen diagnostico
| exdiag |
MinGW listo para usar
Ejemplo Compiler on line
http://c9.io
Compilers y Notepad++

 

Trimestre Fa13
Temas (pdf)
| topicos |
Notas de clase (pdf)
Codigo fuente Lab3

Lab Set 3: Expression, Input, Output and Data Conversion

Lab 3.1 (bill)
Lab 3.2 (tabledata)
Lab 3.3 (righttrig)
Lab 3.4 (batavg)
Lab 3.5 (optional) (Student Generated Code)

Codigo fuente Lab4

Lab Set 4: Conditional Statements

Lab 4.1 (initialize).
Lab 4.2 (grades)
Lab 4.3 (LogicalOp)
Lab 4.4 (switch)
Lab 4.5 (Optional) (Student Generated Code)
Option 1: Write a program that prompts the user for their quarterly water bill
for the last four quarters.
Option 2: The local t-shirt shop sells shirts that retail for $12.
Option 3: The University of Guiness charges $3000 per semester for in-state
tuition and $4500 per semester for out-of-state tuition.

Codigo fuente Lab5

Lab Set 5: Loops

Lab 5.1 (while),
Lab 5.2 (Dowhile),
Lab 5.3 (For)and
Lab 5.4 (Nested)
Lab 5.6 (Optional) (Student Generated Code)

Codigo fuente Lab6

Lab Set 6.1: Introduction to Void Functions (Procedures) ,Functions that Return a Value

Lab 6.1 (proverb) and
Lab 6.2 (newproverb)
Lab 6.3 (paycheck) ,
• Lab 6.4
(Student generated code: swap numbers)
• Lab 6.6 (money) and
• Lab 6.7
(convertmoney)
• Lab 6.8 (Optional) (Student Generated code: Convert Miles to Kilometers)

Codigo fuente Lab7

Lab Set 7: Arrays

Lab 7.1 (testscorecpp),
• Lab 7.3
(pricecpp) and
• Lab 7.4 (Optional) (Student Generated code: Complete Age Population)

Codigo fuente Lab8

Lab Set 8: Searching and Sorting Arrays

Lab 8.1 (linearsearch),
Lab 8.2 (binary_search) and
Lab 8.3 (bubble_sort,y selectionsort)

Codigo fuente Lab 10

Lab Set 10: Characters and Strings

Lab 10.1(american_equities)
Lab 10.2 (case_convert)
Lab
10.3 (grades y gradestxt)
• Lab 10.4 (Optional) (Student Generated: String Cat) and
• Lab 10.5 (Optional) (Student Generated Code: Palindrome)

Codigo fuente Lab 9 y 13

Lab Set 9: Pointers

Lab 9.1 (pointers)


Lab Set 13: Classes

Lab 13.1 (square) and
Lab 13.2
(circles)
Lab 13.3 (floatarray y temperaturestxt) and
• Lab 13.5 (Optional) (Student Generated Code: Class Savings Account)


Document Report Template
Circles Class in separate files
Matrix Class in separate files
Examen diagnostico
| exdiag |
MinGW listo para usar
Ejemplo Compiler on line
http://c9.io
Compilers y Notepad++

 

Trimestre Wi12
Temas (pdf)
| topicos |
Notas de clase (pdf)
| ApendiceA | ApendiceB | Cap1 | Cap2 | Cap3 | Cap4 | Cap5 | Cap61 | Cap62 | Cap62 | Cap7 | Cap8 | Cap9 | Cap10 | cap9 | cap13 |
Codigo fuente Lab3

| bill | batavg | righttrig | tabledata |

Codigo fuente Lab4
| grades.cpp | initialize.cpp | LogicalOp.cpp | switch.cpp |
Codigo fuente Lab5
| billfile.cpp | Dowhile.cpp | For.cpp | Nested.cpp | Sentinel.cpp | while.cpp | transaction.dat |
Codigo ejemplos de clase Lab5
Codigo fuente Lab6
| money | convertmoney | newproverb | paycheck | proverb | scope |
Codigo ejemplos de clase Lab6
Codigo fuente Lab7
| gradfile.txt | pricecpp | quartsalcpp | studentcpp | testscorecpp |
Codigo ejemplos de clase Lab7
Codigo fuente Lab8
| binary_search | bubble_sort| linearsearch | selectionsort |
Codigo fuente Lab 10
| american_equities | case_convert | grades | gradestxt |
Codigo fuente Lab 9 y 13
| circles | darray | dynamic | floatarray | inventory | inventorydat | pointers | square | temperaturestxt |
Circles Class in separate files
circleszip
Examen diagnostico
| exdiag |

Proyecto

Fecha límite 20 de febrero!!

| projecto instrucciones | matrixfiles | flowchartexample |

El proyecto debe tener como minimo:

  • Cover page (Title, Name, Stud #, Course Section, Trimester, Date, Prof name).
  • Table of contents (Intro-----1, Methodology-----2.... etc).
  • Introduction. (one paragraph, of what is explained in this document) .
  • Methodology (describe the code, class used, etc. Do not Print here the code).
    Use flowchart!!
  • Results (printout of results).
  • References (de donde han sacado informacion).
  • Apendix (printout of the code).
  • EXTRA POINTS IF YOU MODIFY THE CODE TO BE ABLE TO MULTIPLY TWO MATRICES


 

Notas de clase trimestres pasados

 

 

Trimestre Fa12
Temas (pdf)
| topicos |
Notas de clase (pdf)
| ApendiceA | ApendiceB | Cap1 | Cap2 | Cap3 | Cap4 | Cap5 | Cap61 | Cap62 | Cap62 | Cap7 | Cap8 | Cap9 | Cap10 | cap9 | cap13 |
Codigo fuente Lab3

| L31bill | L34batavg | L33righttrig | L32tabledata |

Codigo fuente Lab4
| grades.cpp | initialize.cpp | LogicalOp.cpp | switch.cpp |
Codigo fuente Lab5
| billfile.cpp | Dowhile.cpp | For.cpp | Nested.cpp | Sentinel.cpp | while.cpp | transaction.dat |
Codigo ejemplos de clase Lab5
| main | mainex01 | mainex02 | mainex03 | mainex04 | mainex04_2 | mainex05 | mainex06 |
Codigo fuente Lab6
| money | convertmoney | newproverb | paycheck | proverb | scope |
Codigo ejemplos de clase Lab6
| main | main1 | main2 | main3 | main4 |
Codigo fuente Lab7
| gradfile.txt | pricecpp | quartsalcpp | studentcpp | testscorecpp |
Codigo ejemplos de clase Lab7
| main | main1 | main2 | main3 | main4 | main5 |
Codigo fuente Lab8
| american_equities | binary_search | bubble_sort | case_convert | grades | gradestxt | linearsearch | selectionsort |
Codigo ejemplos de clase Lab 8 y 10
| american_equitiesCLASSKEY | binary_searchCLASSKEY | bubble_sortCLASSKEY | case_convertCLASSKEY | linear_searchCLASSKEY |
Codigo fuente Lab 9 y 13
| circles | darray | dynamic | floatarray | inventory | inventorydat | pointers | square | temperaturestxt |
Examen diagnostico
| exdiag |
Proyecto
| projecto instrucciones |

 

Luis M Vicente López
Profesor Asociado
Departamento de Ingeniería Eléctrica, Computadoras y Ciencias de Computadoras
Universidad Politécnica de Puerto Rico
Avenida Ponce de León 377
Hato Rey, 00919, Puerto Rico

Officina: L 308B (DSP Lab)
Tel: (787) 662 8000

Fax: (787) 760 7815

lvicente

Inicio Dr. Vicente cursos

© Luis M Vicente.