NIZOVI.
|
|
- Virginia Anthony
- 6 years ago
- Views:
Transcription
1 NIZOVI LINKOVI ZA KONZOLNI C# OSNOVNO Niz deklarišemo navođenjem tipa elemenata za kojim sledi par srednjih zagrada[] i naziv niza. Ako je niz višedimenzionalni između zagrada[] se navode zarezi, čiji je broj za jedan manji od dimenzija niza. Bez obzira da li je tip elemnata niza vrednosni ili referentni, niz je referentni tip podataka, pa se pri deklaraciji ne rezerviše prostor za elemente niza. Rezerviše se u toku izvršavanja aplikacije u trenutku definisanja niza Da bi se deklarisala nizovna promenljiva potrebno je: navesti tip elemenata niza, zatim uglaste zagrade kojima se specificira rang niza, i na kraju ime nizovne promenljive. Primer deklaracije promenljive: Tip[] imepromenljive; int[] MojNiz; - Tip elemenata niza može biti bilo koji tip uključujući i nizovni tip - Podržani su: a) jednodimenzionalni nizovi, b) dvodimenzionalni nizovi (matrice) c) nizovi nizova int[] MojNiz=new int[10] Pen[] olovke=new Pen[15] - definisan je niz MojNiz celih brojeva i odvojen prostor za registrovanje 10 celih brojeva pri definiciji niza Olovke odvaja se prostor za registrovanje 15 referenci (adresa) na objekte klase Pen, ali ti objekti nisu kreirani, već svi elementi niza imaju vrednost null Inicijalizacija niza: x=new int[5] 2, 33, 4, 55, 6 - može se izostaviti kapacitet niza, ako su elementi niza inicijalizovani x=new int[ ] 2, 33, 4, 55, 6 int[] y=2, 33, 4, 55, 6 int[,] matrica = new int[3,2] 1, 2, 3, 4, 5, 6 ; dvodimenzionalni niz pojedinačnom elementu niza se pristupa imeniza[indeks] indeks od 0 do n-1 (n-broj elemenata niza) 1. Unos elemenata niza textbox int[] x=new int[40]; int n=0,i=0; x[i] = Convert.ToInt32(textBox1.Text); //unesi x listbox1.items.add("x[" + i + "]=" + x[i]); i++; listbox1.text = "x[" + i + "]="; //priprema za sledeci textbox1.text = ""; n = i; //odredjivanje broja elemenata u nizu button1.enabled = false; //kraj niza, nema vise unosa button2.enabled = true; 1
2 2.Generisati niz od n celih brojeva slučajno izabranih sa intervala[a,b] int n = Convert.ToInt32(textBox1.Text); int a = Convert.ToInt32(textBox2.Text); int b = Convert.ToInt32(textBox3.Text); listbox1.items.clear(); Random R = new Random(); int[] X; X =new int[n]; for(int i=0;i<n;i++) X[i]=R.Next(a,b+1); listbox1.items.add("x["+i+"]= "+X[i]); 3.Pronaći najveći element unetog niza realnih elemenata dužine n. (Unos InputBox) using Microsoft.VisualBasic; double max; int n = Convert.ToInt32(textBox4.Text); double[] Niz = new double[n]; Niz[i] = Convert.ToDouble(Interaction.InputBox(i + ".clan", "Unos elemenata niza", "", -1, -1)); listbox2.items.add(niz[i]); max = Niz[0]; for (int i = 1; i < n; i++) if (max < Niz[i]) max = Niz[i]; textbox5.text = max.tostring(); 2
3 4. U tekstualnoj datoteci sa.txt (bin/debug) se nalazi u prvom redu dužina niza, a u ostalim redovima članovi niza. Treba pročitati i ispisati članove niza u listbox using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; void IspisiNiz(int[] a, int n, ListBox lb) lb.items.add(a[i].tostring()); StreamReader sr = new StreamReader("ElementiNiza.txt"); int n = Convert.ToInt32(sr.ReadLine()); int [] a = new int[n]; a[i] = Convert.ToInt32(sr.ReadLine()); sr.close(); IspisiNiz(a, n, listbox1); 3
4 5.Napisati metode kojima se: - generiše niz slučajnih brojeva iz intervala[a,b], a dužina niza generiše slučajnim brojem[10,100]; - generiše niz celih brojeva čitanjem iz tekstualnog fajla, gde se u prvom redu nalazi broj elemenata niza, a u svakom sledećem elementi niza; -prikazuju redom svi elementi niza u objektu klase ListBox; public Form1() InitializeComponent(); void generisi(int a, int b, Random R, out int n, out int[] x) n = R.Next(10, 101); x = new int[n]; x[i] = R.Next(a, b + 1); void citaj(string imefajla, out int[] x, out int n) StreamReader sr = new StreamReader(imeFajla); n = Convert.ToInt32(sr.ReadLine()); x = new int[n]; x[i] = Convert.ToInt32(sr.ReadLine()); sr.close(); void pisi(int[] x, int n, ListBox lb) lb.items.add(x[i]); int[] x; int n; Random R = new Random(); int a = Convert.ToInt32(textBox1.Text); int b = Convert.ToInt32(textBox2.Text); generisi(a,b,r,out n,out x); listbox1.items.clear(); pisi(x, n, listbox1); if (!File.Exists(textBox3.Text)) MessageBox.Show("Nema fajla tog imena"); return; citaj(textbox3.text, out x, out n); listbox2.items.clear(); pisi(x, n, listbox2); 4
5 6. public partial class Form1 : Form public Form1() InitializeComponent(); int[] x=new int[40]; int n=0,i=0; label1.text = "x[0]="; //inicijalizacija x[i] = Convert.ToInt32(textBox1.Text); //unesi x listbox1.items.add("x[" + i + "]=" + x[i]); i++; listbox1.text = "x[" + i + "]="; //priprema za sledeci textbox1.text = ""; n = i; //odredjivanje broja elemenata u nizu button1.enabled = false; //kraj niza, nema vise unosa button2.enabled = true; label1.text = ""; //brisemo tekst x[...]= textbox2.text = "Niz ima " + n.tostring() + " elemenata"; //n elemenata void SumaNiza(int[] x, int n) int j, s; for (j = 0, s = 0; j < n; j++) s += x[j]; textbox2.text += "Suma elemenata niza je " + s + "\r\n"; 5
6 void SrednjaVrednost(int[] x, int n) int j; float xsr; for (j = 0, xsr = 0; j < n; j++) xsr += x[j]; xsr /= n; textbox2.text += "Srednja vrednost niza je " + xsr + "\r\n"; void SumaParnih(int[] x, int n) int j, sp; for (j = 0, sp = 0; j < n; j++) if (x[j] % 2 == 0) sp += x[j]; textbox2.text += "Suma parnih elemenata niza je " + sp + "\r\n"; void BrojNegativnih(int[] x, int n) int j, brneg; for (j = 0, brneg = 0; j < n; j++) if (x[j] < 0) brneg++; textbox2.text += "Broj negativnih elemenata je " + brneg + "\r\n"; void BrojDeljSa5(int[] x, int n) int j, b5; for (j = 0, b5 = 0; j < n; j++) if (x[j] % 5 == 0) b5++; textbox2.text += "Broj elemenata deljivih sa 5 je " + b5 + "\r\n"; void MaxNiza(int[] x, int n) int j, max = int.minvalue;; for (j = 0; j < n; j++) if (x[j] > max) max = x[j]; textbox2.text += "Maksimalni element niza je " + max + "\r\n"; void Sortiran(int[] x, int n) int i, j, pom; for (i = 0; i < n - 1; i++) for (j = i + 1; j < n; j++) if (x[i] > x[j]) pom = x[i]; x[i] = x[j]; x[j] = pom; for (i = 0; i < n; i++) listbox2.items.add(x[i].tostring()); private void button3_click(object sender, EventArgs e) textbox2.text = ""; if (checkbox1.checked) SumaNiza(x, n); if (checkbox2.checked) SrednjaVrednost(x, n); if (checkbox3.checked) SumaParnih(x, n); if (checkbox4.checked) BrojDeljSa5(x, n); if (checkbox5.checked) MaxNiza(x, n); if (checkbox6.checked) BrojNegativnih(x, n); if (checkbox7.checked) Sortiran(x, n); 6
7 7. zad namespace BUBBLE SORT public partial class Form1 : Form public Form1() InitializeComponent(); int[] x=new int[40]; int n=0,i=0; void SelectionSort(int[] x, int n) listbox2.items.clear(); int i, j, pom; for (i = 0; i < n - 1; i++) for (j = i + 1; j < n; j++) if (x[i] > x[j]) pom = x[i]; x[i] = x[j]; x[j] = pom; for (i = 0; i < n; i++) listbox2.items.add(x[i].tostring()); void BubbleSort(int[] x, int n) listbox2.items.clear(); int i, j, pom; do j=0;//nema promena for (i = 0; i < n - 1; i++) if (x[i] < x[i+1]) pom = x[i]; x[i] = x[i+1]; x[i+1] = pom; j=1;// bilo je promena while (j!=0); for (i = 0; i < n; i++) listbox2.items.add(x[i].tostring()); x[i] = Convert.ToInt32(textBox1.Text); //unesi x listbox1.items.add("x[" + i + "]=" + x[i]); i++; listbox1.text = "x[" + i + "]="; //priprema za sledeci textbox1.text = ""; n = i; SelectionSort(x, n); private void button3_click(object sender, EventArgs e) BubbleSort(x, n); 7
pojedinačnom elementu niza se pristupa imeniza[indeks] indeks od 0 do n-1
NIZOVI Niz deklarišemo navođenjemtipa elemenata za kojim sledi par srednjih zagrada[] i naziv niza. Ako je niz višedimenzionalni između zagrada[] se navode zarezi, čiji je broj za jedan manji od dimenzija
More informationnamespace spojneice { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
Spojnice using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO;
More information... ; ako je a n parno. ; ako je a n neparno
Zadaci vezani za ciklus sa preduslovom (WHILE) Zad. Napisati program za izračunavanje n_tog stepena broja a. Zad2. Napisati program za izračunavanje sume S kvadrata parnih i kubova neparnih prirodnih brojeva
More informationI PISMENI ZADATAK III6 I GRUPA IME I PREZIME
I PISMENI ZADATAK III6 I GRUPA IME I PREZIME 1.1.Pronaci najveći i najmanji element unete matrice dimenzija n x m i mesto na kome se nalaze. Korististi 2.1. Na osnovu unete matrice A (nxn) celih brojeva
More informationb) program deljiv3; uses wincrt; var i:integer; begin i:=3; while i<100 do begin write(i:5); i:=i+3; end; end.
NAREDBA CIKLUSA SA PREDUSLOVOM WHILE 1.Odrediti vrednosti s i p nakon izvrsenja sledecih naredbi za dato a=43, a=34, a=105 program p1; var a,s,p:integer; write('unesite a:');readln(a); p:=a; s:=0; while
More informationProgramiranje III razred
Tehnička škola 9. maj Bačka Palanka Programiranje III razred Naredbe ciklusa for petlja Naredbe ciklusa Veoma često se ukazuje potreba za ponavljanjem nekih naredbi više puta tj. za ponavljanjem nekog
More informationCALCULATOR APPLICATION
CALCULATOR APPLICATION Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
More informationfor i:=2 to n do if glasovi[i]>max then begin max:=glasovi[i]; k:=i {*promenljiva k ce cuvati indeks takmicara sa najvise glasova *} end;
{*Na Evroviziji je ucestvovalo n izvodjaca. Koji od njih je osvojio najvise glasova publike?*} program Evrovizija; glasovi:array[1..50] of integer; max,k:integer; writeln('unosi se broj izvodjaca:'); writeln('unose
More informationOsnove programskog jezika C# Čas 5. Delegati, događaji i interfejsi
Osnove programskog jezika C# Čas 5. Delegati, događaji i interfejsi DELEGATI Bezbedni pokazivači na funkcije Jer garantuju vrednost deklarisanog tipa. Prevodilac prijavljuje grešku ako pokušate da povežete
More informationObject oriented lab /second year / review/lecturer: yasmin maki
1) Examples of method (function): Note: the declaration of any method is : method name ( parameters list ).. Method body.. Access modifier : public,protected, private. Return
More information/*#include <iostream> // Prvi zadatak sa integralnomg ispita
/*#include // Prvi zadatak sa integralnomg ispita 27.01.2015 #include using std::setw; using std::cout; const int red(5), kolona(4); void unos(int[]); void ispis(int[][kolona]); float
More informationif (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient;
More informationNow find the button component in the tool box. [if toolbox isn't present click VIEW on the top and click toolbox]
C# Tutorial - Create a Tic Tac Toe game with Working AI This project will be created in Visual Studio 2010 however you can use any version of Visual Studio to follow along this tutorial. To start open
More informationVeverica (za ocene >=3)
Veverica (za ocene >=3) U datoteci zalihe.txt, koji ima najviše 500 linija, u svakoj liniji nalazi se naziv šumskog ploda koji veverica ostavlja u skladište za zimu a zatim njegova količina, odvojeni jednim
More informationUvod u programiranje - vežbe. Kontrola toka izvršavanja programa
Uvod u programiranje - vežbe Kontrola toka izvršavanja programa Naredbe za kontrolu toka if, if-else, switch uslovni operator (?:) for, while, do-while break, continue, return if if (uslov) naredba; if
More informationUniverzitet u Nišu Građevinsko-arhitektonski fakultet. 4. Ciklična algoritamska struktura 5. Jednodimenzionalno polje.
Univerzitet u Nišu Građevinsko-arhitektonski fakultet Informatika 2 4. Ciklična algoritamska struktura 5. Jednodimenzionalno polje Milica Ćirić Ciklična algoritamska struktura Ciklična struktura (petlja)
More informationCSIS 1624 CLASS TEST 6
CSIS 1624 CLASS TEST 6 Instructions: Use visual studio 2012/2013 Make sure your work is saved correctly Submit your work as instructed by the demmies. This is an open-book test. You may consult the printed
More informationTo start we will be using visual studio Start a new C# windows form application project and name it motivational quotes viewer
C# Tutorial Create a Motivational Quotes Viewer Application in Visual Studio In this tutorial we will create a fun little application for Microsoft Windows using Visual Studio. You can use any version
More informationUNIVERZITET U BEOGRADU ELEKTROTEHNIČKI FAKULTET
UNIVERZITET U BEOGRADU ELEKTROTEHNIČKI FAKULTET Katedra za elektroniku Računarska elektronika Grupa br. 11 Projekat br. 8 Studenti: Stefan Vukašinović 466/2013 Jelena Urošević 99/2013 Tekst projekta :
More informationvar Form1: TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin ListBox1.Items.LoadFromFile('d:\brojevi.
1 PANEL komponenta kontejnerska, slična GropBox. Roditeljska komponenta za komp. postavljene na nju. Zajedno se pomeraju. Caption svojstvo za naziv; Alighment pomera svojstvo Caption levo i desno; Align
More informationUvod u relacione baze podataka
Uvod u relacione baze podataka Ana Spasić 5. čas 1 Podupiti, operatori exists i in 1. Izdvojiti imena i prezimena studenata koji su položili predmet čiji je identifikator 2001. Rešenje korišćenjem spajanja
More informationExperiment 5 : Creating a Windows application to interface with 7-Segment LED display
Experiment 5 : Creating a Windows application to interface with 7-Segment LED display Objectives : 1) To understand the how Windows Forms in the Windows-based applications. 2) To create a Window Application
More informationx y = z Zadaci - procedure
Zadaci - procedure Zad1. Data je kvadratna meta u koordinatnom sistemu sa koordinatama A(0,0), B(1,0), C(1,1), D(0,1). Sastaviti proceduru Gadjanje koja će odrediti broj poena na sledeći način: ako je
More informationRekurzivne metode. Posmatrajmo rekurzivan metod kojim u objektu listbox1 klase ListBox upisujemo sve prirodne brojeve od 1 do datog n.
Rekurzivne metode Rekurzivan metod je onaj metod koji u nekoj svojoj instrukciji sadrži poziv samog sebe. Svakako prilikom kreiranja rekurzivnog metoda moramo voditi računa da ne dodje do beskonačne rekurzije
More informationIzrada VI laboratorijske vježbe
Izrada VI laboratorijske vježbe 1. Programirati proceduru koja se aktivira sa Standard palete alatki klikom na button Fajlovi. Prilikom startovanja procedure prikazuje se forma koja sadrži jedan list box
More informationNizovi. Programiranje 1
Nizovi Programiranje 1 VB Nizovi Zamislite da imate 10,000 šešira i da morate svakome od njih dati jedinstvenu oznaku. Kako biste to napravili? Bilo bi razumno svakom šeširu dati njegov broj. Sada možete
More informationMain Game Code. //ok honestly im not sure, if i guess its a class ment for this page called methodtimer that //either uses the timer or set to timer..
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;
More informationFirst start a new Windows Form Application from C# and name it Interest Calculator. We need 3 text boxes. 4 labels. 1 button
Create an Interest Calculator with C# In This tutorial we will create an interest calculator in Visual Studio using C# programming Language. Programming is all about maths now we don t need to know every
More informationYou can call the project anything you like I will be calling this one project slide show.
C# Tutorial Load all images from a folder Slide Show In this tutorial we will see how to create a C# slide show where you load everything from a single folder and view them through a timer. This exercise
More informationLISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent() call. //
1. MainForm.cs using System.Collections.Generic; using System.Drawing; LISTING PROGRAM / / Description of MainForm. / public partial class MainForm : Form public MainForm() The InitializeComponent()
More informationcreate database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) )
create database ABCD use ABCD create table bolumler ( bolumkodu int primary key, bolumadi varchar(20) ) insert into bolumler values(1,'elektrik') insert into bolumler values(2,'makina') insert into bolumler
More informationC# winforms gridview
C# winforms gridview using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
More informationProgramiranje Programski jezik C. Sadržaj. Datoteke. prof.dr.sc. Ivo Ipšić 2009/2010
Programiranje Programski jezik C prof.dr.sc. Ivo Ipšić 2009/2010 Sadržaj Ulazno-izlazne funkcije Datoteke Formatirane datoteke Funkcije za rad s datotekama Primjeri Datoteke komunikacija između programa
More informationThe Gracefulness of the Merging Graph N ** C 4 with Dotnet Framework
The Gracefulness of the Merging Graph N ** C 4 with Dotnet Framework Solairaju¹, N. Abdul Ali² and R.M. Karthikkeyan 3 1-2 : P.G. & Research Department of Mathematics, Jamal Mohamed College, Trichy 20.
More informationVRIJEDNOSTI ATRIBUTA
VRIJEDNOSTI ATRIBUTA Svaki atribut (bilo da je primarni ključ, vanjski ključ ili običan atribut) može i ne mora imati ograničenja na svojim vrijednostima. Neka od ograničenja nad atributima: Null / Not
More informationRačunarske osnove Interneta (SI3ROI, IR4ROI)
Računarske osnove terneta (SI3ROI, IR4ROI) Vežbe MPLS Predavač: 08.11.2011. Dražen Drašković, drazen.draskovic@etf.rs Autori: Dražen Drašković Naučili ste na predavanjima MPLS (Multi-Protocol Label Switching)
More informationKONTROLE IZBORA_- Kontrola ListBox
KONTROLE IZBORA_- Kontrola ListBox ili okvir sa listom prikazuje listu elemenat od kojih može da bude izabran jedan ili više elemenata. Elementi liste mogu se dodavati korišćenjem svojstva Items (Properties)
More informationSub To Srt Converter. This is the source code of this program. It is made in C# with.net 2.0.
Sub To Srt Converter This is the source code of this program. It is made in C# with.net 2.0. form1.css /* * Name: Sub to srt converter * Programmer: Paunoiu Alexandru Dumitru * Date: 5.11.2007 * Description:
More informationIBSDK Quick Start Tutorial for C# 2010
IB-SDK-00003 Ver. 3.0.0 2012-04-04 IBSDK Quick Start Tutorial for C# 2010 Copyright @2012, lntegrated Biometrics LLC. All Rights Reserved 1 QuickStart Project C# 2010 Example Follow these steps to setup
More informationStart Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK.
Start Visual Studio, start a new Windows Form project under the C# language, name the project BalloonPop MooICT and click OK. Before you start - download the game assets from above or on MOOICT.COM to
More informationUputa: Zabranjeno je koristiti bilo kakva pomagala. Rje²enja pi²ete desno od zadatka. Predajete samo ovaj list.
Ime i prezime: Asistent: Predava : Programiranje (C) 1. kolokvij 14. 4. 2003. 1. 2. 3. 4. 5. 6. 7. Uputa: Zabranjeno je koristiti bilo kakva pomagala. Rje²enja pi²ete desno od zadatka. Predajete samo ovaj
More information// Specify SEF file to load. edischema oschema = oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDIx64;
More informationInformacioni sistemi i baze podataka
Fakultet tehničkih nauka, Novi Sad Predmet: Informacioni sistemi i baze podataka Dr Slavica Kordić Milanka Bjelica Vojislav Đukić Rad u učionici (1/2) Baze podataka (db2015): Studentska korisnička šema
More informationAlgoritmi i strukture podataka 2. Čas, Uvod u C++
Algoritmi i strukture podataka 2. Čas, Uvod u C++ Aleksandar Veljković 2017/2018 1 Uvod Jezik C++ je jezik koji pripada objektno orijentisanoj paradigmi, ipak, u okviru ovog kursa naglasak neće biti na
More informationPREDMET. Osnove Java Programiranja. Čas JAVADOC
PREDMET Osnove Java Programiranja JAVADOC Copyright 2010 UNIVERZITET METROPOLITAN, Beograd. Sva prava zadržana. Bez prethodne pismene dozvole od strane Univerziteta METROPOLITAN zabranjena je reprodukcija,
More information// Specify SEF file to load. oschema = (edischema) oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDI;
More informationstring spath; string sedifile = "277_005010X228.X12"; string sseffile = "277_005010X228.SemRef.EVAL0.SEF";
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDI; 1 namespace
More informationThe Open Core Interface SDK has to be installed on your development computer. The SDK can be downloaded at:
This document describes how to create a simple Windows Forms Application using some Open Core Interface functions in C# with Microsoft Visual Studio Express 2013. 1 Preconditions The Open Core Interface
More informationAnswer on Question# Programming, C#
Answer on Question#38723 - Programming, C# 1. The development team of SoftSols Inc. has revamped the software according to the requirements of FlyHigh Airlines and is in the process of testing the software.
More informationVHDLPrimeri Poglavlje5.doc
5. VHDL opis kola koja obavljaju osnovne aritmetičke funkcije Sabirači Jednobitni potpuni sabirač definisan je tablicom istinitosti iz Tabele 5.1. Tabela 5.1. cin a b sum cout 0 0 0 0 0 0 0 1 1 0 0 1 0
More informationVisual Basic/C# Programming (330)
Page 1 of 12 Visual Basic/C# Programming (330) REGIONAL 2017 Production Portion: Program 1: Calendar Analysis (400 points) TOTAL POINTS (400 points) Judge/Graders: Please double check and verify all scores
More informationStart Visual Studio and create a new windows form application under C# programming language. Call this project YouTube Alarm Clock.
C# Tutorial - Create a YouTube Alarm Clock in Visual Studio In this tutorial we will create a simple yet elegant YouTube alarm clock in Visual Studio using C# programming language. The main idea for this
More informationVežbe - XII nedelja PHP Doc
Vežbe - XII nedelja PHP Doc Dražen Drašković, asistent Elektrotehnički fakultet Univerziteta u Beogradu Verzija alata JavaDoc za programski jezik PHP Standard za komentarisanje PHP koda Omogućava generisanje
More informationFor. 1) program ispis; {ispisuje brojeve od 1 do 5 jedan ispod drugog} uses wincrt; var s,i:integer; begin for i:=1 to 5do writeln(i); end.
For 1) program ispis; {ispisuje brojeve od 1 do 5 jedan ispod drugog} for i:=1 to 5do writeln(i); 2) program ispis; {ispisuje brojeve od 5 do 1 jedan ispod drugog} for i:=5 downto 1 do writeln(i); 3) program
More informationWe are going to use some graphics and found a nice little batman running GIF, off course you can use any image you want for the project.
C# Tutorial - Create a Batman Gravity Run Game Start a new project in visual studio and call it gravityrun It should be a windows form application with C# Click OK Change the size of the to 800,300 and
More informationHow to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample.
How to create a simple ASP.NET page to create/search data on baan using baan logic from the BOBS client sample. Author: Carlos Kassab Date: July/24/2006 First install BOBS(BaaN Ole Broker Server), you
More informationOverview. Building a Web-Enabled Decision Support System. Integrating DSS in Business Curriculum. Introduction to DatabaseSupport Systems
Excel and C# Overview Introduction to DatabaseSupport Systems Building a Web-Enabled Decision Support System Integrating DSS in Business Curriculum 2 Decision Support Systems (DSS) A decision support system
More informationProgramiranje kroz aplikacije. Kontrola toka programa Nizovi
Programiranje kroz aplikacije Kontrola toka programa Nizovi Kontrola toka u VBA If naredba Select Case naredba GoTo naredba For petlja While petlja Do While petlja Do Until petlja If naredba Opšti oblik
More informationForm Properties Window
C# Tutorial Create a Save The Eggs Item Drop Game in Visual Studio Start Visual Studio, Start a new project. Under the C# language, choose Windows Form Application. Name the project savetheeggs and click
More informationClass Test 4. Question 1. Use notepad to create a console application that displays a stick figure. See figure 1. Question 2
Class Test 4 Marks will be deducted for each of the following: -5 for each class/program that does not contain your name and student number at the top. -2 If program is named anything other than Question1,
More informationPHP? PHP (recursive acronym "PHP: Hypertext Preprocessor") Open Source general-purpose scripting language Web development
Intro to PHP PHP? PHP (recursive acronym "PHP: Hypertext Preprocessor") Open Source general-purpose scripting language Web development Ugrađen u HTML. HTML script sa kodom koji nešto radi Izvršavanje na
More informationFortran 90. Numeričke Metode DECEMBAR ĐURĐEVAC NATAŠA
Fortran 90 Numeričke Metode DECEMBAR 2007. ĐURĐEVAC NATAŠA Zašto Fortran? jer je konstruisan da bi se koristio za rešavanje matematičkih problema. jer je jednostavan jezik sa dobrim performansama (odlična
More informationNumeričke metode i praktikum
Numeričke metode i praktikum Aleksandar Maksimović IRB / 23/03/2006 / Str. 1 vektori Vektor u 3D prostoru. C: int v1[3]; v1[0]=a;v1[1]=b;v1[2]=c; Fortran: INTEGER V1(3) V1(1)=a V1(2)=b V1(3)=c Skalarni
More informationPrirodno-matematički fakultet u Nišu Departman za fiziku. dr Dejan S. Aleksić Programiranje u fizici
Programiranje u fizici Prirodno-matematički fakultet u Nišu Departman za fiziku dr Dejan S. Aleksić Programiranje u fizici 7-8 Definicija, inicijalizacija promenljivih 2/21 u C-u Program napisan u programskog
More informationTema 8: Koncepti i teorije relevantne za donošenje odluka (VEŽBE)
Tema 8: Koncepti i teorije relevantne za donošenje odluka (VEŽBE) SISTEMI ZA PODRŠKU ODLUČIVANJU dr Vladislav Miškovic vmiskovic@singidunum.ac.rs Fakultet za računarstvo i informatiku 2013/2014 Tema 8:
More informationII. Programming Technologies
II. Programming Technologies II.1 The machine code program Code of algorithm steps + memory addresses: MOV AX,1234h ;0B8h 34h 12h - number (1234h) to AX register MUL WORD PTR [5678h] ;0F7h 26h 78h 56h
More informationUčitati cio broj n i štampati njegovu recipročnu vrijednost. Ako je učitan broj 0, štampati 1/0.
Kontrolne naredbe Primjeri: Opšti oblik razgranate strukture (if sa ) if (uslov) Naredba 1 ili blok naredbi1 Naredba 2 ili blok naredbi2 Učitati broj x i štampati vrijednost double x, z; Scanner in=new
More informationAPÉNDICE J. CÓDIGO DEL ARCHIVO FORM1.CS EN LENGUAJE C# Comprende:
APÉNDICE J. CÓDIGO DEL ARCHIVO FORM1.CS EN LENGUAJE C# Comprende: Interfaz gráfica de wiimocap. Obtención de las variables de los tres acelerómetros. Algoritmos de reconocimiento de posiciones. Inclinación
More informationCreate your own Meme Maker in C#
Create your own Meme Maker in C# This tutorial will show how to create a meme maker in visual studio 2010 using C#. Now we are using Visual Studio 2010 version you can use any and still get the same result.
More informationPRIJEMNI ISPIT IZ INFORMATIKE
PRIRODNO-MATEMATIČKI FAKULTET U NIŠU DEPARTMAN ZA RAČUNARSKE NAUKE Petak,04.09.2015 PRIJEMNI ISPIT IZ INFORMATIKE PITANJA I ZADACI IZ INFORMATIKE 1. Kombinacija tastera Ctrl+C koristi se u Windows aplikacijama
More information24/03/2018. Deklaracija promenljivih. Inicijalizacija promenljivih. Deklaracija i inicijalizacija promenljivih
Deklaracija promenljivih Inicijalizacija promenljivih Deklaracija promenljive obuhvata: dodelu simboličkog imena promenljivoj i određivanje tipa promenljive (tip određuje koja će vrsta memorijskog registra
More informationLab - 1. Solution : 1. // Building a Simple Console Application. class HelloCsharp. static void Main() System.Console.WriteLine ("Hello from C#.
Lab - 1 Solution : 1 // Building a Simple Console Application class HelloCsharp static void Main() System.Console.WriteLine ("Hello from C#."); Solution: 2 & 3 // Building a WPF Application // Verifying
More informationClick on the empty form and apply the following options to the properties Windows.
Start New Project In Visual Studio Choose C# Windows Form Application Name it SpaceInvaders and Click OK. Click on the empty form and apply the following options to the properties Windows. This is the
More informationVidljivost TipPovratneVrednosti ImeFunkcije (NizParametara) { TeloFunkcije }
1. FUNKCIJE I STRUKTRUE PROGRAMA Složeni problemi lakše se rašavaju ako se podele na manje celine koje mogu nezavisno da se rešavaju. Rešenje celokupnog složenog problema dobija se kombinovanjem rešenja
More informationNI USB-TC01 Thermocouple Measurement Device
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics NI USB-TC01 Thermocouple Measurement Device HANS- PETTER HALVORSEN, 2013.02.18 Faculty of Technology,
More informationUPUTSTVO ZA KORIŠĆENJE NOVOG SPINTER WEBMAIL-a
UPUTSTVO ZA KORIŠĆENJE NOVOG SPINTER WEBMAIL-a Webmail sistem ima podršku za SSL (HTTPS). Korištenjem ovog protokola sva komunikacija između Webmail sistema i vašeg Web čitača je kriptovana. Prilikom pristupa
More informationเว บแอพล เคช น. private void Back_Click(object sender, EventArgs e) { this.webbrowser2.goback(); }
เว บแอพล เคช น using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace
More informationUvod u programiranje
Uvod u programiranje Vežbe 1 - tipovi, operatori (dodatni zadaci rešenja) 1. Napisati Java program koji međusobno zamenjuje vrednosti dveju celobrojnih varijabli i ispisuje ih i pre i posle zamene public
More informationC:\homeworks\PenAttention_v13_src\PenAttention_v13_src\PenAttention4\PenAttention\PenAttention.cs 1 using System; 2 using System.Diagnostics; 3 using
1 using System; 2 using System.Diagnostics; 3 using System.Collections.Generic; 4 using System.ComponentModel; 5 using System.Data; 6 using System.Drawing; 7 using System.Text; 8 using System.Windows.Forms;
More informationnamespace csharp_gen277x214 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
using System using System.Collections.Generic using System.ComponentModel using System.Data using System.Drawing using System.Text using System.Windows.Forms using Edidev.FrameworkEDI 1 namespace csharp_gen277x214
More informationHuw Talliss Data Structures and Variables. Variables
Data Structures and Variables Variables The Regex class represents a read-only regular expression. It also contains static methods that allow use of other regular expression classes without explicitly
More informationMainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below.
APPENDIX 1 TABLE DETAILS Mainly three tables namely Teacher, Student and Class for small database of a school are used. The snapshots of all three tables are shown below. Details of Class table are shown
More informationConventions in this tutorial
This document provides an exercise using Digi JumpStart for Windows Embedded CE 6.0. This document shows how to develop, run, and debug a simple application on your target hardware platform. This tutorial
More informationبسم هللا الرحمن الرحيم المحاضرة السابعة مستوى ثالث علوم حاسوب برمجة مرئية 2 )عملي ) جامعة الجزيرة محافظة اب الجمهورية اليمنية النافذة الرئيسية
بسم هللا الرحمن الرحيم المحاضرة السابعة مستوى ثالث علوم حاسوب برمجة مرئية 2 )عملي ) جامعة الجزيرة محافظة اب الجمهورية اليمنية النافذة الرئيسية وتمتلك الشفرة البرمجية التالية : زر االقسام fr_dept fd = new
More informationLISTING PROGRAM. //Find the maximum and minimum values in the array int maxvalue = integers[0]; //start with first element int minvalue = integers[0];
1 LISTING PROGRAM using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace SortingApplication static class Program / / The main entry point for
More informationThis is the empty form we will be working with in this game. Look under the properties window and find the following and change them.
We are working on Visual Studio 2010 but this project can be remade in any other version of visual studio. Start a new project in Visual Studio, make this a C# Windows Form Application and name it zombieshooter.
More informationStart Visual Studio, create a new project called Helicopter Game and press OK
C# Tutorial Create a helicopter flying and shooting game in visual studio In this tutorial we will create a fun little helicopter game in visual studio. You will be flying the helicopter which can shoot
More informationLAMPIRAN A : LISTING PROGRAM
LAMPIRAN A : LISTING PROGRAM 1. Form Utama (Cover) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text;
More information} } public void getir() { DataTable dt = vt.dtgetir("select* from stok order by stokadi");
Form1 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;
More informationAPARAT DE MASURA. Descrierea programului
APARAT DE MASURA Descrierea programului Acest program reprezinta un aparat de masura universal. Acest apparat poate fi modificat in functie de necesitatile utilizatorului. Modificarile pe care aparatul
More informationZ1. Dati RDF graf predstavljen u JSON-LD sintaksi potrebno je grafički predstaviti u skladu sa RDF notacijom. (5 poena)
Z1. Dati RDF graf predstavljen u JSON-LD sintaksi potrebno je grafički predstaviti u skladu sa RDF notacijom. (5 poena) "@context": "http://schema.org", "@type": "JobPosting", @id : http://example.com/person/ab12,
More informationKada se pokrene forma da bude plave boje. Dugme Crtaj krugove da iscrtava slučajan broj N krugova istog poluprečnika r (1/4 visine forme) čiji su
Kada se pokrene forma da bude plave boje. Dugme Crtaj krugove da iscrtava slučajan broj N krugova istog poluprečnika r (1/4 visine forme) čiji su centri na neiscrtanom krugu poluprečnika r. Dugme Boji
More informationВизуал програмчлал. Багш: Ж. Шинэбаяр /Маг/
Визуал програмчлал Лабораторийн ажил 13. NotePad /Forms Application/. Олон форм үүсгэх; Формуудыг хэлбэршүүлэх; Бусад формуудаас утга авах. Лабораторын ажлыг гүйцэтгэх дараалал: 1. Шинэ project үүсгэн
More informationSavoy ActiveX Control User Guide
Savoy ActiveX Control User Guide Jazz Soft, Inc. Revision History 1 Revision History Version Date Name Description 1.00 Jul, 31 st, 2009 Hikaru Okada Created as new document 1.00a Aug, 22 nd, 2009 Hikaru
More informationRepresenting Recursive Relationships Using REP++ TreeView
Representing Recursive Relationships Using REP++ TreeView Author(s): R&D Department Publication date: May 4, 2006 Revision date: May 2010 2010 Consyst SQL Inc. All rights reserved. Representing Recursive
More informationnamespace csharp_gen837x223a2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDI; 1 namespace
More informationWriting Your First Autodesk Revit Model Review Plug-In
Writing Your First Autodesk Revit Model Review Plug-In R. Robert Bell Sparling CP5880 The Revit Model Review plug-in is a great tool for checking a Revit model for matching the standards your company has
More informationVisual Basic/C# Programming (330)
Page 1 of 16 Visual Basic/C# Programming (330) REGIONAL 2016 Program: Character Stats (400 points) TOTAL POINTS (400 points) Judge/Graders: Please double check and verify all scores and answer keys! Property
More informationnamespace Gen837X222A1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDI; 1 namespace
More informationTutorial 6 Enhancing the Inventory Application Introducing Variables, Memory Concepts and Arithmetic
Tutorial 6 Enhancing the Inventory Application Introducing Variables, Memory Concepts and Arithmetic Outline 6.1 Test-Driving the Enhanced Inventory Application 6.2 Variables 6.3 Handling the TextChanged
More information