- •«Механика – математика ғылыми зерттеу институты»
- •«Механика – математика ғылыми зерттеу институтының» тарихы
- •«Механика – математика ғылыми зерттеу институтының» негізгі бағыттары
- •Халықаралық ынтымақтастық
- •Бухгалтерия құжаттарымен танысу, берілген құжаттарды түгелдеп, ретке келтіру
- •Құжаттарды архив қағазына толтыру
- •Қорытынды
Құжаттарды архив қағазына толтыру
Сонымен қатар, бөлім қызметшісі институттың құжаттарының жоғалып, ретсіз қалуын болдырмау үшін құжаттарды архив қағазына толтырып, олардың тізімін жасауын тапсырды. Практиканың әр күнінде неше түрлі құжаттарды архив қағазына толтырып, тексердім.Сол уақыт аралығында толтырған документтер тізімі:
Институт оқытушыларының жеке құжаттары;
Факультеттің аванстық құжаттары;
2015жылға тиесілі құжаттар;
2016 жылға тиесілі құжаттар;
Факультет оқытушылардың өтемақылары туралы бұйрық пен оның нөмірі, шығарылған күні;
Гарантиялық талондар көрсетілген құжаттар;
Факультет оқытушыларының қызметтік демалыс бұйрықтары мен өтемақылары туралы құжаттары;
Шот фактуралар көрсетілген құжаттардың тізімі;
Сертификаттардың тізімі мен нөмірлері;
Баға ұсыныстарын сұрату тәсілімен мемлекеттік сатып алу қорытындыларын бекіту туралы шешімдердің құжаттарының нөмірлері мен уақыттары;
«Ғылым саласы бойынша әлемдік серіктестік» программасы бойынша факультеттің басқа шетелдік оқу орындарымен келісімшарт қағаздары;
Ғылыми зерттеу институтында оқытушылардың 2015 жылғы декреттік демалыс, өтемақы туралы бұйрықтары;
Әрбір жылдың мемлекеттік алуға тиісті тауарлардың жылдық жоспары көрсетілген құжаттары;
Ғылыми зерттеу институтында факультеттің басқа мекемелерге жазылған ұсыныстары немесе бізге арналған ұсыныстар көрсетілген документтері;
Сатып алу мен конверттерді ашу протоколы көрсетілген, сонымен қатар баға ұсынысы, коммерстік ұсынысы көрсетілген документтері;
Әрбір жылдың мемлекеттің алуға тиісті товарлардың жылдық жоспары көрсетілген құжаттары;
Оқытушылардың басқа қалаға іссапары туралы бұйрықтары, нөмері, шығарылған күні;
3.3 Есеп
|
1) Write a program to generate and print all combinations with duplicates of k elements from a set with n elements. Sampleinput: n = 3 k = 2 Sampleoutput: (1 1), (1 2), (1 3), (2 2), (2 3), (3 3)
Жауабы:
Write a program, which finds the maximal sequence of consecutively placed increasing integers. Example: {3, 2, 3, 4, 2, 2, 4} ⇒{2, 3, 4}.
classProgram |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
staticvoidMain(string[] args) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Console.Write("n: "); |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
intlength = Int32.Parse(Console.ReadLine()); |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
int[] array = newint[length]; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
intsames = 1, bestSames = 1, bestStart = 0, lastElement = 0; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
for (inti = 0; i <array.Length; i ++) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Console.Write("Enter {0} element: ", i); |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
array[i] = Int32.Parse(Console.ReadLine()); |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
for (inti = 0; i <array.Length - 1; i++) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
if (array[i] + 1 == array[i + 1]) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
sames++; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
if (sames>bestSames) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
bestSames = sames; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
lastElement = i + 1; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
bestStart = lastElement - bestSames + 1; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
elsesames = 1; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
for (inti = bestStart; i <bestSames + bestStart; i++) Console.Write("{0}, ", array[i]); |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
}
|
Жауабы:
2) Write a program, which finds the most frequently occurring element in an array. Example: {4, 1, 1, 4, 2, 3, 4, 4, 1, 2, 4, 9, 3} ⇒4 (5 times).
|
classProgram |
|
{ |
|
staticvoidMain(string[] args) |
|
{ |
|
intcounter = 0, tempCounter = 1, foundNumber = 0; |
|
|
|
Console.Write("Please enter array length: "); |
|
intlength = Int32.Parse(Console.ReadLine()); |
|
|
|
int[] arr = newint[length]; |
|
|
|
for (inti = 0; i < length; i++) |
|
{ |
|
Console.Write("Please enter {0} element: ", i); |
|
arr[i] = Int32.Parse(Console.ReadLine()); |
|
} |
|
|
|
Array.Sort(arr); |
|
|
|
for (inti = 0; i < length - 1; i++) |
|
{ |
|
if (arr[i] == arr[i + 1]) tempCounter++; |
|
elsetempCounter = 1; |
|
if (tempCounter>counter) |
|
{ |
|
counter = tempCounter; |
|
foundNumber = arr[i]; |
|
} |
|
} |
|
|
|
Console.WriteLine("{0} was found {1} times.", foundNumber, counter); |
|
} |
|
} |
|
} |
Жауабы:
3)Write a method that prints the digits of a given decimal number in a reversed order. For example 256, must be printed as 652.
|
classProgram |
|
{ |
|
publicstaticstringReverse(stringnumber) |
|
{ |
|
char[] charArray = number.ToCharArray(); |
|
Array.Reverse(charArray); |
|
returnnewstring(charArray); |
|
} |
|
|
|
staticvoidMain(string[] args) |
|
{ |
|
Console.Write("Enternumber: "); |
|
stringnumber = Console.ReadLine(); |
|
|
|
Console.WriteLine(Reverse(number)); |
|
} |
|
} |
|
} |
Жауабы:
4)
|
Write a program, which finds the maximal sequence of consecutively placed increasing integers. Example: {3, 2, 3, 4, 2, 2, 4} ⇒{2, 3, 4}.
classProgram |
|
{ |
|
staticvoidMain(string[] args) |
|
{ |
|
Console.Write("n: "); |
|
intlength = Int32.Parse(Console.ReadLine()); |
|
|
|
int[] array = newint[length]; |
|
intsames = 1, bestSames = 1, bestStart = 0, lastElement = 0; |
|
|
|
for (inti = 0; i <array.Length; i ++) |
|
{ |
|
Console.Write("Enter {0} element: ", i); |
|
array[i] = Int32.Parse(Console.ReadLine()); |
|
} |
|
|
|
for (inti = 0; i <array.Length - 1; i++) |
|
{ |
|
if (array[i] + 1 == array[i + 1]) |
|
{ |
|
sames++; |
|
if (sames>bestSames) |
|
{ |
|
bestSames = sames; |
|
lastElement = i + 1; |
|
bestStart = lastElement - bestSames + 1; |
|
} |
|
} |
|
elsesames = 1; |
|
} |
|
|
|
for (inti = bestStart; i <bestSames + bestStart; i++) Console.Write("{0}, ", array[i]); |
|
} |
|
} |
|
}
|
Жауабы:
5) Write a program that reads an integer number n from the console. After that reads n numbers from the console and prints their sum.
ClassProgram |
|
|
{ |
|
staticvoidMain(string[] args) |
|
{ |
|
doubled, x1, x2; |
|
Console.Write("Enter A (A != 0): "); |
|
doublea = Int32.Parse(Console.ReadLine()); |
|
Console.Write("Enter B: "); |
|
doubleb = Int32.Parse(Console.ReadLine()); |
|
Console.Write("Enter C: "); |
|
doublec = Int32.Parse(Console.ReadLine()); |
|
|
|
d = b * b - 4 * a * c; |
|
|
|
if (d <0) Console.WriteLine("D={0}, There are no real roots.", d); |
|
elseif (d == 0) |
|
{ |
|
x1 = (-b / (2 * a)); |
|
Console.WriteLine("X={0}", x1); |
|
} |
|
else |
|
{ |
|
x1 = (-b + Math.Sqrt(d)) / (2 * a); |
|
x2 = (-b - Math.Sqrt(d)) / (2 * a); |
|
Console.WriteLine("X1={0}, X2={1}", x1, x2); |
|
} |
|
} |
|
} |
|
} |
Жауабы:
6) Write a program, which removes all negative numbers from a sequence.
Example: array = {19, -10, 12, -6, -3, 34, -2, 5} ⇒{19, 12, 34, 5}
|
classProgram |
|
{ |
|
staticvoidReadNumber(intstart, intend) |
|
{ |
|
intcount = 1, number; |
|
|
|
do |
|
{ |
|
Console.Write("Number{0}: ", count); |
|
number = Int32.Parse(Console.ReadLine()); |
|
|
|
if (number >= end || number <= start) |
|
{ |
|
Console.WriteLine("Wronginput!"); |
|
break; |
|
} |
|
else |
|
start = number; |
|
|
|
count++; |
|
} while (count<11); |
|
} |
|
|
|
staticvoidMain(string[] args) |
|
{ |
|
Console.Write("Start: "); |
|
intstart = Int32.Parse(Console.ReadLine()); |
|
Console.Write("End: "); |
|
intend = Int32.Parse(Console.ReadLine()); |
|
|
|
if (end<= start + 10) |
|
Console.WriteLine("Wronginput"); |
|
else |
|
ReadNumber(start, end); |
|
} |
|
} |
|
} |
Жауабы:
7) Write a program that converts Arabic digits to Roman ones.
|
classProgram |
|
{ |
|
staticvoidMain(string[] args) |
|
{ |
|
Stringresult = ""; |
|
Console.Write("Enter Arabic number: "); |
|
inti = Convert.ToInt32(Console.ReadLine()); |
|
intthousands = i / 1000, hundreds = (i / 100) % 10, tens = (i / 10) % 10, ones = i % 10; |
|
|
|
switch (thousands) |
|
{ |
|
case1: result += "M"; break; |
|
case2: result += "MM"; break; |
|
case3: result += "MMM"; break; |
|
} |
|
|
|
switch (hundreds) |
|
{ |
|
case1: result += "C"; break; |
|
case2: result += "CC"; break; |
|
case3: result += "CCC"; break; |
|
case4: result += "CD"; break; |
|
case5: result += "D"; break; |
|
case6: result += "DC"; break; |
|
case7: result += "DCC"; break; |
|
case8: result += "DCCC"; break; |
|
case9: result += "CM"; break; |
|
} |
|
|
|
switch (tens) |
|
{ |
|
case1: result += "X"; break; |
|
case2: result += "XX"; break; |
|
case3: result += "XXX"; break; |
|
case4: result += "XL"; break; |
|
case5: result += "L"; break; |
|
case6: result += "LX"; break; |
|
case7: result += "LXX"; break; |
|
case8: result += "LXXX"; break; |
|
case9: result += "XC"; break; |
|
} |
|
|
|
switch (ones) |
|
{ |
|
case1: result += "I"; break; |
|
case2: result += "II"; break; |
|
case3: result += "III"; break; |
|
case4: result += "IV"; break; |
|
case5: result += "V"; break; |
|
case6: result += "VI"; break; |
|
case7: result += "VII"; break; |
|
case8: result += "VIII"; break; |
|
case9: result += "IX"; break; |
|
} |
|
|
|
Console.WriteLine("Roman number is " + result); |
|
} |
|
} |
|
} |
Жауабы:
8)Write a program that reads a string from the console (20 characters maximum) and if shorter complements it right with "*" to 20 characters.
Console.Write("Enter some text: ");
string tex = Console.ReadLine();
if (tex.Length > 20)
{
Console.WriteLine("ERROR! Text must be maximum 20 characters. Try again...");
}
else if (tex.Length == 20)
{
Console.WriteLine("Text is exactly 20 characters. There will be no changes!");
}
else
{
Console.WriteLine("Text length is {0} characters. \nThe result is: {1}", tex.Length, tex.PadRight(20, '*'));
9)Code for enum:
using System;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespace @enum
{
class Program
{
enum season
{
winter,
spring,
summer,
autumn
}
static void sea(season s)
{
switch(s)
{
caseseason.winter: Console.WriteLine("December");
Console.WriteLine("January");
Console.WriteLine("February"); break;
caseseason.spring: Console.WriteLine("March");
Console.WriteLine("April");
Console.WriteLine("May"); break;
caseseason.summer: Console.WriteLine("June");
Console.WriteLine("July");
Console.WriteLine("August"); break;
caseseason.autumn: Console.WriteLine("September");
Console.WriteLine("October");
Console.WriteLine("November"); break;
}
Console.ReadLine();
} static void Main(string[] args)
{
Console.WriteLine("autumn:");
sea(season.autumn);
Console.WriteLine("winter:");
sea(season.winter);
Console.WriteLine("spring:");
sea(season.spring);
Console.WriteLine("summer:");
sea(season.summer);
}
Жауабы:
10) Create a method GetMax() with two integer (int) parameters, that returns maximal of the two numbers. Write a program that reads three numbers from the console and prints the biggest of them. Use the GetMax() method you just created. Write a test program that validates that the methods works correctly.
|
classProgram |
|
{ |
|
staticinta; |
|
|
|
staticvoidGetMax(intfirst, intsecond) |
|
{ |
|
if (first > second) a = first; |
|
elsea = second; |
|
} |
|
|
|
staticvoidMain(string[] args) |
|
{ |
|
Console.Write("Enter first number: "); |
|
a = Int32.Parse(Console.ReadLine()); |
|
Console.Write("Enter second number: "); |
|
intb = Int32.Parse(Console.ReadLine()); |
|
Console.Write("Enter third number: "); |
|
intc = Int32.Parse(Console.ReadLine()); |
|
|
|
GetMax(a, b); |
|
GetMax(a, c); |
|
|
|
Console.WriteLine("Biggest number is {0}", a); |
|
} |
|
} |
|
} |
Жауабы:
