Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary M&S 1 Basic Programming

Rating
3.0
(1)
Sold
6
Pages
12
Uploaded on
15-05-2020
Written in
2019/2020

This is a comprehensive summary of M&S 1 Basic Programming.

Institution
Course

Content preview

M&S: basic program
Lecture 1 Basic Programming
A computer program is a sequence (volgorde) of instructions for a computer. A programming
language is a set of rules for communicating an algorithm. An algorithm is a step-by-step
procedure for solving a problem. The language from programming is VBA (Visual Basic of
Applications) and it has words, symbols and grammatical rules. The grammatical rules are
called Syntax.

Input  Computer Program  Output

Steps in programming ‘Waterfall Model’
Requirements Product requirements document
Design Design the program
Implementation Implement the program using some programming language
Verification Test the program
Maintenance keep the program up-to-date

A Pseudocode is a compact and informal high-level description of a computer programming
algorithm. Pseudo code is very similar to everyday English. A Pseudocode is made up of the
following logic structures:
Sequence Logic Volgorde van activiteiten. Give an answer or give output.
Selection Logic Je moet een keuze maken waarmee je kan kiezen welke instructie
uitgevoerd moet worden.
Iteration Logic Dit is het herhalen van een instructie gebaseerd op de conditie.

Pseudocodes can be visualized in a flowchart. A flowchart is a graphical representation of
the sequence of operations in an information system or program. It is a breakdown of
individual steps.

, Workshop 1
The basics of VBA:
Code Je voert acties uit in VBA door de eerder ingevulde VBA-code uit te voeren.
Module VBA-modules worden opgeslagen in een Excel werkmapbestand, maar je kan
de module bekijken of bewerken met VBE (Visual Basic Editor). Een VBA-
module bestaat uit procedures.
Procedures Een procedure is een computercode die een actie uitvoert. VBA ondersteunt
twee soorten procedures: Sub procedures and Function procedures.
Objects VBA veranderd objecten in Excel. Excel biedt meer dan 100 klassen met
objecten aan om te bewerken.

Create a module:
Een module is het venster waarin je de hele code gaat schrijven en opslaan. Die codes
noemen
we ook wel Macros.

A code window can hold four types of codes:
1. Sub procedures Een procedure is een reeks instructies dat acties laat
zien.
2. Function procedures Een functie is een reeks instructies dat terugkomt als
een waarde of een array.
3. Declarations Een declaratie is het voorzien van informatie aan VBA.
4. Property procedures Dit zijn speciale procedures die gebruikt worden in de
klas modules.

You can add a code to a VBA module in three ways:
1. Enter the code manually
2. Copy and paste
3. Use the macro-recorder feature (Dit zet acties van Excel om in een VBA code)

Workshop 2
Een typische programmeertaak kan in twee fasen worden verdeeld:
Problem solving phase
Bepaalde volgorde van stapjes die leiden naar een oplossing = Algorithm.
1. First produce a general (algemeen) algorithm (use Pseudo code)
2. Verfijn het algoritme achtereenvolgens om stap voor stap een gedetailleerd
algoritme te krijgen, waardoor dit lijkt op een computertaal gelijk VBA.
Implementation phase
Het programma invoeren in een programmeertaal.




2

Written for

Institution
Study
Course

Document information

Uploaded on
May 15, 2020
Number of pages
12
Written in
2019/2020
Type
SUMMARY

Subjects

$10.55
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Reviews from verified buyers

Showing all reviews
1 year ago

doesn't go into depth, get what you pay for

3.0

1 reviews

5
0
4
0
3
1
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
evelyneminnaert Hogeschool van Amsterdam
Follow You need to be logged in order to follow users or courses
Sold
108
Member since
8 year
Number of followers
82
Documents
8
Last sold
2 months ago

3.5

13 reviews

5
3
4
4
3
4
2
0
1
2

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions