1 / 11

computer science

CSCI 1001. overview of. computer science. SOFTWARE DESIGN & PROGRAMMING. programming language. IN 13 LOAD 11 COMPARE 13 JUMPEQ 9 LOAD 12 COMPARE 13 JUMPLT 0 INCREMENT 14 JUMP 0 OUT 14 HALT -1 0 0. LOOP:. AGE V_END AGE END V_21 AGE LOOP COUNT

julie
Télécharger la présentation

computer science

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSCI 1001 overview of computer science SOFTWARE DESIGN & PROGRAMMING

  2. programming language

  3. IN 13 LOAD 11 COMPARE 13 JUMPEQ 9 LOAD 12 COMPARE 13 JUMPLT 0 INCREMENT 14 JUMP 0 OUT 14 HALT -1 0 0 LOOP: AGE V_END AGE END V_21 AGE LOOP COUNT LOOP COUNT 1101 1101 0000 1011 0111 1101 1010 1001 0000 1100 0111 1101 1011 0000 0100 1110 1000 0000 1110 1110 1111 1111 1111 1111 0001 0101 0000 0000 0000 0000 END: V_END: V_21: AGE: COUNT:

  4. #include <iostream.h> intmain(intargc, char **argv) { int age; int count = 0; while(!cin.eof()) { cin >> age; if (age >= 21) { count = count + 1; } } cout << count; return 0; }

  5. import sys count = 0 for age in sys.stdin: if (int(age) >= 21): count = count + 1 print count

  6. software engineering

  7. Waterfall Model Requirements Design Implementation Testing Maintenance

  8. Design

  9. Implementation & Testing

  10. Design Requirements Prototype Evaluation

  11. http://cs1001.us/ Please read Sections 1 and 2 of the Python chapter for Monday

More Related