This is the third week of the lab pretest task. which displays an even number of 25-70 recursively. But the problem I created a flowchart that is still in the form of an iterative loop. can anyone help? 😉

The following flowhart using raptor: Continue reading ‘weeks 3 – Practicum algorithms and programming program displays the even numbers from 25 to 70 recursively’

## weeks 3 – Practicum algorithms and programming program displays the even numbers from 25 to 70 recursively

•April 14, 2012 • Leave a Comment## Reflection Week 6 Algorithms and Programming (Recursive)

•April 11, 2012 • Leave a CommentAt the sixth meeting this week about the material Discusses recursive. Mr Wahyu describes what a recursive function.

is a recursive function that can call themselves.

we are given an example in finding gcd (iterative function)

description

while (d> 0)

r = c% d

c = d

d = r

return (c)

Continue reading ‘Reflection Week 6 Algorithms and Programming (Recursive)’

## weeks 2 – Practicum algorithms and programming (selection and condition) program to display the name of month

•April 5, 2012 • Leave a CommentThe following is the output c + + programming

Continue reading ‘weeks 2 – Practicum algorithms and programming (selection and condition) program to display the name of month’

## weeks 2 – Practicum algorithms and programming (selection and condition) What determines who entered Leap Year or Not

•April 5, 2012 • Leave a CommentHere is a question given by the assistant to work as a lab assignment for the second week.

Question :

- Make a program to determine whether or not a leap year

The following is an overview flowchart using RAPTOR:

Continue reading ‘weeks 2 – Practicum algorithms and programming (selection and condition) What determines who entered Leap Year or Not’

## Meeting of 5 – cases of Subprogram 5.4 (exercises)

•April 5, 2012 • Leave a CommentThe following is the third exercise of the material sub-program:

question:

Make two integer multiplication functions using the sum operator.

analysis:

Suppose a multiplied by b (input)

process:

a x b = a + a + a + … + a (b times as much)

Continue reading ‘Meeting of 5 – cases of Subprogram 5.4 (exercises)’

## Meeting of 5 – cases of Subprogram 5.3 (exercises)

•April 5, 2012 • Leave a CommentQuestion :

By using the ln and exp functions, create function to generate the value of xy

analysis:

By using properties of logarithms:

ln (xy) = y * ln (x)

exp (ln (xy)) = exp (y * ln (x))

xy = exp (y * ln (x))

Continue reading ‘Meeting of 5 – cases of Subprogram 5.3 (exercises)’

## Meeting of 5 – cases of Subprogram 5.2 (exercises)

•April 5, 2012 • Leave a CommentThis time I tried to do the exercises of the given material, namely the subprogram.

Problem:

Make a function that determines the largest value of two integers.

Maximum function (input a, b: integer): integer

description

if (a> b) then return a;

else return b

Continue reading ‘Meeting of 5 – cases of Subprogram 5.2 (exercises)’