Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
RAPORT
Lucrarea de laborator nr.4
la Programarea Calculatoarelor
A efectuat:
st. gr. FAF-171 Țîrdea Nicoleta
A verificat:
dr., conf.univ. M. Kulev
Chişinău -2017
Laboratory work nr.4
Topic: 1-D Array
Purpose of the work: Studying and using the basic language instructions
for the processing and modification of unidimensional massifs.
Topic description : 1-D array -it is a string of uniformly arranged elements in a
row. Every element of a one-dimensional massive has a coordinate (serial
number in massif)
Problem condition (task): To write a program that will process whole vectors.
Option 10 : Are given two unidimensional array F [n] andG [n]. Calculate the
value of the expression T = eS / K+ (S * K), where: S is the sum of the elements
on the odd positions of mass F, and K - quantity of the elements in odd
positions of the massive G.
Flowchart:
*The Flowchart of the program can be seen on the next page
Code of programm:
Bibliography:
1. Derevlenco, Vasile și alț. Programare : Indicaţii de laborator. Partea 1. –
Ch.: Tehnica – UTM, 2014. http://library.utm.md
2. https://www.programiz.com/cpp-programming/do-while-loop
3. https://www.wolframalpha.com/