You are on page 1of 2

Daspro Practice | Micky

Practice Module 3
Variable Data Type & Operator
NIM/Name: ……………………………..
The objective of this module is student have capability to :
1. Distinguish the characteristics of each basic data type
2. Determine the appropriate data type to solve the given problem
3. Create a variable of base type and name it accordingly
4. Perform variable value manipulation with the appropriate operator
5. Perform input and output for each data type

Problem 1: Introduction to the Programming Environment


A piece of rope is cut into 5 pieces using an arithmetic sequence, with the shortest cut being 1.2cm
and the longest being 2.4cm. Calculate the length of the string before cutting. (Solve this problem
using the formula of Arithmetic sequence)

What are the input and output for this program? What process needed to calculate the length?

Write the algorithm (any notation you choose) here.

Copy the text of your code here.

Show the result of your program (use the snipping tool to capture image) and describe it.

Problem 2: Newton’s 2nd Law of Motion


a. What is the net force required to give an automobile of mass 1600 kg an acceleration of 4.5 m/s 2 ?
b. What is the acceleration of a wagon of mass 20 kg if a horizontal force of 64 N is applied to it?
(ignore friction)
c. What is the mass of an object that is experiencing a net force of 200 N and an acceleration of 500
m/s2?

1
Daspro Practice | Micky

Determine and write down the formula used to solve problems a to c below.

Convert the formula that you have created into algorithm notation, then write it below.

Write the algorithm (any notation you choose) here.

Copy the text of your code here.

Show the result of your program (use the snipping tool to capture image) and describe it.

Conclusion
What do you learn from this practicum? Describe the conclusions that you obtained!

Submission:
Save the report with name P03_NIM.docx and your program files in folder named P03_NIM, upload your
work in zip file to http://learning-if.polibatam.ac.id.

You might also like