Here are some optional materials that hopefully can offer some thoughts.

computer science

Description

MODULE 2: ASSIGNMENT

MODULE 2: IMPERATIVE PROGRAMMING LANGUAGES (CHAPTER 2)

THIS WEEK’S HOMEWORK CONSISTS OF THESE EXERCISE PROBLEMS:

Exercise Problems:

Page 48, Exercise 2.11

1.     Problem 1

2.     Problem 2

3.     Problem 3

STRATEGY FOR SUCCESS:

Read Chapter 2

Please answer each item separately and disjointly (i.e. do not lump everything into a huge chunk of a run-on essay/solution).

Please include each question/problem in its entirety before answering. Please start a new page with each item. This is to ensure that there is no confusion as to which item you are answering in your ensuing answer section. Please number each item clearly. This particularly important for the Exercise Problems. If there is any discrepancy in textbook version, favorable credits can be awarded in your advantage if the intended original Exercise Problem has been included and clearly numbered.

You should offer examples for all items including plenty of technical and coding details with supporting visualizations. Your examples should be compact and meaningful and should not be “space eaters” (for example, giving pages of broad-angled codes).

 

 

 

MODULE 2: ADDITIONAL RESOURCES

Here are some optional materials that hopefully can offer some thoughts. You are encouraged to go above and beyond and research other course-related information that may interest you. Please feel free to share your findings with the class during discussion.

Videos:

Control Structures - while loop - do-while loop - for loop

https://www.youtube.com/watch?v=21l11_9Osd0&t=11s

Nested For Loops (examples in Java)

https://study.com/academy/lesson/nested-for-loops-in-java.html

Infinite While Loops (examples in Java)

https://study.com/academy/lesson/infinite-while-loops-in-java.html

What is CONTROL FLOW?

https://www.youtube.com/watch?v=UwZnuRWdwro

Operators And Expressions

https://www.youtube.com/watch?v=ajH54_s7nuc

Declarative programming

https://www.youtube.com/watch?v=2MBKKAdqrzo

Imperative programming

https://www.youtube.com/watch?v=aqAW0bKhEAI

imperative vs functional

https://www.youtube.com/watch?v=n40Nz2YwRls

Loops and variables, declarative vs. imperative

https://www.youtube.com/watch?v=K25aOWFEPZc

 

 

Goals

After completing this module, you will be able to do the following:

  • Language concepts and their compilation.
  • The architecture of a C machine.
  • Simple Expressions and Assignments.
  • Statements and Statement Sequences.
  • Conditional and Iterative Statements.

Overview

Imperative Programming Languages offer the concepts of variables, expressions, explicit specification of control flow and functions which have to be mapped onto concepts and control sequences of virtual or real computers. The virtual machine is called C-Machine or CMA .


Related Questions in computer science category