From 832197ca39604d6620c56f0eb944562726325dbc Mon Sep 17 00:00:00 2001 From: Rustam-Z Date: Mon, 17 Apr 2023 20:49:32 +0500 Subject: [PATCH 01/21] Created new tasks --- OOP1-Lab1/{Source.cpp => Circle.cpp} | 25 +- .../{Source2.cpp => EquilateralTriangle.cpp} | 17 +- OOP1-Lab1/README.md | 8 + OOP1-Lab1/{Source4.cpp => Rectangle.cpp} | 21 +- OOP1-Lab1/{Source3.cpp => RightTriangle.cpp} | 23 +- .../{Source1.cpp => ScaleneTriangle.cpp} | 23 +- OOP1-Lab1/{Source5.cpp => Square.cpp} | 23 +- OOP1-Lab1/Tasks.docx | Bin 11961 -> 0 bytes OOP1-Lab2/Greatestnumber.cpp | 13 +- OOP1-Lab2/{Leap year.cpp => LeapYear.cpp} | 23 +- OOP1-Lab2/OddEven.cpp | 14 +- OOP1-Lab2/README.md | 7 + OOP1-Lab2/Swapping.cpp | 25 +- OOP1-Lab2/Tasks.docx | Bin 14325 -> 0 bytes OOP1-Lab3/README.md | 13 + OOP1-Lab3/Tasks.docx | Bin 13962 -> 0 bytes OOP1-Lab4/Lab_Assignment_week-6.docx | Bin 15211 -> 0 bytes OOP1-Lab4/README.md | 38 ++ OOP1-Lab4/Source.cpp | 15 +- OOP1-Lab4/Source1.cpp | 15 +- OOP1-Lab4/Source2.cpp | 18 +- OOP1-Lab4/Source3.cpp | 21 +- OOP1-Lab4/Source4.cpp | 16 +- OOP1-Lab5/Lab_Assignment_Week-9.docx | Bin 13306 -> 0 bytes OOP1-Lab5/README.md | 6 + OOP1-Lab5/Source.cpp | 32 +- OOP1-Lab5/Source1.cpp | 20 +- OOP1-Lab5/Source2.cpp | 29 +- OOP1-Lab5/Source3.cpp | 38 +- OOP1-Lab6/Lab_Assignment_Week-10.docx | Bin 14901 -> 0 bytes OOP1-Lab6/README.md | 22 + OOP1-Lab6/Source.cpp | 579 ++++++++++-------- OOP1-Lab7/Lab_Assignment_Week-11.docx | Bin 13321 -> 0 bytes OOP1-Lab7/README.md | 6 + OOP1-Lab7/fibonacci.cpp | 22 +- OOP1-Lab7/gcd.cpp | 29 +- OOP1-Lab7/power.cpp | 21 +- OOP1-Lab7/sum.cpp | 18 +- OOP1-Lab8/Lab_Assignment-_week-12.docx | Bin 13063 -> 0 bytes OOP1-Lab8/README.md | 12 + OOP1-Lab8/Sort.cpp | 24 +- OOP1-Lab8/average.cpp | 20 +- OOP1-Lab8/deleting.cpp | 26 +- OOP1-Lab8/display.cpp | 14 +- OOP1-Lab8/inserting.cpp | 13 +- OOP1-Lab9/Lab_Assignment_week-13.docx | Bin 13293 -> 0 bytes OOP1-Lab9/Pascal.cpp | 12 +- OOP1-Lab9/Pascal2.cpp | 31 + OOP1-Lab9/README.md | 14 + OOP1-Lab9/Source.cpp | 31 - OOP1-Lab9/Source1.cpp | 135 ++-- OOP1-Lab9/Source2.cpp | 39 +- OOP2_Lab1/Lab_Assignment-1.docx | Bin 16623 -> 0 bytes OOP2_Lab1/README.md | 41 ++ OOP2_Lab1/studentCourseEvaluation.cpp | 95 +-- OOP2_Lab2/Lab2_constructor_.n_Destructor.docx | Bin 16848 -> 0 bytes OOP2_Lab2/README.md | 63 ++ OOP2_Lab2/Source.cpp | 420 +++++++------ README.md | 37 +- 59 files changed, 1325 insertions(+), 882 deletions(-) rename OOP1-Lab1/{Source.cpp => Circle.cpp} (57%) rename OOP1-Lab1/{Source2.cpp => EquilateralTriangle.cpp} (73%) create mode 100644 OOP1-Lab1/README.md rename OOP1-Lab1/{Source4.cpp => Rectangle.cpp} (55%) rename OOP1-Lab1/{Source3.cpp => RightTriangle.cpp} (61%) rename OOP1-Lab1/{Source1.cpp => ScaleneTriangle.cpp} (68%) rename OOP1-Lab1/{Source5.cpp => Square.cpp} (55%) delete mode 100644 OOP1-Lab1/Tasks.docx rename OOP1-Lab2/{Leap year.cpp => LeapYear.cpp} (62%) create mode 100644 OOP1-Lab2/README.md delete mode 100644 OOP1-Lab2/Tasks.docx create mode 100644 OOP1-Lab3/README.md delete mode 100644 OOP1-Lab3/Tasks.docx delete mode 100644 OOP1-Lab4/Lab_Assignment_week-6.docx create mode 100644 OOP1-Lab4/README.md delete mode 100644 OOP1-Lab5/Lab_Assignment_Week-9.docx create mode 100644 OOP1-Lab5/README.md delete mode 100644 OOP1-Lab6/Lab_Assignment_Week-10.docx create mode 100644 OOP1-Lab6/README.md delete mode 100644 OOP1-Lab7/Lab_Assignment_Week-11.docx create mode 100644 OOP1-Lab7/README.md delete mode 100644 OOP1-Lab8/Lab_Assignment-_week-12.docx create mode 100644 OOP1-Lab8/README.md delete mode 100644 OOP1-Lab9/Lab_Assignment_week-13.docx create mode 100644 OOP1-Lab9/Pascal2.cpp create mode 100644 OOP1-Lab9/README.md delete mode 100644 OOP1-Lab9/Source.cpp delete mode 100644 OOP2_Lab1/Lab_Assignment-1.docx create mode 100644 OOP2_Lab1/README.md delete mode 100644 OOP2_Lab2/Lab2_constructor_.n_Destructor.docx create mode 100644 OOP2_Lab2/README.md diff --git a/OOP1-Lab1/Source.cpp b/OOP1-Lab1/Circle.cpp similarity index 57% rename from OOP1-Lab1/Source.cpp rename to OOP1-Lab1/Circle.cpp index f6cdce8..6d3c314 100644 --- a/OOP1-Lab1/Source.cpp +++ b/OOP1-Lab1/Circle.cpp @@ -1,24 +1,27 @@ -//U1910049 Rustam Zokirov -//Section 004 -//Assignment-2(Operators) -//C++ program to Calculate Area and Circumference of Circle +// Rustam Zokirov +// C++ program to Calculate Area and Circumference of Circle #include + using namespace std; -int main(){ + +int main() +{ cout << "\t\tC++ program to Calculate Area and Circumference of Circle.\n"; float R, Area, Circumference; - cout << "Please enter the Radius of Circle: " ; + cout << "Please enter the Radius of Circle: "; cin >> R; - if (R > 0) { + if (R > 0) + { Area = 3.14 * R * R; Circumference = 2 * 3.14 * R; cout << "Area of Circle is " << Area << ";" << endl; cout << "Circumference of Circle is " << Circumference << ";" << endl; - } - else { - cout << "Negetive numbers cannot be applied !!!"< #include + using namespace std; -int main2(){ + +int main() +{ cout << "\t\tC++ program to Calculate Area of Equilateral Triangle.\n "; float a, Area; cout << "Please enter the value for the side of Triangle: "; cin >> a; - if (a > 0) { + if (a > 0) + { Area = sqrt(2) * a * a * 0.25; cout << "The Area of this triangle is " << Area << ";" << endl; } - else { + else + { cout << "The sides of Triangle cannot be negative numbers ! " << endl; } system("pause"); diff --git a/OOP1-Lab1/README.md b/OOP1-Lab1/README.md new file mode 100644 index 0000000..a41c617 --- /dev/null +++ b/OOP1-Lab1/README.md @@ -0,0 +1,8 @@ +# Practical Lab Assignment - Operators + +1. C++ Program to Calculate Area and Circumference of Circle. +2. C++ Program to Calculate Area of Scalene Triangle. +3. C++ Program to Calculate Area of Equilateral Triangle. +4. C++ Program to Calculate Area of Right angle Triangle. +5. C++ Program to Calculate Area of Rectangle. +6. C++ Program to Calculate Area of Square. \ No newline at end of file diff --git a/OOP1-Lab1/Source4.cpp b/OOP1-Lab1/Rectangle.cpp similarity index 55% rename from OOP1-Lab1/Source4.cpp rename to OOP1-Lab1/Rectangle.cpp index 773a532..fae1e1b 100644 --- a/OOP1-Lab1/Source4.cpp +++ b/OOP1-Lab1/Rectangle.cpp @@ -1,24 +1,27 @@ -//U1910049 Rustam Zokirov -//Section 004 -//Assignment-2(Operators) -//C++ program to Calculate Area of Rectangle +// Rustam Zokirov +// C++ program to Calculate Area of Rectangle #include #include + using namespace std; -int main4() { + +int main() +{ cout << "\t\tC++ program to Calculate Area of Rectangle. " << endl; float a, b, Area; - cout << "Please enter the length of Rectangle: " ; + cout << "Please enter the length of Rectangle: "; cin >> a; cout << "Please enter the width of Rectangle: "; cin >> b; - if (a > 0 && b > 0) { + if (a > 0 && b > 0) + { Area = a * b; cout << "The area of Rectangle is " << Area << ";" << endl; } - else { - cout << "The sides of Rectangle cannot be negetive numbers !" << endl; + else + { + cout << "The sides of Rectangle cannot be negative numbers !" << endl; } system("pause"); return 0; diff --git a/OOP1-Lab1/Source3.cpp b/OOP1-Lab1/RightTriangle.cpp similarity index 61% rename from OOP1-Lab1/Source3.cpp rename to OOP1-Lab1/RightTriangle.cpp index 6116d8f..2ad2459 100644 --- a/OOP1-Lab1/Source3.cpp +++ b/OOP1-Lab1/RightTriangle.cpp @@ -1,23 +1,26 @@ -//U1910049 Rustam Zokirov -//Section 004 -//Assignment-2(Operators) -//C++ program to Calculate Area of Right angle Triangle +// Rustam Zokirov +// C++ program to Calculate Area of Right angle Triangle #include + using namespace std; -int main3() { + +int main() +{ cout << "\t\tC++ program to Calculate Area of Right angle Triangle.\n "; float a, b, Area; - cout << "Please enter the value for the first cathet of Triangle: " ; + cout << "Please enter the value for the first cathet of Triangle: "; cin >> a; - cout << "Please enter the value for the second cathet of Triangle: " ; + cout << "Please enter the value for the second cathet of Triangle: "; cin >> b; - if (a > 0 && b > 0){ + if (a > 0 && b > 0) + { Area = b * a * 0.5; cout << "The Area of this Triangle is " << Area << ";" << endl; } - else { - cout << "The sides of Triangle cannot be negative numbers ! "< #include + using namespace std; -int main1() { + +int main() +{ cout << "\t\tC++ program to Calculate Area of Scalene Triangle.\n"; float a, b, c, S, Area; cout << "Please enter the values for the first side of Triangle: "; - cin >> a ; + cin >> a; cout << "Please enter the values for the second side of Triangle: "; cin >> b; cout << "Please enter the values for the third side of Triangle: "; @@ -24,13 +25,15 @@ int main1() { cout << "The Area of Triangle is " << Area << endl; return 0; } - else { - cout << "This triangle is wrong try another values. " << endl; + else + { + cout << "This triangle is wrong try another values." << endl; return 0; } } - else { - cout << "The sides of Triangle cannot be negative numbers !" << endl; + else + { + cout << "The sides of Triangle cannot be negative numbers!" << endl; } system("pause"); return 0; diff --git a/OOP1-Lab1/Source5.cpp b/OOP1-Lab1/Square.cpp similarity index 55% rename from OOP1-Lab1/Source5.cpp rename to OOP1-Lab1/Square.cpp index 283f62f..05012d9 100644 --- a/OOP1-Lab1/Source5.cpp +++ b/OOP1-Lab1/Square.cpp @@ -1,21 +1,24 @@ -//U1910049 Rustam Zokirov -//Section 004 -//Assignment-2(Operators) -//C++ program to Calculate Area of Square +// U1910049 Rustam Zokirov +// C++ program to Calculate Area of Square #include #include + using namespace std; -int main5() { + +int main() +{ cout << "\t\tC++ program to Calculate Area of Square." << endl; float a, Area; - cout << "Please enter the value for the side of Square: " ; - cin >> a ; - if (a > 0 ) { - Area = a * a ; + cout << "Please enter the value for the side of Square: "; + cin >> a; + if (a > 0) + { + Area = a * a; cout << "The area of Square is " << Area << ";" << endl; } - else { + else + { cout << "Negetive numbers cannot be applied !!!" << endl; } system("pause"); diff --git a/OOP1-Lab1/Tasks.docx b/OOP1-Lab1/Tasks.docx deleted file mode 100644 index 807a84964e8a62f575680279d1262aac8f731eff..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11961 zcmeHtWmjCw)^+0&2<{djI0SbB!8JGpcXw|bf(3VJ+}$lmaDoJPYn4#(fyD;E0}ufK06Ac-V9G`d3IKQk2LNCJ5TUh2 z?d@Dl?OgO#JseD(bziyL+Puhvg{I8`KttO9@A*GG0}YA8c0DZU;@^{Q(c+rajP~-% z=%FJ7lbMwF5%9gB)gR&q+8#Twpq131;*f19sMx=+va9z8PA;X{AYn8DsSfd8C%;e7 zv*c!2od3$?XF@=|k;t+t{DsTkhNG>WK#mKFg|e|XepCfnAtOH{5J%$%5KW&HqyEw} zik&p*9+!Rnd;2O($|{uuokAl5(Q~~V%x4L8^PE0*QWW?mi_X&;=1Fov1`XI@2j2TL z*@@mMim^`MKxdM(XhM7;km9>&gd-O+7Y-$c!G4M&pkZl5wYRE{M@vlsqdb^+{Zg%v zs^NBtNsJjPZfrR%uTmp-CF_Y6p(qNfO+b7LOoB!iw@wJ)-<1!-krS$x_%_^zRgkwF z1|n=0kg#4sinD;p^|&72Sy;*lFBo&YgtE-v66#;Awy7MmTnDi3Py6YnOU;>&BV5_$ zydfFf0pHo)zyJVGPcQ(*zfqDjjX!#WxUG=Yea>MMC4J}G>|uyfnr+GDBl(rW_*=zBR5R%q00$*e^ zq1qI7rr4OC)jHkJss{vQy22Nb!1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TQ0azh z$R9PL(CPczS7;l0>=LtQnypHut^D#^A>BI8#;aKAG|td-R%ux!5x!$;DePC1eXG1xR!Cj? zkWin#PW5L^qfAtJ^76lG9A}ji{xI|B7ySeJ-)+9o{eKNWI{%so>Gu!oT7_<^vb`yp zWCl|<7k6d{y?s_+u7D2OXd_~?z}PuFs8NK|{82QjeS?+woJZ-hTifaN+ko63Lc?lm z@BGX-2z~enRzT6Db5aYT4!K$wb8F>aEyNxkO41R$N1F0GY~#0NRo~Ws%&dQOSy==} z6wL0ry$b#K@zaD+L&IX|?2=bfRu#N&8Nyx%ZrQcm*1>MujL`SelgE_X;)=3liRucG z(&Kr7Xfll}%N7?uj-C3vB|g&Bf&Dd`Z1pvi-N`A zW8GywQxhvY5)mD*+ik(Oo%a_{|Ji0kK{G*Aq<_xwg*5ux^A8!nin4z<@b`?wU(pE= zk>!{C#NUB`Pu2PrSP!{6|NkX!{ch>^^qs$K?L!io|0|j2clhtO^?$*6QU4A9{qFvE z6Tjcg{AD5*qUinW@bZgT_dEP|jrT8jFy6o6e^Y#a$Nw%6{)G=E_&5GHx$t)je;3C7 z!UF(PkQ|2JWwPJVe^(QJMT1FxLI0^O{0{&9u=ke%uNQyL-hYmMin4GJ_xPFp`V7zw LQ7<+bewO|pV5%+# diff --git a/OOP1-Lab2/Greatestnumber.cpp b/OOP1-Lab2/Greatestnumber.cpp index 9b50e7d..8be4794 100644 --- a/OOP1-Lab2/Greatestnumber.cpp +++ b/OOP1-Lab2/Greatestnumber.cpp @@ -1,10 +1,11 @@ -//U1910049 -//Lab assignment #3 -//Program to find greatest in 3 numbers +// U1910049 +// Lab assignment #3 +// Program to find greatest in 3 numbers #include using namespace std; -int main2() { +int main2() +{ float a, b, c; cout << "Enter the 3 numbres: "; cin >> a >> b >> c; @@ -14,8 +15,8 @@ int main2() { cout << "The greatest number is " << b << ";" << endl; if (c >= a && c >= b) cout << "The greatest number is " << c << ";" << endl; - else if(a==b==c) - cout << "All numbers are equal."<< endl; + else if (a == b == c) + cout << "All numbers are equal." << endl; system("pause"); return 0; } \ No newline at end of file diff --git a/OOP1-Lab2/Leap year.cpp b/OOP1-Lab2/LeapYear.cpp similarity index 62% rename from OOP1-Lab2/Leap year.cpp rename to OOP1-Lab2/LeapYear.cpp index 780d317..d6e41d6 100644 --- a/OOP1-Lab2/Leap year.cpp +++ b/OOP1-Lab2/LeapYear.cpp @@ -1,26 +1,33 @@ -//Program to find that entered year is leap or not. +// Program to find that entered year is leap or not. + #include using namespace std; -int main4() { + +int main4() +{ int year; - cout << "Enter a Year: " ; + cout << "Enter a Year: "; cin >> year; if (year % 4 == 0) { if (year % 100 == 0) { - if (year % 400 == 0) { - cout << "Given " << year << " year is a leap."<< endl ; + if (year % 400 == 0) + { + cout << "Given " << year << " year is a leap." << endl; } - else { + else + { cout << "Given " << year << " year isn't a leap." << endl; } } - else { + else + { cout << "Given " << year << " year is a leap year." << endl; } } - else { + else + { cout << "Given " << year << " year isn't a leap." << endl; } system("pause"); diff --git a/OOP1-Lab2/OddEven.cpp b/OOP1-Lab2/OddEven.cpp index 0a8ce19..9b17b82 100644 --- a/OOP1-Lab2/OddEven.cpp +++ b/OOP1-Lab2/OddEven.cpp @@ -1,16 +1,18 @@ -//U1910049 -//Lab assignment #3 -//Program to find whether given number is even or odd. +// U1910049 +// Lab assignment #3 +// Program to find whether given number is even or odd. + #include using namespace std; -int main1() { +int main1() +{ int a; cout << "Enter the number: "; cin >> a; if (a % 2 == 0) - cout << "Your number is Even!"<< endl; + cout << "Your number is Even!" << endl; else - cout << "Your number is Odd!"<< endl; + cout << "Your number is Odd!" << endl; system("pause"); return 0; } \ No newline at end of file diff --git a/OOP1-Lab2/README.md b/OOP1-Lab2/README.md new file mode 100644 index 0000000..f31e652 --- /dev/null +++ b/OOP1-Lab2/README.md @@ -0,0 +1,7 @@ +# Practical Lab Assignment - Control Structures - if/else + +1. Program to convert temperature from degree centigrade to Fahrenheit. +2. Program to show swap of two no’s without using third variable. +3. Program to find greatest in 3 numbers. +4. Program to find that entered year is leap year or not. +5. Program to find whether given no is even or odd. \ No newline at end of file diff --git a/OOP1-Lab2/Swapping.cpp b/OOP1-Lab2/Swapping.cpp index 2dc4f7c..c176b59 100644 --- a/OOP1-Lab2/Swapping.cpp +++ b/OOP1-Lab2/Swapping.cpp @@ -1,18 +1,19 @@ -//Program to show swap of two no's without using third variable +// Program to show swap of two no's without using third variable #include using namespace std; -int main(){ +int main() +{ float a, b; - cout << "Enter first number: "; - cin >> a ; - cout << "Enter second number: "; - cin >> b; - a = a + b; - b = a - b; - a = a - b; - cout << "We have swapped your numbers, result in below." << endl; - cout << "a = " << a << endl; - cout << "b = " << b << endl; + cout << "Enter first number: "; + cin >> a; + cout << "Enter second number: "; + cin >> b; + a = a + b; + b = a - b; + a = a - b; + cout << "We have swapped your numbers, result in below." << endl; + cout << "a = " << a << endl; + cout << "b = " << b << endl; system("pause"); return 0; } \ No newline at end of file diff --git a/OOP1-Lab2/Tasks.docx b/OOP1-Lab2/Tasks.docx deleted file mode 100644 index ae024af3a2dc754964210196cb1b7e7b0449f0b4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14325 zcmeHu1zQ~3vi9H}oS-2P+}$C;gS)%CySqbhm*DR1?hXNhySux5lYP&*d+(h6e1G7c zo@Zv&Jl*fxYgJdRT2d`71_q7>fCNAT0008OIl-~VHxK{-6%zObK!d9BTUpv0SlVmJ zyI338Y0x-Zn19R$2PMk{fC8`o@9}?F1GRAyQr%yW0?$ZZgA6P3HO{rev#h1LC_*qN zMjT;rTJRTC+F#p#U|=(SkvX5vUGZ4ETUZ#shNRRGfIBZN6;WY5sDuu$O=kEJ*B1GG z%MC*Zi3Bx(IjWlZBhGb2h3i%wSol{9I)fUdWw1Rmqf7{rIiIZfWmjs@wnuU&KF?6{ z^Cii>Z(?SkNk~D{em8DXQDH8~*&CreKZ!oT>QCvlRgH=!TbE1Af)nn*#lCzEVTFMq zFX3jBduIjhchLs3GrZv)aT+hWr2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;>J) zC0`q#S_^tAA&0H)a*q(}8p7p9jj+V{{#oP9s8yFTyOSP(P;TU=GCDPm$qvV_aSYw# z+H0KUkAcHT0S?z^$Pb5d8lV~^f+l?WT|WDxs^2*EF7w>}$AR%#e%8eg z`ogDbGAGV6G>JPDwxwn-M`aYWO5OTp+pP0q|KM92?0Hrc>P*%3cox|AyGnh&@1;g= za0SN$%$gz9B1YJUW0=M*I|RvU{ZtgNA7f{7-JKJ9pBh)EZ&@@0ho+YOxtLmLZOTwS=bSSTFC^uwy(+SpgG~m_ zJ$2$jzlwpt@rdARI@{+i(|FICl%7}ixF3aHu-&an;tBCeE54x7)NevkprB=A%ObS| zynHlg05?y|=ke^IDySV_#$jy&KXry)CbIl-gI&&e*N>+K%8Cc>#BnlgsXNwY^FwUi zkbk{f^SIk#ceQbW*!qgV`iG5Co-Od7H9tS(G2k2$46Do!AXGnE6FR5~-Tin1Ly#B6=wkam4vyg%5jN?<&ElMb7nsQ#q z#a&L*i~k+LgMd;4JBWXNFX`Xm`QPO~yrm>9_IHB6zY+0o;IDE3I4$_g`w_nb|DGoP zSKtvarv3kt#(!t}Jq7qrE)|%6NC^HN{(JV@pYZf||APOX3->$4?^yHcWT zUvmzAhyT9Q`6rwa>)-JI-S_+*{QKJMpWyb7e*^!vQu{m4-)D1wvH$=xWB|bLbGzTs ze;@h&6}?OO7xcf!!N0?QAF%vMU`g|@M*MB~@;mK;1W&i*H diff --git a/OOP1-Lab3/README.md b/OOP1-Lab3/README.md new file mode 100644 index 0000000..62940ce --- /dev/null +++ b/OOP1-Lab3/README.md @@ -0,0 +1,13 @@ +# Practical Lab Assignment - Control Structures - Loop/Switch + +1. Program to calculate sum of numbers from m to n. + - Hint: Input two numbers m and n. Find sum of all numbers from m to n. For example m=3 and n=8 then sum will be 3 + 4 + 5 + 6 + 7 + 8 = 33. +2. Program to print Fibonacci series up to 100. + - Hint: Fibonacci Series is 1, 1, 2, 3, 5, 8, 13, 21, .... +3. Program to input a number and then calculate sum of its digits. + - Hint: let number = 562. Then you should print 5 + 6 + 2 = 13. +4. Program to find whether given number is a prime number or not. +5. Program to display sum of series 1 + 1/2 + 1/3 + ... + 1/n. +6. Program to display series and find sum of 1 + 3 + 5 + ... + n. +7. Program to use switch statement. Display Monday to Sunday. +8. Program to display arithmetic operator using switch case \ No newline at end of file diff --git a/OOP1-Lab3/Tasks.docx b/OOP1-Lab3/Tasks.docx deleted file mode 100644 index 62235b5f9a61ebf0b929674a80c308e5f55b734b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13962 zcmeHugZ+EP0*62cfdYX60RbTaVUD*`GX(_!DTD+8K?8vS(-O9`bvChe z)>HPdH*wOTcek-7&VvA>{tN>4R{#Hw|HW^hE@{ZJhY?xyF8C#IqG4XLnYyrdATQPg z&-@WIf>l=JMkv4arG1N&sgRtBb)b)UY}soJhAD7jF~b^wQtw7_gvFQQpQvlW@or&m z8~D)}hjJr{aaC}D-Ork}wGBs_9h8x*z9(Ts305vEKPwPJ{T?KSHaS+6oVyPPNys-6 z=lrMcnZMK->bIn##XtmT2Kn${iG`yKUk-8<_?qJ;i}G4YN+Cwg2oaZd=R-Nkb}4G{ zrjxEFME4H}QAEt1Ds_*&y0KmQJE-`kY|q zrTU4x*~(0)mXF(xeN5^B9;1`eFd$88x(VqoVs{Rqv9_;V#GwKzL93ijMbx{luPo6! zhIs^O2eZRU{D+L{X0wsQXF*ukUKa4RGL_<|xnlTRrgr!{nD-v)aED? zZWgWt+Y-==!56$+j6((9M%L>qIEef|#FH={xAE+aBKszNaBt$N=V)T>#6bVs`TxZ7 zf3Yn7?a|8n#nG}_X<<=o3N@BBQN&Vj*) zp~jTJ+npjf3sRb~X(RI5{2T|Bxw|x9me1)-GqaZBT3*nle4_0k z1kIy3zObeO)u}ANxY+L18l7I{!^CgQ(Uvqfbhy@x3=~=MhUKuh=dBZmp7|X`-@}9H z0J(s0hM(T1+Nhc@dl9=h0_&=!>c8cqwmp&n@{Q5}4g!J?0t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abK=sw%fxIB=w5b1@|};ZWZ;e^7BngxvFmiIHDJKZI~0>*n)|TRHXBDTn6IXpBgo z{4nX_`0z7^>wv6Ghj?y(zMEMndzYl1q7Rp^aeOxYr72jAd&^1cX%qg%R2|&h-#tO| z{kdpT*BtGoln8aD!Sn}IfG_oFLZry<)kooN6r(S(k>A6A-~;n7){P>6Y_pNhSZNlj3A6EKLUE8XQD~a#MUxmX8sWk~aM8%xB^e_oi2ZNQUT@GO-( zi=Un%qlrA)8^weU8*o>v`EET5Yrift4OUW|x1 z&tEw%NQz>KEQD=O;w)FmLd@brdSAaR$;7 zh$HZJmAc#JyHvtbBVs-p+Wi0(n9C0zCt>*^MRpVx2Azr3KGEyj4x6YLk6pHuGz z>?wP*#K3C<_`w`8Rq#~iJLWUf<}FMNge!)`79av%5yG_OpEVl?uU`4~ z8K#!sm!MvQzgrL#&Bw2)wk8K}ATdZv7L-~+eS#P9Ohcn^gXG`51kQP2|N z*`qd0?^qicI$>!_<>uPFMKlwA7U0OL$4`QL{?(a?_TyAXbSh2`bZvzI?($i{WL;vc z8qwvm8BTRR^>p311(nkKWku+T+ehcwdihV5FLKumhXzjyJBDnTQyjdxN>PN}*U$q3 zZ=dx)9swvA@GS!J@0)J^{P=%f|78n~ywpD#{Bv8tpTOU)pWYu1^zQ%`tQJw zw=AFEqYD3@?CD=Q{hBiS7cVHlza-H93jZ~+=r1@C@*nVD(~N#)@oSj*FBZy}e@00D z7HIkv{%dgRFSriwAMjs7RljohH7N5JhoZN1sb4}gzk>hi7ybnW0WqKg0r@X4@mKh- zM*Uw5wrKun`yVF$ulQdT{$F@#`akghQ2)Q;|2d=og$4mJW&B(B|Crz9r6Avi7YGRa O+Yj_@ggUYOR{DQ~Vgx?` diff --git a/OOP1-Lab4/Lab_Assignment_week-6.docx b/OOP1-Lab4/Lab_Assignment_week-6.docx deleted file mode 100644 index e0665569ef15c21eb0860caa651c2a9596e48bda..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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6kyAF#)&|B7z-7(fignZ!KP_=0 z`v?@jf`}b%#eoZh7A=Mc?bNAMa@Tv_+MtS*^|=_~O&wRBa#E;EOyO5;W-f$49Hoq3 zy7z4{-k+UA$$Ik8k!{e`t+X3nGex+`EKt1NZN7o2@zc|xioS+wOlocmoH#lEHWN&eKohrI8))adDaf`dRQRWO< z8iv!c$3;TJlXFRQ3&*5tE)_03;mEPNni_SzagiX~R3a8bGRy`Tm+CPr zr*@A9k)9_#yeOSns|Ll#HsJH!QWk%!n_Nez1Hhym)z=ZJS` zU{~BZQnxwh0pgAMvwD%F!jnGCogRGxB~7p{}5Q>!k0q1n)sO8sbDx`VK90pn`bNT4z*c#~kCHHN1##FY@!3KRoyF<7d zPo6#=sSx|%X)U)MaTK?@vBv7TqQ){c!jFXXouCBnh#AYRY4!X7=0IPGLe+v}r&jKa z9~i6qR#KhcL8bB_3oJ1**87TD_FMJKKc_1@WhV^DnQ3%8hclP~?VL!V_nva$4xK7K zIBi{0L)16eO>u$3_@ooxYKU=|8_sAuwSTZg=%D5{LxDp5E`af|DH;(&=nR_|9BD1! zVDdAKf0IB;6y>L_lIiX_cJwY5KU#BEyev0z7xv{>A(S^bD9G`z1}LP#PStv3vofgY z8smWmi;w=7nN8pISW>zg2vgo=zbwHoCyMh&xeYPP^5KwyHGxDEz0|Gn!?f8eifeO-p2l)Fw zq`zAC1D`2>*_HIG;omoB{MGOWuz2u)+p6&^(yxX0e`2Y_{6iW3ujaqjEB8yZ7dh}N!mlj&CjtuVzYzY$i3-vXz%T^>5P*M@z(|MZ{Q2pB0RGj;v;Y7A diff --git a/OOP1-Lab4/README.md b/OOP1-Lab4/README.md new file mode 100644 index 0000000..351329d --- /dev/null +++ b/OOP1-Lab4/README.md @@ -0,0 +1,38 @@ +# Practical Lab Assignment - Control Structure - Nested Loop + +1. Program to print stars Sequence1. + ``` + * + ** + *** + **** + ***** + ``` +2. Program to print stars Sequence2. + ``` + * + ** + *** + **** + ***** + ``` +3. Program to print star Sequences3. + ``` + * + *** + ***** + ``` +4. Program to print Sequence4. + ``` + * + ** + *** + **** + ***** + ***** + **** + *** + ** + * + ``` +5. Write a program to add first seven terms of the following series using for loop: `1/!1+ 2/!2 + 3/!3 + ...` \ No newline at end of file diff --git a/OOP1-Lab4/Source.cpp b/OOP1-Lab4/Source.cpp index fd94e39..4b0092b 100644 --- a/OOP1-Lab4/Source.cpp +++ b/OOP1-Lab4/Source.cpp @@ -1,12 +1,15 @@ -//Lab assignment #5 -//ID:U1910049; Name:Zokirov Rustam -//Control structure - Nested Loop +// Lab assignment #5 +// ID:U1910049; Name: Zokirov Rustam +// Control structure - Nested Loop #include using namespace std; -int main() { - for (int i = 1;i <= 5;i++) { - for (int j = 1;j <= i;j++) { +int main() +{ + for (int i = 1; i <= 5; i++) + { + for (int j = 1; j <= i; j++) + { cout << "*"; } cout << endl; diff --git a/OOP1-Lab4/Source1.cpp b/OOP1-Lab4/Source1.cpp index 02258d3..b027509 100644 --- a/OOP1-Lab4/Source1.cpp +++ b/OOP1-Lab4/Source1.cpp @@ -1,12 +1,15 @@ -//Lab assignment #5 -//ID:U1910049; Name:Zokirov Rustam -//Control structure - Nested Loop +// Lab assignment #5 +// ID:U1910049; Name:Zokirov Rustam +// Control structure - Nested Loop #include using namespace std; -int main2() { - for (int i = 1; i <= 5;i++) { - for (int j = 5;j >= 1;j--) { +int main2() +{ + for (int i = 1; i <= 5; i++) + { + for (int j = 5; j >= 1; j--) + { if (i >= j) cout << "*"; else diff --git a/OOP1-Lab4/Source2.cpp b/OOP1-Lab4/Source2.cpp index 45ee5a5..eee2058 100644 --- a/OOP1-Lab4/Source2.cpp +++ b/OOP1-Lab4/Source2.cpp @@ -1,16 +1,20 @@ -//Lab assignment #5 -//ID:U1910049; Name:Zokirov Rustam -//Control structure - Nested Loop +// Lab assignment #5 +// ID:U1910049; Name:Zokirov Rustam +// Control structure - Nested Loop #include using namespace std; -int main3() { - for (int i = 1; i <= 5;i+=2) { - for (int j = 3;j >= i;j-=2) { +int main3() +{ + for (int i = 1; i <= 5; i += 2) + { + for (int j = 3; j >= i; j -= 2) + { cout << " "; } - for (int j = 1;j <=i;j++) { + for (int j = 1; j <= i; j++) + { cout << "*"; } cout << endl; diff --git a/OOP1-Lab4/Source3.cpp b/OOP1-Lab4/Source3.cpp index 7d7e611..4300bc7 100644 --- a/OOP1-Lab4/Source3.cpp +++ b/OOP1-Lab4/Source3.cpp @@ -1,18 +1,23 @@ -//Lab assignment #5 -//ID:U1910049; Name:Zokirov Rustam -//Control structure - Nested Loop +// Lab assignment #5 +// ID:U1910049; Name:Zokirov Rustam +// Control structure - Nested Loop #include using namespace std; -int main4() { - for (int i = 1;i <= 5;i++) { - for (int j = 1;j <= i;j++) { +int main4() +{ + for (int i = 1; i <= 5; i++) + { + for (int j = 1; j <= i; j++) + { cout << "*"; } cout << endl; } - for (int i = 1;i <= 5;i++) { - for (int j = 5;j >= i; j--) { + for (int i = 1; i <= 5; i++) + { + for (int j = 5; j >= i; j--) + { cout << "*"; } cout << endl; diff --git a/OOP1-Lab4/Source4.cpp b/OOP1-Lab4/Source4.cpp index 2ea6afb..a93f326 100644 --- a/OOP1-Lab4/Source4.cpp +++ b/OOP1-Lab4/Source4.cpp @@ -1,16 +1,18 @@ -//Lab assignment #5 -//ID:U1910049; Name:Zokirov Rustam -//A program to add first seven terms of the following series using for loop:1 / !1 + 2 / !2 + 3 / !3 + …………………. +// Lab assignment #5 +// ID:U1910049; Name: Zokirov Rustam +// A program to add first seven terms of the following series using for loop:1 / !1 + 2 / !2 + 3 / !3 + ... #include using namespace std; -int main5() { - float sum = 0,fact=1; - for (int i = 1;i <= 7;i++) { +int main5() +{ + float sum = 0, fact = 1; + for (int i = 1; i <= 7; i++) + { fact = fact * i; sum += i / fact; } -cout << "Sum is : " << sum << endl; + cout << "Sum is : " << sum << endl; system("pause"); return 0; } \ No newline at end of file diff --git a/OOP1-Lab5/Lab_Assignment_Week-9.docx b/OOP1-Lab5/Lab_Assignment_Week-9.docx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Ax$Wtg4`em})2?0? zVy4Z4q-72iR6+f#Yd5mD|DR_EeX`%T43#e1C1%7nlzAcCW-iAXdR%a=zF6a3BOQod zo3S)ms%}%M*!fQjb20S<8VjDK3MX;X8yGYZ2RozK5~1JRHLCB*Orf}s2sW;d*&s^8t61_`!RQn3`bl=wJ1AWu5cxYKSE z6+%#%&1?S^2iUZJ8u`FMh*BZEy~>c<;@7a6O*!?pfiI zY2WBkVatnyZjT^qoJSnR=-z+R0Mx7h(giSZ22gb2pMP@rqwoJX|HCg2iZXv^@b@(A zKY%~a*&qe`OH%f)z`y6G{uS5(%8~hP#s2@vR{fRJuPKUu@`45hO@HI`*M!Ai;lHNk z{0Ub={vG~nlFqLzeht$8$sz<4$oW_F;V(g)U*W$7e*T0z;QkK(B@FZ{hhGC8e{yKS z`=bH>4uAX#{`+L-PbdKJNC5!+$JFOn_^$)iKNZflF$w2pI83}i1nuy diff --git a/OOP1-Lab5/README.md b/OOP1-Lab5/README.md new file mode 100644 index 0000000..8a33ee6 --- /dev/null +++ b/OOP1-Lab5/README.md @@ -0,0 +1,6 @@ +# Practical Lab Assignment + +1. Write a program to calculate area of a circle using functions. +2. Write a program to swap two values using functions. +3. Write a program to convert time to minutes using functions. (input 3 variables namely hours, minutes and seconds. Convert everything into minutes.) +4. Write a program to sum the series up to n (Input n) \ No newline at end of file diff --git a/OOP1-Lab5/Source.cpp b/OOP1-Lab5/Source.cpp index 6854b00..2f54011 100644 --- a/OOP1-Lab5/Source.cpp +++ b/OOP1-Lab5/Source.cpp @@ -1,25 +1,29 @@ -//Practical Lab Assignment-7(Week 9) -//ID:U1910049 Name:Rustam Zokirov -//Program to calculate area of a circle using functions +// Practical Lab Assignment-7(Week 9) +// ID:U1910049 Name: Rustam Zokirov +// Program to calculate area of a circle using functions #include -#include //C++ libriry which is including "pow" and PI=3.14 +#include //C++ libriry which is including "pow" and PI=3.14 using namespace std; -float area(float radius) {//function for calculating the area + +float area(float radius) +{ // function for calculating the area float area; - area = (atan(1) * 4) * (pow(radius, 2));//"atan" is the function which is finding the PI=3.14 + area = (atan(1) * 4) * (pow(radius, 2)); //"atan" is the function which is finding the PI=3.14 return area; -}//end function "area" -int main1() { +} // end function "area" + +int main1() +{ float radius; cout << "Please enter the radius of circle: "; - cin >> radius;//inputing the radius - - if (radius > 0) - cout << area(radius) << endl;//calling the function "area" for calculating the Area of Circle - + cin >> radius; // inputing the radius + + if (radius > 0) + cout << area(radius) << endl; // calling the function "area" for calculating the Area of Circle + else - cout << "INVALID Radius!"< -#include //C++ libriry which is calculating "pow" and PI=3.14 +#include //C++ libriry which is calculating "pow" and PI=3.14 using namespace std; -int main2(){ + +int main2() +{ int a, b; cout << "Enter two numbers: "; cin >> a >> b; - swap(a, b);//C++ function to swap two numbers - cout << a << " & " << b << endl; //swap is the function which is contained in c++ ==> - //==> there is no need to open new function to swap + swap(a, b); // C++ function to swap two numbers + cout << a << " & " << b << endl; // swap is the function which is contained in c++ ==> + //==> there is no need to open new function to swap return 0; -}//ending the function main \ No newline at end of file +} // ending the function main \ No newline at end of file diff --git a/OOP1-Lab5/Source2.cpp b/OOP1-Lab5/Source2.cpp index 904b4c1..cbe76ff 100644 --- a/OOP1-Lab5/Source2.cpp +++ b/OOP1-Lab5/Source2.cpp @@ -1,22 +1,27 @@ -//Practical Lab Assignment-7(Week 9) -//ID:U1910049 Name:Rustam Zokirov -//Program to convert into minutes +// Practical Lab Assignment-7(Week 9) +// ID:U1910049 Name: Rustam Zokirov +// Program to convert into minutes + #include using namespace std; -double converting1(double hours, double minutes, double seconds) {//initializing the variables - return (hours * 60) + (minutes)+(seconds / 60);// returning the function "converting" + +double converting1(double hours, double minutes, double seconds) +{ // initializing the variables + return (hours * 60) + (minutes) + (seconds / 60); // returning the function "converting" } -int main3() { + +int main3() +{ double hours, minutes, seconds; cout << "Hours: "; - cin >> hours; //Prompting user for data and - cout << "Minutes: "; //reading 3 numbers for user - cin >> minutes; //! + cin >> hours; // Prompting user for data and + cout << "Minutes: "; // reading 3 numbers for user + cin >> minutes; //! cout << "Seconds: "; cin >> seconds; - if (hours >= 0 && minutes >= 0 && seconds >= 0)//the program will be executed when all numbers are positive + if (hours >= 0 && minutes >= 0 && seconds >= 0) // the program will be executed when all numbers are positive cout << "The time in minutes is " << converting1(hours, minutes, seconds) << endl; - else //calling function to calculate the main function + else // calling function to calculate the main function cout << "Invalid inputs!" << endl; - return 0;//indicates that the program will ended successfully + return 0; // indicates that the program will ended successfully } \ No newline at end of file diff --git a/OOP1-Lab5/Source3.cpp b/OOP1-Lab5/Source3.cpp index 2bc91da..0f007cb 100644 --- a/OOP1-Lab5/Source3.cpp +++ b/OOP1-Lab5/Source3.cpp @@ -1,28 +1,32 @@ -//Practical Lab Assignment-7(Week 9) -//ID:U1910049 Name:Rustam Zokirov -//Program to sum the series up to n +// Practical Lab Assignment-7(Week 9) +// ID:U1910049 Name: Rustam Zokirov +// Program to sum the series up to n #include #include using namespace std; -double qwerty(double n, double sum, double fact) { - for (int i = 1; i <= n; i++) { - fact = fact * i;//calculating the factorial of the numbers - sum += (pow(i,i) / (fact));//executing the sum of numbers - }//"pow" is raising 'i' to power 'i' - return sum;// -}//end function qwerty -int main() { +double qwerty(double n, double sum, double fact) +{ + for (int i = 1; i <= n; i++) + { + fact = fact * i; // calculating the factorial of the numbers + sum += (pow(i, i) / (fact)); // executing the sum of numbers + } //"pow" is raising 'i' to power 'i' + return sum; // +} // end function qwerty + +int main() +{ double n; - double sum=0; + double sum = 0; double fact = 1; - cout << "Please ebter the number: ";//outputing and inputing the number + cout << "Please ebter the number: "; // outputing and inputing the number cin >> n; - if (n>0)//the program will calculate the sum when numbers is positive - cout << "Sum is: " << qwerty(n, sum, fact) << endl;//calling the function qwerty - else//when the number is negative 'else' will work + if (n > 0) // the program will calculate the sum when numbers is positive + cout << "Sum is: " << qwerty(n, sum, fact) << endl; // calling the function qwerty + else // when the number is negative 'else' will work cout << "INVALID INPUT!" << endl; system("pause"); return 0; -}//ending the program successfully \ No newline at end of file +} // ending the program successfully \ No newline at end of file diff --git a/OOP1-Lab6/Lab_Assignment_Week-10.docx b/OOP1-Lab6/Lab_Assignment_Week-10.docx deleted file mode 100644 index 41b324d205d9e7a31068f4e9d8c2e593751f9ccc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14901 zcmeHuWpG@(vh|pm8DeH;W@ct)$IKKnGc!BJn3?Su5;Hqy#+Wh2n7+xmaL&oS_0{|T z-mcnGPtB|~+S=Xfmef*`1p`M1Kmwov001%IlK9j&4g>%|g9P3HXi!~I2YXj@dsjm> zFGq71eFjfETcSd6P^tm|DDe0Hcl|H!fuy2rQOo0~4p3uNfgm+V0`(d{kEJn(X$-EJH4eWr*vH*f&A@F1B+6Q{j?w`~iB7RZS zm#Yc~ak4g`8OY(Y!MEOu3DI6Ch1*dAi(~|_W;3SU_2V*`jx|au;3WHS$uClooG>ud zmHb?)hz`)fSKToCquT+o=czKg>X0*150@lt#+N0xI8#+QHaw!vYZgdl6E5T*XVUE_ zbzvgZT=dB%qA*8oACa6h+VcV^_xFWyPc)$6Pe3oP!J984uLx zYrfH&L(<%ZE@{POuUZt>taU|t zp~IimIuh`uVN~N2$MJ4sDmy+8-DrYkWtOgJBUo8p2sICBaTqQj>T}}y!CG7_jYVP% zLm4|PGnmlWN)I~6T2tTB;o34yk>@6wRKap=SryLTioF>|$A!|te1wUd`r+f21Eynu zNUTkV>FfO@8r;bEUI6IO{?kUL#lD5p0lyId2LSK^&>$WT&Ss4NFcdQf zQ#U)H*Zbw}{$(^EK%WQv_5bdxD!EVL3lmUjq`E{?dF6SHMBkq=1T@jYJ1MA^RliT7 zxeMs#pQ)&(r{%vr+`PV+ifi0>KIC}-4Nqlkh zh8NHv|G~G}FH|RivA@BZ>5>5wO#_uZKBtII7!KYJY|t{rO(y|KzYmXCP#nYuMO^m$ zCjs3%Psmk1WBcsQ1|yI6J_mvu9Z8dg>gY0+?dlatl8f`xsig0$d*h=*iy)0Xa19+3#wFtDW>C`JW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X7-x47ah}1uvEw-U|dcPY}E(r&Txu4#}WBHLKpXtQ5NDPu7*g}&;Pvf+DX(6 z4GB*LvkTi>ApYnjDOJ6F#J+8Xph$UH>1chm3_n!)rQKlq5lhs0T^LHLJ&HKSmq4HP zFo;6zOc*LsKh#xYS~y5+i5+(%*CoJZ?l zgzZp9E4(X!%fV&Of#xZQ2;O=7V$hpX1T69u%4!6Ez)O0ZK?H3-TYaBc^$uh~YRZ1| zVnlB9(si!DdjEZ8mEp2x6J%B%%M%KrB0(Xx9aIooeLF{7u2p}_cMW9L4$HGl z0>Khu{S5O#8B3?_43u#0{dN^!#~J9w!l!MqX??A&+@dkREz+29#c$q$Z*S{c7Z4lp zDd!Ldib>a2`fdhyU+R^^@t(VTvkN-09%_Uaw;}x*FD-m(YX=i{m@)%;K74SnKZWvm z#^T?Y9D0be06#<$x|W)_0g1KdPRvnq`EmDAxf;9adnbjn89CxC&2u_|KFj5-ZL@J>~FE_HmWM*WBQD`0rud zp9C4eWSajB>VC)n9u@qFk7WKQ{ using namespace std; -void first() { - //when the case 1 in the main menu - for (int l = 0;l < 120;l++) { +void first() +{ + // when the case 1 in the main menu + for (int l = 0; l < 120; l++) + { cout << "="; } cout << endl; cout << "\t\t\t\t***Area of Geometrical figures.***\n"; - for (int l = 0;l < 120;l++) { + for (int l = 0; l < 120; l++) + { cout << "="; } cout << endl; @@ -23,14 +26,17 @@ void first() { cout << endl; } -void second() { - //when the case 2 in the main menu - for (int l = 0;l < 120;l++) { +void second() +{ + // when the case 2 in the main menu + for (int l = 0; l < 120; l++) + { cout << "="; } cout << endl; cout << "\t\t\t\t***Circumference of Geometrical figures.***\n"; - for (int l = 0;l < 120;l++) { + for (int l = 0; l < 120; l++) + { cout << "="; } cout << endl; @@ -42,30 +48,35 @@ void second() { cout << endl; } -void third() { - //when the case 3 in the main menu - for (int l = 0;l < 120;l++) { +void third() +{ + // when the case 3 in the main menu + for (int l = 0; l < 120; l++) + { cout << "="; } cout << endl; cout << "\t\t\t\t***Find the Largest number among 3 numbers.***\n"; - for (int l = 0;l < 120;l++) { + for (int l = 0; l < 120; l++) + { cout << "="; } cout << endl; - } /////Overloading functions for the Finding AREA///// -double area(double radius) { //overloading function for finding the area of circle +double area(double radius) +{ // overloading function for finding the area of circle double area1; double input_radius; area1 = 3.141592653589793238463 * pow(radius, 2); cout << "The area of Circle: " << area1 << endl; cout << endl; return area1; -} -double area(double sideA, double sideB) { //overloading function for finding the area of rectengle +} + +double area(double sideA, double sideB) +{ // overloading function for finding the area of rectengle double area2; area2 = sideA * sideB; cout << "The area of Rectangle: " << area2 << endl; @@ -73,12 +84,13 @@ double area(double sideA, double sideB) { //overloading function for finding the return area2; } -double area(double sidetriangleA, double sidetriangleB, double sidetriangleC) { //overloading function for finding the area of triangle - double area3,S; - S = (sidetriangleA + sidetriangleB + sidetriangleC) / 2; - area3 = sqrt(S * (S - sidetriangleA) * (S - sidetriangleB) * (S - sidetriangleC)); - cout << "The area of triangle: " << area3 << endl; - cout << endl; +double area(double sidetriangleA, double sidetriangleB, double sidetriangleC) +{ // overloading function for finding the area of triangle + double area3, S; + S = (sidetriangleA + sidetriangleB + sidetriangleC) / 2; + area3 = sqrt(S * (S - sidetriangleA) * (S - sidetriangleB) * (S - sidetriangleC)); + cout << "The area of triangle: " << area3 << endl; + cout << endl; return area3; } @@ -92,24 +104,27 @@ float area(float sidesquare) ////overloading function for finding the area of sq } //////Overloading functions for finding CIRCUMFERENCE/////// -double circumference(double radius) { +double circumference(double radius) +{ double circumference1; double input_radius; - circumference1 = 2*3.141592653589793238463 * radius; + circumference1 = 2 * 3.141592653589793238463 * radius; cout << "The circumference of Circle: " << circumference1 << endl; cout << endl; return circumference1; } -double circumference(double sideA, double sideB) { +double circumference(double sideA, double sideB) +{ double circumference2; - circumference2 = 2*(sideA + sideB); + circumference2 = 2 * (sideA + sideB); cout << "The circumference of Rectangle: " << circumference2 << endl; cout << endl; return circumference2; } -double circumference(double sidetriangleA, double sidetriangleB, double sidetriangleC) { +double circumference(double sidetriangleA, double sidetriangleB, double sidetriangleC) +{ double circumference3; circumference3 = sidetriangleA + sidetriangleB + sidetriangleC; cout << "The circumference of triangle: " << circumference3 << endl; @@ -120,14 +135,15 @@ double circumference(double sidetriangleA, double sidetriangleB, double sidetria float circumference(float sidesquare) { float circumference4; - circumference4 = 4*sidesquare; + circumference4 = 4 * sidesquare; cout << "The circumference of square: " << circumference4 << endl; cout << endl; return circumference4; } -//Overloading function for inputing 3 in the main menu -int findlargest(int n1, int n2, int n3) { +// Overloading function for inputing 3 in the main menu +int findlargest(int n1, int n2, int n3) +{ if (n1 >= n2 && n1 >= n3) { @@ -137,14 +153,16 @@ int findlargest(int n1, int n2, int n3) { { cout << "Largest number: " << n2 << endl; } - if (n3 >= n1 && n3 >= n2) { + if (n3 >= n1 && n3 >= n2) + { cout << "Largest number: " << n3 << endl; } return n1, n2, n3; } -double findlargest(double n1, double n2, double n3) { +double findlargest(double n1, double n2, double n3) +{ if (n1 >= n2 && n1 >= n3) { @@ -154,15 +172,16 @@ double findlargest(double n1, double n2, double n3) { { cout << "Largest number: " << n2 << endl; } - if (n3 >= n1 && n3 >= n2) { + if (n3 >= n1 && n3 >= n2) + { cout << "Largest number: " << n3 << endl; } - else if(n1==n2==n3) + else if (n1 == n2 == n3) cout << "Largest number : " << n3 << endl; return n1, n2, n3; } -//overloading function with templates +// overloading function with templates template T Large(T n1, T n2, T n3) { @@ -174,263 +193,289 @@ T Large(T n1, T n2, T n3) { cout << "Largest number: " << n2 << endl; } - if (n3 >= n1 && n3 >= n2) { + if (n3 >= n1 && n3 >= n2) + { cout << "Largest number: " << n3 << endl; } else if (n1 == n2 == n3) cout << "Largest number : " << n3 << endl; - + return n1, n2, n3; } /////////////////////////////////////***STARTING POINT***//////////////////////////////////////////////////// -int main() { +int main() +{ system("color 3E"); - int numberforoperation=0; + int numberforoperation = 0; double radius1; double sideA, sideB; double sidetriangleA, sidetriangleB, sidetriangleC; float sidesquare; - double n1, n2, n3; - - for (int l = 0;l < 120;l++) { + double n1, n2, n3; + + for (int l = 0; l < 120; l++) + { + cout << "="; + } + cout << endl; + cout << "\t\t\t\t\tHello! Welcome to the main menu.\n"; + cout << "\t\t WARNING!!! Enter only numbers!!! And the 'y/n' when you will be asked!\n"; + for (int l = 0; l < 120; l++) + { cout << "="; } - cout << endl; - cout << "\t\t\t\t\tHello! Welcome to the main menu.\n"; - cout << "\t\t WARNING!!! Enter only numbers!!! And the 'y/n' when you will be asked!\n"; - for (int l = 0;l < 120;l++) { - cout << "="; - } - cout << endl; - cout << "\t[1] Area of Geometrical Figures.\n"; - cout << "\t[2] Circumference of geometrical figures.\n"; - cout << "\t[3] Find the largest number.\n"; - cout << "\t[4] finding the largest number with function template.\n"; - cout << "\t[5] EXIT\n"; - cout << endl; - b: - cout << " Please enter the number of operation you would like to execute: "; - cin >> numberforoperation; - if (numberforoperation > 0 && numberforoperation < 6) { - system("cls"); - switch (numberforoperation) - { - case 1://first11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 - first(); - int firstfirst; - f: - cout << " Choose one figure: "; - cin >> firstfirst; - if (firstfirst > 0 && firstfirst < 6) { - system("cls"); //ends the main menu - switch (firstfirst)//firstfirst - { - system("cls"); //ends the main menu - case 1: - cout << "\t\t\t\t***CIRCLE***\n"; - a: - cout << "Enter the radius of the circle: "; - cin >> radius1; - if (radius1 > 0) { - area(radius1); - first(); - goto f; - } - else goto a; - break; + cout << endl; + cout << "\t[1] Area of Geometrical Figures.\n"; + cout << "\t[2] Circumference of geometrical figures.\n"; + cout << "\t[3] Find the largest number.\n"; + cout << "\t[4] finding the largest number with function template.\n"; + cout << "\t[5] EXIT\n"; + cout << endl; +b: + cout << " Please enter the number of operation you would like to execute: "; + cin >> numberforoperation; + if (numberforoperation > 0 && numberforoperation < 6) + { + system("cls"); + switch (numberforoperation) + { + case 1: // first11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 + first(); + int firstfirst; + f: + cout << " Choose one figure: "; + cin >> firstfirst; + if (firstfirst > 0 && firstfirst < 6) + { + system("cls"); // ends the main menu + switch (firstfirst) // firstfirst + { + system("cls"); // ends the main menu + case 1: + cout << "\t\t\t\t***CIRCLE***\n"; + a: + cout << "Enter the radius of the circle: "; + cin >> radius1; + if (radius1 > 0) + { + area(radius1); + first(); + goto f; + } + else + goto a; + break; + + case 2: + cout << "\t\t\t\t***RECTANGLE***\n"; + c: + cout << "Enter the height of rectangle: "; + cin >> sideA; + cout << "Enter the width of the rectangle: "; + cin >> sideB; + cout << endl; + if (sideA > 0 && sideB > 0) + { + area(sideA, sideB); + + first(); + goto f; + } + else + goto c; + break; + case 3: + cout << "\t\t\t\t***TRIANGLE***" << endl; + d: + cout << "Enter the first side of the triangle: "; + cin >> sidetriangleA; + cout << "Enter the second side of the triangle: "; + cin >> sidetriangleB; + cout << "Enter the third side of the triangle: "; + cin >> sidetriangleC; + cout << endl; + if (sidetriangleA > 0 && sidetriangleB > 0 && sidetriangleC > 0 && sidetriangleC < sidetriangleA + sidetriangleB && sidetriangleA < sidetriangleB + sidetriangleC && sidetriangleB < sidetriangleC + sidetriangleA) + { + area(sidetriangleA, sidetriangleB, sidetriangleC); + + first(); + goto f; + } + else + goto d; + break; + case 4: + cout << "\t\t\t\t***Square***" << endl; + e: + cout << "Enter the side of square: "; + cin >> sidesquare; + if (sidesquare > 0) + { + area(sidesquare); + + first(); + goto f; + } + else + goto e; + break; + case 5: + { + main(); + break; + } + default: + break; + } + break; + } + else + goto f; + break; - case 2: - cout << "\t\t\t\t***RECTANGLE***\n"; - c: - cout << "Enter the height of rectangle: "; - cin >> sideA; - cout << "Enter the width of the rectangle: "; - cin >> sideB; - cout << endl; - if (sideA > 0 && sideB > 0) { - area(sideA, sideB); - - first(); - goto f; - } - else goto c; - break; - case 3: - cout << "\t\t\t\t***TRIANGLE***" << endl; - d: - cout << "Enter the first side of the triangle: "; - cin >> sidetriangleA; - cout << "Enter the second side of the triangle: "; - cin >> sidetriangleB; - cout << "Enter the third side of the triangle: "; - cin >> sidetriangleC; - cout << endl; - if (sidetriangleA > 0 && sidetriangleB > 0 && sidetriangleC > 0 && sidetriangleC < sidetriangleA + sidetriangleB && sidetriangleA < sidetriangleB + sidetriangleC && sidetriangleB < sidetriangleC + sidetriangleA) - { - area(sidetriangleA, sidetriangleB, sidetriangleC); - - first(); - goto f; - } - else - goto d; - break; - case 4: - cout << "\t\t\t\t***Square***" << endl; - e: - cout << "Enter the side of square: "; - cin >> sidesquare; - if (sidesquare > 0) { - area(sidesquare); - - first(); - goto f; - } - else goto e; - break; - case 5: { - main(); - break; - } - default: - break; - } - break; - } - else goto f; - break; - - case 2://second2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 - second(); - int secondsecond; - g: - cout << " Choose one figure: "; - cin >> secondsecond; - if (secondsecond > 0 && secondsecond < 6) { - system("cls"); //ends the main menu - switch (secondsecond)//firstfirst - { - system("cls"); //ends the main menu - case 1: - cout << "\t\t\t\t***CIRCLE***\n"; - h: - cout << "Enter the radius of the circle: "; - cin >> radius1; - if (radius1 > 0) { - circumference(radius1); - second(); - goto g; - } - else goto h; - break; + case 2: // second2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 + second(); + int secondsecond; + g: + cout << " Choose one figure: "; + cin >> secondsecond; + if (secondsecond > 0 && secondsecond < 6) + { + system("cls"); // ends the main menu + switch (secondsecond) // firstfirst + { + system("cls"); // ends the main menu + case 1: + cout << "\t\t\t\t***CIRCLE***\n"; + h: + cout << "Enter the radius of the circle: "; + cin >> radius1; + if (radius1 > 0) + { + circumference(radius1); + second(); + goto g; + } + else + goto h; + break; - case 2: - cout << "\t\t\t\t***RECTANGLE***\n"; - j: - cout << "Enter the height of rectangle: "; - cin >> sideA; - cout << "Enter the width of the rectangle: "; - cin >> sideB; - cout << endl; - if (sideA > 0 && sideB > 0) { + case 2: + cout << "\t\t\t\t***RECTANGLE***\n"; + j: + cout << "Enter the height of rectangle: "; + cin >> sideA; + cout << "Enter the width of the rectangle: "; + cin >> sideB; + cout << endl; + if (sideA > 0 && sideB > 0) + { circumference(sideA, sideB); second(); goto g; - } - else goto j; - break; - case 3: - cout << "\t\t\t\t***TRIANGLE***" << endl; - d1: - cout << "Enter the first side of the triangle: "; - cin >> sidetriangleA; - cout << "Enter the second side of the triangle: "; - cin >> sidetriangleB; - cout << "Enter the third side of the triangle: "; - cin >> sidetriangleC; - cout << endl; - if (sidetriangleA > 0 && sidetriangleB > 0 && sidetriangleC > 0 && sidetriangleC < sidetriangleA + sidetriangleB && sidetriangleA < sidetriangleB + sidetriangleC && sidetriangleB < sidetriangleC + sidetriangleA) - { + } + else + goto j; + break; + case 3: + cout << "\t\t\t\t***TRIANGLE***" << endl; + d1: + cout << "Enter the first side of the triangle: "; + cin >> sidetriangleA; + cout << "Enter the second side of the triangle: "; + cin >> sidetriangleB; + cout << "Enter the third side of the triangle: "; + cin >> sidetriangleC; + cout << endl; + if (sidetriangleA > 0 && sidetriangleB > 0 && sidetriangleC > 0 && sidetriangleC < sidetriangleA + sidetriangleB && sidetriangleA < sidetriangleB + sidetriangleC && sidetriangleB < sidetriangleC + sidetriangleA) + { circumference(sidetriangleA, sidetriangleB, sidetriangleC); second(); goto g; - } - else - goto d1; - break; + } + else + goto d1; + break; - case 4: - cout << "\t\t\t\t***Square***" << endl; - e1: - cout << "Enter the side of square: "; - cin >> sidesquare; - if (sidesquare > 0) { - circumference(sidesquare); - second(); - goto g; - } - else goto e1; - break; - case 5: main(); - break; - default: - break; - } - break; - } - else goto g; - break; - /////////////////////////////////////////////////////////////////////////////////////////////////////////// - case 3://third333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333 - third(); - cout << "\t\t\tPlease enter 3 numbers to compare.\n\t\t\tYou can write even an integer or decimal number. For example: 123, 12.123, 0,123 \n"; - x: - cout << endl; - cout << "Enter the first number: "; - cin >> n1; - cout << "Enter the second number: "; - cin >> n2; - cout << "Enter the third number: "; - cin >> n3; - findlargest(n1, n2, n3); - char quit; - cout << "Do you want to try again(y/n)? "; - if (cin >> quit && quit == 'y') //when user will input 'y' the code will again ask you to input a 3 numbers - goto x; //when it will be 'n' the code will go to the main menu - else { - system("cls"); - main(); - } - break; + case 4: + cout << "\t\t\t\t***Square***" << endl; + e1: + cout << "Enter the side of square: "; + cin >> sidesquare; + if (sidesquare > 0) + { + circumference(sidesquare); + second(); + goto g; + } + else + goto e1; + break; + case 5: + main(); + break; + default: + break; + } + break; + } + else + goto g; + break; + /////////////////////////////////////////////////////////////////////////////////////////////////////////// + case 3: // third333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333 + third(); + cout << "\t\t\tPlease enter 3 numbers to compare.\n\t\t\tYou can write even an integer or decimal number. For example: 123, 12.123, 0,123 \n"; + x: + cout << endl; + cout << "Enter the first number: "; + cin >> n1; + cout << "Enter the second number: "; + cin >> n2; + cout << "Enter the third number: "; + cin >> n3; + findlargest(n1, n2, n3); + char quit; + cout << "Do you want to try again(y/n)? "; + if (cin >> quit && quit == 'y') // when user will input 'y' the code will again ask you to input a 3 numbers + goto x; // when it will be 'n' the code will go to the main menu + else + { + system("cls"); + main(); + } + break; - ///////////////////////////////////////////////////////////////////////////////////////////////////////////// - case 4://four4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444 - third(); - cout << "\t\t\tPlease enter 3 numbers to compare.\n\t\t\tYou can write even an integer or decimal number. For example: 123, 12.123, 0,123 \n"; - qw: - cout << endl; - cout << "Enter the first number: "; - cin >> n1; - cout << "Enter the second number: "; - cin >> n2; - cout << "Enter the third number: "; - cin >> n3; - findlargest(n1, n2, n3); - char quit2; - cout << "Do you want to try again(y/n)? ";//when user will input 'y' the code will again ask you to input a 3 numbers - if (cin >> quit2 && quit2 == 'y') //when it will be 'n' the code will go to the main menu - goto qw; - else { - system("cls"); - main(); - } - break; //breaking the case 4 of the main menu - default: - break;//breaking the default - } - } - else goto b; + ///////////////////////////////////////////////////////////////////////////////////////////////////////////// + case 4: // four4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444 + third(); + cout << "\t\t\tPlease enter 3 numbers to compare.\n\t\t\tYou can write even an integer or decimal number. For example: 123, 12.123, 0,123 \n"; + qw: + cout << endl; + cout << "Enter the first number: "; + cin >> n1; + cout << "Enter the second number: "; + cin >> n2; + cout << "Enter the third number: "; + cin >> n3; + findlargest(n1, n2, n3); + char quit2; + cout << "Do you want to try again(y/n)? "; // when user will input 'y' the code will again ask you to input a 3 numbers + if (cin >> quit2 && quit2 == 'y') // when it will be 'n' the code will go to the main menu + goto qw; + else + { + system("cls"); + main(); + } + break; // breaking the case 4 of the main menu + default: + break; // breaking the default + } + } + else + goto b; system("pause"); return 0; } diff --git a/OOP1-Lab7/Lab_Assignment_Week-11.docx b/OOP1-Lab7/Lab_Assignment_Week-11.docx deleted file mode 100644 index d2f4ae04b1d6ca437aa0d4cb99049c206dee72b3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13321 zcmeHugF%m|BL@MA34jK`0ssIq0DGLBh8Y+DkOu_-U;tpjb;Rv#oq@K_ z25KJmKqozBcN=TcY)Ek0&j4^x|NmY8hkt?E#9^y$R@B#bLC*n`Ul(MXX!Cjovtxh+ z77t+IoQe`RVmU3(ZQHzTd6aCNgMFmqD_-NUYyp!?sn&34b#7EgID*L^67(&37#8Pu znEXufs5cW?*F*=o-&=FGwBpHggRxT7b;pmY!Yifcqz7PWeg{O;C&j#_eAS1CBIX-` zcmAk<_Cf9py&Dvbz*gB#C?>LqCLT6G~HRA(p8L+H`Z}Os|FzeR+$nrV4g}4YK`1@f5nY&k1(+ z$M@21whEJPODAl{{Sv#GjxovUSWu?4-NX!+a65)EINMe)V$tEs!780jB{Vy)udFcJ zNBBkQhcZHoJ`9`G&Sjv6%>g*qpBD*r(p2MS_@aeK%aXpwRNZ;yyxrrpf1h%FpfOJ! zf3tWc+8U2p2(jqhY#JgAlB|~(2*8`asV8w9e*GD!MG>TZ2q5(|a0FUAu`vI9{!cCc z59{JzzIthVCr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~Vw&WMrt)H%)-xWjPL5gV=O(dqTP>&#TXSNy$hu z^Fj%j?NU5AcJ4PQemCz?Ib$G1ZgoEHe)i5SL1VivWY3iCMk?c02ZbJG@2bG@`L(2V zSZ^@&t1(l`9;Q~(lu{-06XZ12(e|(wWt46|dh?G7bUsh;8NAwo7clYd|6PcHfir>P z6aW67hd<{2kMdvs0r5ue?*#symHh|sXPE_3u)pMJ{|fwjy6Rtn?Vxm<-_G6tKgp}V zQu;Mx@lRUNaQ~9O_$&O^44*&YSjfM_f6e##mBg>{-akpmf7f*U-_Q za3S2^;lBiuex>kh*y2wLkobQv@ZTWDui(G$i2j5E0J~HGz(4j!zrufA&HhQilJ@tp z|F*XM75}R{{u95?@H_r*&iPmT-wpboXb}5Me_{W3^ZrH-3M5_t03zrE29nTA)}L?x E4@}*SoB#j- diff --git a/OOP1-Lab7/README.md b/OOP1-Lab7/README.md new file mode 100644 index 0000000..43f5d15 --- /dev/null +++ b/OOP1-Lab7/README.md @@ -0,0 +1,6 @@ +# Practical Lab Assignment + +1. Calculate the x^y (power) using recursion. +2. Find sum of natural numbers using recursion. +3. Display Fibonacci Series Using Recursion. +4. Find G.C.D for two integers using recursion. \ No newline at end of file diff --git a/OOP1-Lab7/fibonacci.cpp b/OOP1-Lab7/fibonacci.cpp index ea802f0..78ebca3 100644 --- a/OOP1-Lab7/fibonacci.cpp +++ b/OOP1-Lab7/fibonacci.cpp @@ -1,21 +1,27 @@ #include + using namespace std; -int fibonacci(int num) {//new function 'fibonacci' for calculating fibonacci series - if (num <= 1) { + +int fibonacci(int num) +{ // new function 'fibonacci' for calculating fibonacci series + if (num <= 1) + { return num; } - else { - return(fibonacci(num - 1) + fibonacci(num - 2)); + else + { + return (fibonacci(num - 1) + fibonacci(num - 2)); } } -int main() { +int main() +{ cout << "\t\t\t***Program to calculate the sum of natural numbers using recursion***" << endl; cout << "Enter how many numbers would you like to output : "; int num; cin >> num; - cout << "Fibonnaci Series : ";//inputing the quantity of numbers - for(int i=0; i + using namespace std; -int gcd(int x, int y) { - if (x == 0 || y==0) - return y,x;//will input non-zero number when even one number inputed in zero + +int gcd(int x, int y) +{ + if (x == 0 || y == 0) + return y, x; // will input non-zero number when even one number input in zero if (x == y) - return x;//will return first number when both of the numbers are equal - if (x > y) - return gcd(x - y, y);//when first number is greater than second - if( y > x ) - return gcd(x, y - x);//when second number is greater than first + return x; // will return first number when both of the numbers are equal + if (x > y) + return gcd(x - y, y); // when first number is greater than second + if (y > x) + return gcd(x, y - x); // when second number is greater than first } -int main4() { - cout << "\t\t\t***Program to calculate the G.C.D for two integers usin recurion.***" << endl; + +int main4() +{ + cout << "\t\t\t***Program to calculate the G.C.D for two integers using recursion.***" << endl; cout << "Please enter two integers: " << endl; - int x,y; + int x, y; cin >> x >> y; - cout << "The G.C.D of " << x << "and " << y << " is " << gcd(x, y);//calling function in the main function + cout << "The G.C.D of " << x << "and " << y << " is " << gcd(x, y); // calling function in the main function return 0; } \ No newline at end of file diff --git a/OOP1-Lab7/power.cpp b/OOP1-Lab7/power.cpp index 1c03dfb..d3a9bf1 100644 --- a/OOP1-Lab7/power.cpp +++ b/OOP1-Lab7/power.cpp @@ -1,18 +1,23 @@ -#include -#include +#include +#include + using namespace std; - long long int power(long long int x, long long int y) { + +long long int power(long long int x, long long int y) +{ if (y == 0) return 1; else - return x*power(x, y - 1); + return x * power(x, y - 1); } -int main1() { + +int main1() +{ cout << "\t\t\t***Program to calculate the x^y using recursion***" << endl; - int x,y; + int x, y; cout << "Please enter the numbers x^y: "; - cin >>x>>y;//inpuing the interval of the numbers - cout << "Result: " << power(x,y);//calling function 'power' + cin >> x >> y; // inpuing the interval of the numbers + cout << "Result: " << power(x, y); // calling function 'power' cout << endl; system("pause"); return 0; diff --git a/OOP1-Lab7/sum.cpp b/OOP1-Lab7/sum.cpp index 1f384c4..619dd91 100644 --- a/OOP1-Lab7/sum.cpp +++ b/OOP1-Lab7/sum.cpp @@ -1,17 +1,21 @@ -#include +#include + using namespace std; -long long int sum(long long int n) {//fuction called 'sum' foe calculating the sum of the natural numbers + +long long int sum(long long int n) +{ // fuction called 'sum' foe calculating the sum of the natural numbers if (n == 0) - return 0;//will return '0' when number will come to 0 + return 0; // will return '0' when number will come to 0 else - return n + sum(n - 1);//using recursion + return n + sum(n - 1); // using recursion } -int main2() { +int main2() +{ cout << "\t\t\t***Program to calculate the sum of natural numbers using recursion***" << endl; int num; cout << "Please enter the interval: "; - cin >> num;//inpuing the interval of the numbers - cout<<"The sum is : "<> num; // inpuing the interval of the numbers + cout << "The sum is : " << sum(num); // calling function 'sum' return 0; } \ No newline at end of file diff --git a/OOP1-Lab8/Lab_Assignment-_week-12.docx b/OOP1-Lab8/Lab_Assignment-_week-12.docx deleted file mode 100644 index 83e66af3d6e9c1439e26a7712b4061b1601cb720..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13063 zcmeHN1zTN7(!RL6ySuwXaCdjt;O-FIoj{NfT$AAL4#C|$xJz*OZf0k8X0r4Bg57hU zKK-2Teybb0tEx+sWWm7E0gwP_002M&U`=$;v;YAB3LyXhGypWHuBd~(tGT_ap_-SY zxr;udr=2Zv9yloVCjcmL{QsW+;{QNx$~T)HW@Pc((3jxJ`URP0>cZZkym)gws|S!M zb_KB;k^I(|_HAyKLUI=Np?>1=6`yfvmf*>y3|knKIuD8?EP?m$k`1i6=oaU97y`_2 zC^u7>*Mx^S18vz`+i>JKL72(vdXh#}VHLCTvw|_S?f`MLsqq@*y!|*xBL2}h=Z^+w z?_|$V8&isxf)SvYlp;f=7mqUhxyVuAtB;$kD{5pYMVNJ>#N66l4;5wFWvQi_PP&>9 zJtYxhh~!G>2Eg2#k(x6~Fw9I*rduj!`ZNV;zqIOUsbCh{Av!*kO`+=eonYpr1xk6? z%TH=lOxTYHr1UTxqm$AwAx-Ich!`zlcYZ@-Z(qGgK!y1NQt5Ikrqy+QWrN-^!Y52S zoE=g6?we`tTsCs#9DsfOWf5ODQ#EmhCr*&~bLw4u)vZsy#v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*PNSQN&Fgf{gXs5+8^Hizl3Feh5s7L`4e7&^*j8R zz|OA}ehn!6Nx=%|j|KcYyzndd@3zXHPyj%N0s#0A%jH-2ueZ!U35-+yKKI}5oWJ6K z)yIG0ztjGX|C@IH75{gM{wEp$*rxx>@_(1_O0p2Z;{^b~1AidE6MD|{^XvZrZ5|jo diff --git a/OOP1-Lab8/README.md b/OOP1-Lab8/README.md new file mode 100644 index 0000000..e4eb6fa --- /dev/null +++ b/OOP1-Lab8/README.md @@ -0,0 +1,12 @@ +# Practical Lab Assignment - Arrays + +1. Write a program to display an array. +2. Write a program to find average of array elements. +3. Write a program to merge to sorted arrays. + ``` + a1[10] = [25, 27, 32, 98] + a2[10] = [12, 23, 28, 51, 72, 85, 97] + then a3[20] should be equal to = [12, 23, 25, 27, 28, 32, 51, 72, 85, 97, 98] + ``` +4. Write a program to insert an element to an array. +5. Write a program to delete an element from an array. \ No newline at end of file diff --git a/OOP1-Lab8/Sort.cpp b/OOP1-Lab8/Sort.cpp index 54f1f58..7d7d2f7 100644 --- a/OOP1-Lab8/Sort.cpp +++ b/OOP1-Lab8/Sort.cpp @@ -1,11 +1,12 @@ #include using namespace std; -//function for merging two arrays into third array +// function for merging two arrays into third array + void merging(int arr1[], int arr2[], int arr3[]) { - int i=0, j=0, k=0; - for (i = 0;i < 5 && j < 5;) - {//compearing first array elements with second + int i = 0, j = 0, k = 0; + for (i = 0; i < 5 && j < 5;) + { // comparing first array elements with second if (arr1[i] < arr2[j]) { arr3[k] = arr1[i]; @@ -20,37 +21,38 @@ void merging(int arr1[], int arr2[], int arr3[]) } } while (i < 5) - {//compearing for other elements of first and third arrays + { // comparing for other elements of first and third arrays arr3[k] = arr1[i]; k++; i++; } while (j < 5) - {//compearing for other elements of second and third arrays + { // comparing for other elements of second and third arrays arr3[k] = arr2[j]; k++; j++; } } + int main() { - + int arr1[5], arr2[5]; int arr3[10]; int i; cout << "Input the elements for the first Array: "; - for (i = 0; i < 5;i++) + for (i = 0; i < 5; i++) { cin >> arr1[i]; } cout << "Input the elements for the second Array: "; - for (i = 0;i < 5;i++) + for (i = 0; i < 5; i++) { cin >> arr2[i]; } - merging(arr1, arr2, arr3);//calling function merging + merging(arr1, arr2, arr3); // calling function merging cout << "Sorted Elements: "; - for (i = 0;i < 10;i++) + for (i = 0; i < 10; i++) { cout << arr3[i] << " "; } diff --git a/OOP1-Lab8/average.cpp b/OOP1-Lab8/average.cpp index 78c850d..baf4f37 100644 --- a/OOP1-Lab8/average.cpp +++ b/OOP1-Lab8/average.cpp @@ -1,21 +1,25 @@ #include using namespace std; -int main2() { + +int main() +{ int a[10]; - //inputing the arrays + // input the arrays cout << "Input an Array Elements. " << endl; - for (int i = 0; i < 10; i++) { + for (int i = 0; i < 10; i++) + { cout << "array element [ " << i << " ] "; cin >> a[i]; - } + } cout << endl; - double sum=0; - //sum the elements of the array - for (int i=0;i<10;i++) { + double sum = 0; + // sum the elements of the array + for (int i = 0; i < 10; i++) + { sum += a[i]; } double average; - //finding the elements of the array + // finding the elements of the array average = sum / 10; cout << "Average of array elements: " << average << endl; system("pause"); diff --git a/OOP1-Lab8/deleting.cpp b/OOP1-Lab8/deleting.cpp index ac4a4af..89ad759 100644 --- a/OOP1-Lab8/deleting.cpp +++ b/OOP1-Lab8/deleting.cpp @@ -1,30 +1,34 @@ #include using namespace std; -int main3() { + +int main() +{ int a[10]; int n = 10; cout << "Input numbers for into arrays." << endl; - for (int i = 0; i < n;i++) + for (int i = 0; i < n; i++) { - cout << "a[" << i << "] = "; //inputing array + cout << "a[" << i << "] = "; // input array cin >> a[i]; } int value; int position; cout << "Enter value which you want to delete: "; cin >> value; - for (int i = 0;i < n;i++) { //finding the position + for (int i = 0; i < n; i++) + { // finding the position if (value == a[i]) position = i; } - for (int i = position;i < n;i++){ //incrementing the array elements into 1 + for (int i = position; i < n; i++) + { // incrementing the array elements into 1 a[i] = a[i + 1]; - - } - n = n - 1; - for(int i=0; i> a[i]; } cout << endl; - //outputing arrays + // output tje arrays cout << "Displaying arrays: " << endl; - for (int i = 0; i < 5;i++) { + for (int i = 0; i < 5; i++) + { cout << "a[ " << i << " ] = " << a[i] << endl; } diff --git a/OOP1-Lab8/inserting.cpp b/OOP1-Lab8/inserting.cpp index 99b6a45..8f87695 100644 --- a/OOP1-Lab8/inserting.cpp +++ b/OOP1-Lab8/inserting.cpp @@ -1,27 +1,28 @@ -#include +#include using namespace std; -int main8() + +int main() { int a[15], value, i, pos; int size = 10; cout << "Enter array elements: "; - for (i = 0; i < 10; i++)//inputing the array elements + for (i = 0; i < 10; i++) // input the array elements { cout << "a[ " << i << " ] = "; cin >> a[i]; } - //code for asking the value and the position to be inserted + // code for asking the value and the position to be inserted cout << "Enter element to be insert : "; cin >> value; cout << "At which position: "; cin >> pos; - //changing the place of arrays + // changing the place of arrays for (i = 10; i > pos; i--) { a[i] = a[i - 1]; } a[pos] = value; - //outputing correct araays order + // outputing correct araays order for (i = 0; i < size + 1; i++) { cout << a[i] << " "; diff --git a/OOP1-Lab9/Lab_Assignment_week-13.docx b/OOP1-Lab9/Lab_Assignment_week-13.docx deleted file mode 100644 index fbc3563d8914c5638eb5f1ca146ca1492c7f69a4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13293 zcmeHOgL`Gkwm-3rj%^zqb?lCf?$|auNym25v2EMz*tTtUI(TR1-gz_Acivy{?mpky z`>Va`x2pE8g{oR>%S(fSqXQrT&;S5{7{C%^qh<^O0OUge0B8VcP%U8_Yeyq%$4|;` zwnh#*46as|L^w9Czlwjr3a?|`U)E@znGzn3vWbX&Ck%YX$urGh= zUVN3lKy8XIT=qkNVw4XFkX$-R@!}*yfv-7jHY=-@q7Y)z3>9(ea6Fci>X4?AXg=$1 zMsyWN2q%;&q8$WtZb52EDZ(%`K$&T+n(bHPr>SVuR#(IGFI0J8e7NORWvG01xS^{xrloA?TtBl=O~XL z&2V~f@z)W9y7_eEka+;x#_JNER;p6WEO#V7QF+2+RP}>LuId4stxwYJk=g=9?A_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-4Zpe*HG|T-~1_+Um{0!M;RqP2Y&&PR64vFQk$QfM&w-?`;y;C zPoyIO^rw~+>);3WyTo;7o}n>k0{7D7^wp&wk>1Lj6<5>Ko-6|L~QAy!780{5|vf58!XtOrVne zB@g>o;NMeH{|f8`rn~&U)&74ZsQ$|7*Q~@pc|pSbLyqFF@Lw}*{)D?B{u};lzRj;J zevP;O$)W-ni}_dB;4g8QU*W&TZvKR4WBnWcOC;x44!=e!{^W3n{YMA>H*WDO`0q=n zKcN6XHaP(B9}B5p;lIv!|71W-_3yU-Hvjz<|Eo*>6aSs|-}t{d=wI=FH|l?)0e}Je czjXiKCSG0|0w`Vp06g#q0+i5srr%2c19M}qegFUf diff --git a/OOP1-Lab9/Pascal.cpp b/OOP1-Lab9/Pascal.cpp index 04e231f..d39f45f 100644 --- a/OOP1-Lab9/Pascal.cpp +++ b/OOP1-Lab9/Pascal.cpp @@ -1,25 +1,23 @@ #include using namespace std; + int main() { cout << "\t\t\tPalcal's Triangle\n"; int a[7][7] = {}; - int row=0, col=0; - for(int row=0; row<7;row++) + int row = 0, col = 0; + for (int row = 0; row < 7; row++) { for (int col = 0; col < row; col++) { a[0][0] = 1; a[row + 1][1] = 1; - - - cout << a[row][col]; - + + cout << a[row][col]; } cout << endl; } - system("pause"); return 0; } \ No newline at end of file diff --git a/OOP1-Lab9/Pascal2.cpp b/OOP1-Lab9/Pascal2.cpp new file mode 100644 index 0000000..5c792e3 --- /dev/null +++ b/OOP1-Lab9/Pascal2.cpp @@ -0,0 +1,31 @@ +#include +using namespace std; +int main1() +{ + cout << "\t\t\tPascal's triangle\n"; + int row = 0, col = 0; + int a[7][7] = {}; + a[0][0] = 1; // giving the value for the array with address a[0][0] + for (row = 0; row < 7; row++) // rows + { + for (col = 0; col <= row; col++) // columns + { + // code for the borders of the triangle + // giving to then the value 1 + if (col == 0 || row == col) + { + a[row][col] = 1; + cout << " " << a[row][col]; + } + // code for the finding the values for the inside numbers of the triangle + else + { + a[row][col] = a[row - 1][col - 1] + a[row - 1][col]; + cout << " " << a[row][col]; + } + } + cout << endl; + } + system("pause"); + return 0; +} \ No newline at end of file diff --git a/OOP1-Lab9/README.md b/OOP1-Lab9/README.md new file mode 100644 index 0000000..7d6276f --- /dev/null +++ b/OOP1-Lab9/README.md @@ -0,0 +1,14 @@ +# Practical Lab Assignment - Arrays + +1. Write a program to generate Pascal’s triangle. + ``` + 1 + 1 1 + 1 2 1 + 1 3 3 1 + 1 4 6 4 1 + 1 5 10 10 5 1 + 1 6 15 20 15 6 1 + ``` +2. Write a menu driven program to read and display an m × n matrix. Also find the sum, transpose and product of two m × n matrices. +3. In a small company there are five salesman. Each salesman is supposed to sell three products. Write a program using 2D array to print the total sales by each salesman and total sales of each item. \ No newline at end of file diff --git a/OOP1-Lab9/Source.cpp b/OOP1-Lab9/Source.cpp deleted file mode 100644 index 979ba36..0000000 --- a/OOP1-Lab9/Source.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include -using namespace std; -int main1() -{ - cout << "\t\t\tPascal's triangl\n"; - int row = 0, col = 0; - int a[7][7] = { }; - a[0][0] = 1;//ginving the value for the array with addres a[0][0] - for (row = 0; row < 7; row++)//rows - { - for (col = 0; col <= row; col++)//columns - { - //code for the borders of the triangle - //giving to then the value 1 - if (col == 0 || row == col) - { - a[row][col] = 1; - cout << " " << a[row][col]; - } - //code for the finding the values for the inside numbers of the triangle - else - { - a[row][col] = a[row - 1][col - 1] + a[row - 1][col]; - cout << " " << a[row][col]; - } - } - cout << endl; - } - system("pause"); - return 0; -} \ No newline at end of file diff --git a/OOP1-Lab9/Source1.cpp b/OOP1-Lab9/Source1.cpp index 85e949d..138525a 100644 --- a/OOP1-Lab9/Source1.cpp +++ b/OOP1-Lab9/Source1.cpp @@ -1,7 +1,9 @@ #include #include using namespace std; + int main(); + void read_display() { system("cls"); @@ -18,31 +20,33 @@ void read_display() { for (int row = 0; row < row_input; row++) { - for (int col = 0;col < col_input;col++) + for (int col = 0; col < col_input; col++) { cin >> a[row][col]; } } cout << "Result: \n"; - for (int row = 0;row < row_input;row++) + for (int row = 0; row < row_input; row++) { - for (int col = 0; col < col_input;col++) + for (int col = 0; col < col_input; col++) { - + cout << a[row][col] << " "; } cout << endl; } cout << endl; - cout<<"Do you want to try again? (Yes = 1, No = Any Key)\n"; + cout << "Do you want to try again? (Yes = 1, No = Any Key)\n"; string respond; cout << "Your choice: "; cin >> respond; - if (respond == "1") { + if (respond == "1") + { system("cls"); read_display(); } - else { + else + { system("cls"); main(); } @@ -65,7 +69,7 @@ void transpose() cin >> r; cout << "Columns (max 5): "; cin >> c; - // Storing element of matrix entered by user in array + // Storing element of matrix entered by user in array if (r > 0 && r <= 5 && c > 0 && c <= 5) { cout << "Enter elements of matrix: " << endl; @@ -74,14 +78,15 @@ void transpose() { cin >> a[i][j]; } - // Displaying the matrix + // Displaying the matrix cout << "Entered Matrix: " << endl; for (i = 0; i < r; ++i) for (j = 0; j < c; ++j) { cout << " " << a[i][j]; if (j == c - 1) - cout << endl << endl; + cout << endl + << endl; } // Finding transpose of matrix for (i = 0; i < r; ++i) @@ -96,7 +101,8 @@ void transpose() { cout << " " << trans[i][j]; if (j == r - 1) - cout << endl << endl; + cout << endl + << endl; } cout << endl; cout << "Do you want to try again? (Yes = 1, No = Any Key)\n"; @@ -104,11 +110,13 @@ void transpose() cout << "Your choice: "; cin >> respond; - if (respond == "1") { + if (respond == "1") + { system("cls"); transpose(); } - else { + else + { system("cls"); main(); } @@ -120,6 +128,7 @@ void transpose() transpose(); } } + void sum_matrices() { system("cls"); @@ -137,15 +146,15 @@ void sum_matrices() { for (int row = 0; row < row_input; row++) { - for (int col = 0;col < col_input;col++) + for (int col = 0; col < col_input; col++) { cin >> a[row][col]; } } cout << "First Matrix: \n"; - for (int row = 0;row < row_input;row++) + for (int row = 0; row < row_input; row++) { - for (int col = 0; col < col_input;col++) + for (int col = 0; col < col_input; col++) { cout << a[row][col] << " "; } @@ -158,7 +167,7 @@ void sum_matrices() cout << "Please input valid numbers from 1 to 5 ! " << endl; read_display(); } - //for the second matrix + // for the second matrix cout << endl; cout << "Please input details for the Second Matrix: \n"; int row_input2, col_input2; @@ -172,15 +181,15 @@ void sum_matrices() { for (int row = 0; row < row_input2; row++) { - for (int col = 0;col < col_input2;col++) + for (int col = 0; col < col_input2; col++) { cin >> b[row][col]; } } cout << "Second Matrix: \n"; - for (int row = 0;row < row_input2;row++) + for (int row = 0; row < row_input2; row++) { - for (int col = 0; col < col_input2;col++) + for (int col = 0; col < col_input2; col++) { cout << b[row][col] << " "; @@ -194,9 +203,9 @@ void sum_matrices() cout << "Please input valid numbers from 1 to 5 ! " << endl; read_display(); } - //validation for adding matrices + // validation for adding matrices int sum[5][5]; - if (row_input==row_input2&&col_input==col_input2) + if (row_input == row_input2 && col_input == col_input2) { // Adding Two matrices for (int row = 0; row < row_input; row++) @@ -207,7 +216,8 @@ void sum_matrices() } } // Displaying the resultant sum matrix. - cout << endl << "Sum of two matrix is: " << endl; + cout << endl + << "Sum of two matrix is: " << endl; for (int row = 0; row < row_input; row++) { for (int col = 0; col < col_input; col++) @@ -222,21 +232,24 @@ void sum_matrices() cout << endl; cout << "This Matrices cannot be added."; } - //asking play again + // asking play again cout << endl; cout << "Do you want to try again? (Yes = 1, No = Any Key)\n"; string respond; cout << "Your choice: "; cin >> respond; - if (respond == "1") { + if (respond == "1") + { system("cls"); sum_matrices(); } - else { + else + { system("cls"); main(); } } + void product() { system("cls"); @@ -254,15 +267,15 @@ void product() { for (int row = 0; row < row_input; row++) { - for (int col = 0;col < col_input;col++) + for (int col = 0; col < col_input; col++) { cin >> a[row][col]; } } cout << "First Matrix: \n"; - for (int row = 0;row < row_input;row++) + for (int row = 0; row < row_input; row++) { - for (int col = 0; col < col_input;col++) + for (int col = 0; col < col_input; col++) { cout << a[row][col] << " "; } @@ -275,7 +288,7 @@ void product() cout << "Please input valid numbers from 1 to 5 ! " << endl; read_display(); } - //for the second matrix + // for the second matrix cout << endl; cout << "Please input details for the Second Matrix: \n"; int row_input2, col_input2; @@ -289,15 +302,15 @@ void product() { for (int row = 0; row < row_input2; row++) { - for (int col = 0;col < col_input2;col++) + for (int col = 0; col < col_input2; col++) { cin >> b[row][col]; } } cout << "Second Matrix: \n"; - for (int row = 0;row < row_input2;row++) + for (int row = 0; row < row_input2; row++) { - for (int col = 0; col < col_input2;col++) + for (int col = 0; col < col_input2; col++) { cout << b[row][col] << " "; @@ -311,63 +324,63 @@ void product() cout << "Please input valid numbers from 1 to 5 ! " << endl; read_display(); } - //validation for multiplication matrices + // validation for multiplication matrices int multi[5][5]; - if (row_input == col_input2 ) + if (row_input == col_input2) { - //initializing the matrix of multiplication - for (int row = 0;row < row_input;row++) + // initializing the matrix of multiplication + for (int row = 0; row < row_input; row++) { - for (int col = 0;col < col_input2;col++) + for (int col = 0; col < col_input2; col++) { multi[row][col] = 0; } } - for (int row = 0;row < row_input;row++) + for (int row = 0; row < row_input; row++) { - for (int col = 0;col < col_input2;col++) + for (int col = 0; col < col_input2; col++) { - for (int i = 0;i < col_input;i++) + for (int i = 0; i < col_input; i++) { multi[row][col] += a[row][col] * b[row][col]; } } - } - //displaying multiplication of two matrices + } + // displaying multiplication of two matrices cout << endl; cout << "Result of Multiplication: \n"; - for (int row = 0;row < row_input;row++) + for (int row = 0; row < row_input; row++) { - for (int col = 0;col < col_input2;col++) + for (int col = 0; col < col_input2; col++) { cout << multi[row][col] << " "; } cout << endl; } - - } else { cout << endl; cout << "This Matrices cannot be multiplied."; } - //asking play again + // asking play again cout << endl; cout << "Do you want to try again? (Yes = 1, No = Any Key)\n"; string respond; cout << "Your choice: "; cin >> respond; - if (respond == "1") { + if (respond == "1") + { system("cls"); sum_matrices(); } - else { + else + { system("cls"); main(); } - } + void main_menu_view() { system("color 3F"); @@ -385,20 +398,24 @@ int main22() cout << "\t\t\tYOUR CHOICE: "; string user_choice; cin >> user_choice; - //validating the user input + // validating the user input if (user_choice == "1" || user_choice == "2" || user_choice == "3" || user_choice == "4") { - if (user_choice == "1")read_display(); - else if (user_choice == "2")transpose(); - else if (user_choice == "3")sum_matrices(); - else if (user_choice == "4")product(); + if (user_choice == "1") + read_display(); + else if (user_choice == "2") + transpose(); + else if (user_choice == "3") + sum_matrices(); + else if (user_choice == "4") + product(); } else { - system("cls");//function for the clearing the screen of console - cout << "\t\tYou have inputed wrong number, please try again!\n"; + system("cls"); // function for the clearing the screen of console + cout << "\t\tYou have inputted wrong number, please try again!\n"; main(); } - + return 0; } \ No newline at end of file diff --git a/OOP1-Lab9/Source2.cpp b/OOP1-Lab9/Source2.cpp index ccd0e62..78aaa6a 100644 --- a/OOP1-Lab9/Source2.cpp +++ b/OOP1-Lab9/Source2.cpp @@ -13,52 +13,57 @@ void main_menu_view1() cout << "= Product 3 || || || || || =\n"; cout << "===================================================================================\n"; } + void salesman_sum(int a[3][5]) { int row, col, sum = 0; - // finding the column sum - for (row = 0; row < 5; ++row) { - for (col = 0; col < 3; ++col) { + // finding the column sum + for (row = 0; row < 5; ++row) + { + for (col = 0; col < 3; ++col) + { - // Add the element + // Add the element sum = sum + a[col][row]; } - // Print the column sum - cout << "The Total sales of Salesman " << row+1 << " is " << sum << endl; - // Reset the sum + // Print the column sum + cout << "The Total sales of Salesman " << row + 1 << " is " << sum << endl; + // Reset the sum sum = 0; } } + void sales_sum(int a[3][5]) { - int sum=0; - for (int row = 0;row < 3;row++) + int sum = 0; + for (int row = 0; row < 3; row++) { - for (int col = 0;col < 5;col++) + for (int col = 0; col < 5; col++) { - sum += a[row][col];//adding all arrays + sum += a[row][col]; // adding all arrays } cout << "The Total sales of Product " << row + 1 << " is " << sum << endl; - sum = 0;//reset the sum + sum = 0; // reset the sum } } -int main11() + +int main() { main_menu_view1(); int a[3][5]; - //inputing numbers for the 2D array + // inputting numbers for the 2D array cout << "Please input 5 Sales for Salesman 1, Salesman 2 and Salesman 3: \n "; for (int row = 0; row < 3; row++) { - for (int col = 0;col < 5;col++) + for (int col = 0; col < 5; col++) { cin >> a[row][col]; } } cout << "Main table of Salesman and Sales: \n"; - for (int row = 0;row < 3;row++) + for (int row = 0; row < 3; row++) { - for (int col = 0; col < 5;col++) + for (int col = 0; col < 5; col++) { cout << a[row][col] << " "; } diff --git a/OOP2_Lab1/Lab_Assignment-1.docx b/OOP2_Lab1/Lab_Assignment-1.docx deleted file mode 100644 index 0bab44b4024bc502109484566147fe4332e62338..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16623 zcmeIagMVeqwl*Bww$ZU|J008V*tXNLZL?#e!;Wp+>DYeL`<#9E-hIyZ{R8*T{MJ}& z&YDkEt+}32Rb$i`k&^-jK>+{*fB*mhAOx7<1r2Zm1OO-j0{}nC zC%`b~C=p``@%V)e7aXqK1ZG;9c7{c!`*mX22(fq><2cm7lFYFsdhBYD3P;Hmk#SxV zx+5MbBB=5}J2d;oph2>olkzFc6GF0rMusn>c|M!m!$_2fOb6Wxg|@j!;#K>TOCsh1aptWW%v|k=`peP z3&>KZJFqPD-psj`FL;y3>xbt4DlyU`U8?f(=(=q=&Gz={v5Z_+4uLbMK}oig3)Z~s zkPOqAs$^VBl)0x_@2XK>HGwa$P$F$yxC!EN;C<&?ko94&@7F(lPj&G}8P9cE9AJi< z&qUBu{tV-BARCAj=uh9yEnxT(!XcNHf_-QR_sxkMWST5+-|bE2r=_fj!T~cozFA$c z4~|DCr-hRw_#J{=cGeAHY{djG{;a0DA7|W{%X{i2`UlzG-+=+-{-LpWu~<##A0@IM z3JLw8vAXugmJW2ZzvTaE>i=T({M%Qri0l5)R2csAfY*Sj4*BJ7jC@%-!^stlC2$B$ z32Ee&Me~KXSMJ3{AnhZ4v61PS_(^w%3{j`e1nmo~BxTsJ4#@dOonFo7c2|JJp!Pxr z*LmA*nDqTSlhaCOwM2`sSKhp#DPUC4Ws!gqVc&}Kvw6SIaSb@^F#$_w`? z-b^{E40H45;+h`dWjrF^gK=BOF}>>FG!_ zVht*wurAuCj@|P+i+_X$QA6fJhSEKInrIxu5_5H~;ILK7a0^ z$LK#N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Wv96yB+HV6?ux^ zh6oGOg>C(d|CnxC3hJeGM!adBEAM@$%<9`j-=yE(zk;EEh0Fi~(R{3N{(ExupL+M_ z`+rHb{=I^K=6e1K{PkY@G4cN`^YeG$Ka=484xIjoiul9v`~Q&=_j^shXD0nsR|w>P z$y53r{(EHNU-15qxQstK@{c&h-|@f4sr`k2_*iWIf&Y8d+VAk+!q4*%U{{}=ox`JeFrap3LccmRMV765?X7oESO|2Y%?9X-wdH}s$L^6&89htIz%(Bk@c g_f0> student_id; cout << "Name: "; @@ -32,15 +34,16 @@ class Student { cin >> english_Score; ctotal(); } - void showData() { - - cout << "ID: "<< student_id << endl; - cout << "Name: " << student_name << endl; - cout << "OOP2: " << OOP2_Score << endl; - cout << "Math: " << math_Score << endl; - cout << "English: " << english_Score << endl; - cout << "Total score: " << total_Score << endl; - } + void showData() + { + + cout << "ID: " << student_id << endl; + cout << "Name: " << student_name << endl; + cout << "OOP2: " << OOP2_Score << endl; + cout << "Math: " << math_Score << endl; + cout << "English: " << english_Score << endl; + cout << "Total score: " << total_Score << endl; + } }; // creating a class named "Employee" @@ -53,31 +56,40 @@ class Employee int Rate; public: - void setEmployee_ID(string x) { + void setEmployee_ID(string x) + { Employee_ID = x; } - string getEmployee_ID() { + string getEmployee_ID() + { return Employee_ID; } - void setEmployee_Name(string y) { + void setEmployee_Name(string y) + { Employee_Name = y; } - string getEmployee_Name() { + string getEmployee_Name() + { return Employee_Name; } - void setHours(int z) { + void setHours(int z) + { Hours = z; } - int getHours() { + int getHours() + { return Hours; } - void setRate(int i) { + void setRate(int i) + { Rate = i; } - int getRate() { + int getRate() + { return Rate; } - double total_salary() { + double total_salary() + { int total; total = Hours * Rate; return total; @@ -93,18 +105,21 @@ int main() cin >> choice; cout << endl; - Student student; // creating an object of a class "Student" + Student student; // creating an object of a class "Student" Employee employee; // creating an object of a class "Employee" switch (choice) { - case 1: { + case 1: + { student.TakeData(); cout << endl; student.showData(); } - break; - case 2: { - while (true) { + break; + case 2: + { + while (true) + { system("cls"); int choice_employee; @@ -114,7 +129,8 @@ int main() cin >> choice_employee; switch (choice_employee) { - case 1: { + case 1: + { string x, y; int z, i; system("cls"); @@ -133,31 +149,32 @@ int main() employee.setHours(z); employee.setRate(i); system("pause"); - } - break; - case 2: { + break; + case 2: + { system("cls"); - cout <<"ID: "<< employee.getEmployee_ID() << endl; - cout <<"Name: "<< employee.getEmployee_Name() << endl; - cout <<"Hours: "<< employee.getHours() << endl; - cout <<"Rate: "<< employee.getRate() << endl; + cout << "ID: " << employee.getEmployee_ID() << endl; + cout << "Name: " << employee.getEmployee_Name() << endl; + cout << "Hours: " << employee.getHours() << endl; + cout << "Rate: " << employee.getRate() << endl; system("pause"); } - break; - case 3: { + break; + case 3: + { system("cls"); - cout << "Total salary: " << employee.total_salary() <DV1x9ox2TJL%ZAZFFqgw$(8@cJgKB&fJ-I-uHh0z`gtY&ffd1 zwVv8_&RMmpYE_l21TY8+02lxS0000107I;eiZLJnKp`jq05SjskcNPbwWE=>qmH7R zt&xM)S63^`FL@w9nOgUlf}r=GSxvKqL~L*&IYsAA@{QLvW2IVI+Nbd` z#3bEGpxfjdVfk*!)ZT$9$pT16)X*0~JMVT0_Ow2Ke3D55xj`{0F z`_fn95~(?%c-0>koK`k8P;BKi&6|}N5vKO6#jK)EoRptVJxtK4)A2+`yicaulutq*%^3 zd>wHpCBQ45ZHB?TpEK*@0~kQ|U&IqH7OUyQ^(%O(t-BtZ|DCL%m2l) z__wcK5!dr6mN4Hg{onj&I^Tow7UW%2DTT{yDr-9!lWPE8^4VbiBXLDhpVB6 zO<{q>K8B=BbR++y6ukdg3~fe8F*R>MT$i6^r?m8t;?0bP5vyMTh4rg_=EOa}t9T$ZkQy=< zGL-hk(^wNp{rxcP0F#&Hl0dCqXU7IRLyPa`Q%U{1eAIP@;KxCw^PU11dSfo1d+K8J+rLMds@h$Y!!_K7;!X!74|32@h%R08DQDLT zb&AfBxXi%}|6o|DLfdw}BdXTN`Ng}^X!Z=HW7V)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Yh28S{pG56;+m{^~DjnR|9 zAfMm@$|@p=?%$qi5}i$RxJM&ko_f+C-b@9)gy{gFAuyJdMSd+%vemh4mxu*E50jS%Ss!0qz=W1MXb6 zNLgjN<_c_evJuvo3$l4&ElMn|&GV~qDFvQaP@_8o?s#X^xHYD=FZd^^9zt1^qir&p zF0IWsMjCQ$g>1D{wL~p>&MH&L4~8FRYcuX8HI-%ZE2&?PEw!c_*`U+*;?{g<3`kYK zMGkmq?soFLs)V?V4fzBL_H6`+A*&ebAQlVS=OA4TY#|l3(5rNPnvMTH&Ce-Ia}Gay zPCtvA5dLmZ>e<@PiH5p6NnPST&0F~aqJs`5#^i*B%Y$WB>3t3%p(v~)H3sP=TU+d%WDdCaYJX9mD zX2vkF%gm-fXu3Yfu7RF3_!3EP0ENBu6g&JQjIfNT5uq5T5ywo^)OQ&sxR*In+4XQ< zB0MSV${(}awX}eiN7-b`Q(ke|9XR0H;(0Da-!^0vF-5$I z9DOVf*q_4LwwwGg@5tBHJ~zs~rWsKPe&7HC5asI8@JWvcd0?1;$K9qLXm@0kRvi>w zOJK!|j8y_852F~uS}*#9#FRs#2rGTJuCXF#f0SF_3J?zPm44I+iA`1iNB4G6TQY1) zNZ#W)f<{373hoi{FTrwTN_&FvXYfnsER(G-`e`d1ynNHT6qj@E`F(>TP_?s$DIV3F zY|_{U9SKIs-P;^Bj2y5LKNg%&cfI;LW_bIP3~Dliv`<7QRaXiJ@hh;G+^bDm1}?!u zNjYVwVptp?3r2W{z;#;M9BI0Q-Oq6{d*X}sHvPq27=2jr@%zb%@6QI(Sh>zjZ9`~W zP$Vh4KURSklQX)2kNfdnn#P*wGq095<_Cs?>A5JM{yY8y2t@N4Kl{(6>wiv$Kd=9x zkX=^dUkUtcaqXYL->%u868E=K+kXQ8wd(Niz^>0+xZfjD|3eMpKPmmQ@a!*IV32=M z`g + Person() + + Person(a: int) +``` + +### Program 2 +Construct a class to hold personnel records class name is Records. Use the following data members, and keep them private: +``` +string name; +float salary; +string date_of_birth; +``` +Create two constructors, one to initialize the record with its necessary values and one default. + +Create member functions to alter the individual’s name, salary, and date of birth. + +Create two objects use one object to refer member function through pointer and other object will be accessing through dot operator. + + +### Program 3 +Write a class Account that represents your bank account. +- It contains information like name(string), account number(string) and balance(float). (All are private) +- Add constructors and destructors. +- Create some objects, +- Write a code to display message when it is created and similarly display message when it will be destroyed. + + +### Program 4 +Write C++ header file Triangle.h with class Triangle with data members and member functions as per following class diagram. In Triangle.h file only implement get and set methods. (Consider right angle Triangle) +``` +Triangle +--- +- Height: double +- Base: double +--- +<> + Triangle(double, double) +<> +~ Triangle() # +~ stands for destructor ++ getHeight(): double ++ setHeight(double) ++ getBase(): double ++ setBase(double) ++ getArea(): double ++ getPerimeter(): double +``` +Write C++ program to include header file Triangle.h in your program. Implement constructor (with default value for height and width will be 0), getArea() and getPerimeter() member functions of Class Triangle and write menu driven program to get Height and Width details, display measurement (Area and Perimeter) of Triangle object. \ No newline at end of file diff --git a/OOP2_Lab2/Source.cpp b/OOP2_Lab2/Source.cpp index 41e8a81..d6c26b4 100644 --- a/OOP2_Lab2/Source.cpp +++ b/OOP2_Lab2/Source.cpp @@ -4,127 +4,150 @@ using namespace std; // Program #1 -class Person { +class Person +{ private: string name; int age; public: - Person() { // default constructor + Person() + { // default constructor age = 17; name = "Rustam"; } - Person( int x ) { + Person(int x) + { age = x; - name = "Rustam"; + name = "Rustam"; } - void Display() { + void Display() + { cout << "Name: " << name << endl; cout << "Age: " << age << endl; } }; // Program #2 - class Records { - private: - string name; - float salary; - string date_of_birth; - - public: - Records() { - name = "Rustam"; - salary = 1234; - date_of_birth = "12.34.5678"; - } - Records(string name1, float salary1, string date_of_birth1) { - name = name1; - salary = salary1; - date_of_birth = date_of_birth1; - } - void Display() { - cout << endl; - cout << "Name: " << name << endl; - cout << "Salary: " << salary <> name; - } - void alert_salary() { - cout << "New salary: "; - cin >> salary; - } - void alert_date() { - cout << "New Date of Birth: "; - cin >> date_of_birth; - } - - }; - - // Program #3 - class Account - { - public: - Account() { - cout << "Object is being Created" << endl; - name = "Rustam"; - number = "123456789"; - balance = 12345; - } - ~Account() { - cout << "Object is being Deleted" << endl; - } - void Display() { - cout << "Name: " << name << endl << "Number: " << number << endl << "Balance: " << balance << endl; - } - private: - string name; - string number; - float balance; - }; - - // Program #4 - class Rectangle { - private: - double height; - double width; - public: - Rectangle() { - height = 5; - width = 5; - } - - Rectangle(double height2, double width2) { - height = height2; - width = width2; - } - void setHeight(double a) { - height = a; - } - double getHeight() { - return height; - } - void setWidth(double b) { - width= b; - } - double getWidht() { - return width; - } - double getArea() { - return width * height; - } - double getPerimeter() { - return 2 * (width + height); - } - - }; - - - - - void main_menu_view() { +class Records +{ +private: + string name; + float salary; + string date_of_birth; + +public: + Records() + { + name = "Rustam"; + salary = 1234; + date_of_birth = "12.34.5678"; + } + Records(string name1, float salary1, string date_of_birth1) + { + name = name1; + salary = salary1; + date_of_birth = date_of_birth1; + } + void Display() + { + cout << endl; + cout << "Name: " << name << endl; + cout << "Salary: " << salary << endl; + cout << "Date of Birth: " << date_of_birth << endl; + } + void alert_name() + { + cout << "New name: "; + cin >> name; + } + void alert_salary() + { + cout << "New salary: "; + cin >> salary; + } + void alert_date() + { + cout << "New Date of Birth: "; + cin >> date_of_birth; + } +}; + +// Program #3 +class Account +{ +public: + Account() + { + cout << "Object is being Created" << endl; + name = "Rustam"; + number = "123456789"; + balance = 12345; + } + ~Account() + { + cout << "Object is being Deleted" << endl; + } + void Display() + { + cout << "Name: " << name << endl + << "Number: " << number << endl + << "Balance: " << balance << endl; + } + +private: + string name; + string number; + float balance; +}; + +// Program #4 +class Rectangle +{ +private: + double height; + double width; + +public: + Rectangle() + { + height = 5; + width = 5; + } + + Rectangle(double height2, double width2) + { + height = height2; + width = width2; + } + void setHeight(double a) + { + height = a; + } + double getHeight() + { + return height; + } + void setWidth(double b) + { + width = b; + } + double getWidht() + { + return width; + } + double getArea() + { + return width * height; + } + double getPerimeter() + { + return 2 * (width + height); + } +}; + +void main_menu_view() +{ cout << "Main menu: \n"; cout << "[1] Person's info\n"; cout << "[2] Records\n"; @@ -133,114 +156,119 @@ class Person { cout << "[0] Exit\n"; cout << "Your Choice: "; } -int main() { + +int main() +{ string user_choise; main_menu_view(); cin >> user_choise; // main_menu_validation_check - if (user_choise == "1") { - system("cls"); - int x; - cout << "Input Age: "; - cin >> x; - Person person1, person2(x); - person1.Display(); - cout << endl; - person2.Display(); - } - else if (user_choise == "2") { - system("cls"); - cout << "Records: " << endl; - string name; - float salary; - string date_of_birth; - cout << "Name: "; - cin >> name; - cout << "Salary: "; - cin >> salary; - cout << "Date of birth: "; - cin >> date_of_birth; - - Records record1, record2(name, salary, date_of_birth); - record1.Display(); - record2.Display(); - cout << endl; - - Records * ptr = &record1; - ptr->alert_name(); - ptr->alert_salary(); - ptr->alert_date(); - - record1.Display(); - record2.Display(); - - } - else if (user_choise == "3") { - system("cls"); - Account a; - a.Display(); - a.~Account(); + if (user_choise == "1") + { + system("cls"); + int x; + cout << "Input Age: "; + cin >> x; + Person person1, person2(x); + person1.Display(); + cout << endl; + person2.Display(); + } + else if (user_choise == "2") + { + system("cls"); + cout << "Records: " << endl; + string name; + float salary; + string date_of_birth; + cout << "Name: "; + cin >> name; + cout << "Salary: "; + cin >> salary; + cout << "Date of birth: "; + cin >> date_of_birth; - } - else if (user_choise == "4") { - system("cls"); - Rectangle r; - double width1, height1; + Records record1, record2(name, salary, date_of_birth); + record1.Display(); + record2.Display(); + cout << endl; + + Records *ptr = &record1; + ptr->alert_name(); + ptr->alert_salary(); + ptr->alert_date(); + + record1.Display(); + record2.Display(); + } + else if (user_choise == "3") + { + system("cls"); + Account a; + a.Display(); + a.~Account(); + } + else if (user_choise == "4") + { + system("cls"); + Rectangle r; + double width1, height1; - cout << "Enter the widht fo the rectangle: "; - cin >> width1; - cout << "Enter the height fo the rectangle: "; - cin >> height1; + cout << "Enter the width fo the rectangle: "; + cin >> width1; + cout << "Enter the height fo the rectangle: "; + cin >> height1; - Rectangle r2(height1, width1); + Rectangle r2(height1, width1); - r2.setHeight(height1); - r2.setWidth(width1); + r2.setHeight(height1); + r2.setWidth(width1); - system("cls"); + system("cls"); - int user_choice_1; - /*int qwerty; - cin >> qwerty;*/ - while (user_choice_1 >= 1) + int user_choice_1; + /*int qwerty; + cin >> qwerty;*/ + while (user_choice_1 >= 1) + { + cout << "Rectangle: \n"; + cout << "[1] Area\n"; + cout << "[2] Perimeter\n"; + cout << "[0] Exit\n"; + cin >> user_choice_1; + switch (user_choice_1) { - cout << "Rectangle: \n"; - cout << "[1] Area\n"; - cout << "[2] Perimeter\n"; - cout << "[0] Exit\n"; - cin >> user_choice_1; - switch (user_choice_1) - { - case 1: - system("cls"); - cout << "The Area is: (Default Constructor (5,5)) : " << r.getArea() << endl << endl; - cout << "The Area is: (Parametric Constructor) : " << r2.getArea() << endl; - cout << endl; - - break; - case 2: - system("cls"); - cout << "The Perimeter is: (Default Constructor(5,5) : " << r.getPerimeter() << endl << endl; - cout << "The Perimeter is: (Parametric Constructor) : " << r2.getPerimeter() << endl; - break; - case 0: break; - - - } + case 1: + system("cls"); + cout << "The Area is: (Default Constructor (5,5)) : " << r.getArea() << endl + << endl; + cout << "The Area is: (Parametric Constructor) : " << r2.getArea() << endl; + cout << endl; + + break; + case 2: + system("cls"); + cout << "The Perimeter is: (Default Constructor(5,5) : " << r.getPerimeter() << endl + << endl; + cout << "The Perimeter is: (Parametric Constructor) : " << r2.getPerimeter() << endl; + break; + case 0: + break; } } - else if (user_choise == "0") { - return 0; - } - else { + } + else if (user_choise == "0") + { + return 0; + } + else + { system("cls"); cout << "Please try again !!!\n"; main(); - } - + } - return 0; + return 0; } - diff --git a/README.md b/README.md index b99bdf1..1077920 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,31 @@ # C++ Programming -``` -Tips for Learning Programming -1. Learn and code every day, consistency is important. -2. Write it out — plan your code before you move to the computer. Take small notes. -3. Learn debugging your code — see line by line how your code works. Try it on Visual Studio. -4. Surround yourself with others who are learning. Teach to each other. -5. Learn asking GOOD questions. - - G: Give context on what you are trying to do, clearly describing the problem. - - O: Outline the things you have already tried to fix the issue. - - O: Offer your best guess as to what the problem might be. This helps the person who is helping you to not only know what you are thinking, but also know that you have done some thinking on your own. - - D: Demo what is happening. Include the code, a traceback error message, and an explanation of the steps you executed that resulted in the error. This way, the person helping does not have to try to recreate the issue. -6. Build something, anything. For example, simple calculator, or program to save and read data from TXT files. -7. Focus on 1 thing! Take small steps, but every day, consistency is very important. -``` -## Contents: +## Contents +- [Tips](#keep-these-tips-in-mind-while-learning-programming) - [Computer Science Basics](#computer-science-basics) - [Learning Resources](#learning-resources) - [Problem Solving](#problem-solving) - [Projects Ideas](#projects-ideas) + +## Keep These Tips in Mind While Learning Programming +``` +1. Learn and code every day, consistency is important. +2. Write it down - plan your code before you start coding and understand the input to your program and the output from your code. +3. Learn to debug your code - look at the code line by line to see how it works. +4. Surround yourself with other people who are learning. Teach each other. +5. Learn taking notes. +6. Build something, anything. For example, simple calculator, or program to save and read data from TXT files. +7. Focus on 1 thing! Take small steps, but every day, consistency is very important again. +8. Learn to ask GOOD questions to others: + - G: Give context on what you are trying to do, clearly describing the problem. + - O: Outline the things you have already tried to fix the issue. + - O: Offer your best guess as to what the problem might be. It helps the person who is helping you not only know what you're thinking, but also know that you've thought of something yourself. + - D: Demonstrate what's going on. Include the code, the tracing error message, and an explanation of the steps you followed that resulted in the error. That way, the person helping doesn't have to try to recreate the problem. +``` + + ## Computer Science Basics - [Harvard CS50](https://youtube.com/playlist?list=PLhQjrBD2T383f9scHRNYJkior2VvYjpSL) - Scratch, C, Arrays, Algorithms, Memory, Data structures, Python, SQL, HTML, CSS, JavaScript, Flask - `Optional` [Crash Course Computer Science](https://www.youtube.com/playlist?list=PL8dPuuaLjXtNlUrzyH5r6jN9ulIgZBpdo) @@ -116,6 +121,7 @@ Tips for Learning Programming ``` ## Projects Ideas +``` 1. Banking system with all banking facilities like – deposit, withdrawal, foreign exchange to any currency, availability of loans for purchasing vehicles, apartments, houses, setting up business, education loan, management of ATMs and all other features. 2. Airline flight reservation system (online booking of tickets in different flights for different destinations all over the world, cancellation of tickets, clear display of cancellation amount, refund of amount after cancellation, showing availability of all flights, showing flights timings for all 7 days of a week, seats availability, seat selection for travelers by giving the complete layout of the seating arrangement inside the flights, food availability/non-availability inside the flights, change of travel dates and amount charged.) 3. Taxi/cab sharing @@ -162,3 +168,4 @@ Tips for Learning Programming 44. Cryptocurrency trading portal (exchange) allowing trading of all crypto coins using security, confidentiality and authentication 45. Parking management system 46. Online food delivery system (linked to all restaurants in different districts in different regions in some country) +``` From 44b6440d7e9ff1a638b6d9f04ce40a80111aa218 Mon Sep 17 00:00:00 2001 From: Rustam-Z Date: Tue, 18 Apr 2023 00:28:55 +0500 Subject: [PATCH 02/21] OOP2 Lab 3 updated --- OOP2_Lab3/README.md | 48 ++++++++ ...Spring_2018_-_OOP2_-_Lab_Assignment_3.docx | Bin 17843 -> 0 bytes OOP2_Lab3/main.cpp | 104 ++++++++++-------- 3 files changed, 105 insertions(+), 47 deletions(-) create mode 100644 OOP2_Lab3/README.md delete mode 100644 OOP2_Lab3/Spring_2018_-_OOP2_-_Lab_Assignment_3.docx diff --git a/OOP2_Lab3/README.md b/OOP2_Lab3/README.md new file mode 100644 index 0000000..bf175bc --- /dev/null +++ b/OOP2_Lab3/README.md @@ -0,0 +1,48 @@ +# Practical Lab Assignment - Const member function, friend function, composition, friend functions and `this` pointer + +**Note: In class diagram + for public, - for private.** + + +### Program 1 +Define a class FullName and Player with the following specifications: + +``` +FullName +--- +- FirstName: string +- MiddleName: string +- LastName: string +--- +<> + FullName() +<> +~ FullName() ++ setFirstName(string) ++ getFirstName(): string ++ setMiddleName(string) ++ getMiddleName(): string ++ setLastName(string) ++ getLastName(): string +``` +``` +Player +--- +-Player_ID: string +-Player_Name: FullName +-Matches_Played: int +-Goals_Scored: int +--- +<> + Player() +<> +~ Player() ++ setPlayer_ID(string) ++ getPlayer_ID(): string ++ setMatches_Played(int) ++ getMatches_Played(): int ++ setGoals_Scored(int) ++ getGoals_Scored(): int ++ setPlayer_Name(FullName) ++ getPlayer_Name() +<> + Increase_GoalsScored(Player, int) +``` + +`Increase_GoalsScored(int)` is friend function for Player: This function will increase Goal_scored by some int every time when called. + +Write C++ create object pointer(through new) to Class Player and menu driven program to add player details (allocate memory for object and get player details), display player details, increase player goal scored delete player from memory. \ No newline at end of file diff --git a/OOP2_Lab3/Spring_2018_-_OOP2_-_Lab_Assignment_3.docx b/OOP2_Lab3/Spring_2018_-_OOP2_-_Lab_Assignment_3.docx deleted file mode 100644 index b87d35e925785a1443f16797d5ad087bb60729d8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17843 zcmeIa1$!LF(l)$eX0X6wX0pg4Tg=Q%E3%kb7BkCYu$Y-GW@cuVEM}%p$w^KUpM1aI zedfBhc6X-lo}QViuCD64M^*w19321&fCc~nM1W|)sxvtaL}y7hnYov51^|3R7CJ&+X% z#5H*U31N*8y5>)Aeres}V9L$0G2IORoZfhgZ~6&GicOe;23n3YrCN_o7iPXw4ET=o zF|j4*mNuBO1btDhe*u#?C9J$$xVkhjF>0|lRVnDj`%+a=S8zBLO5)oj1W8o9UPlWh zZx86*v95I=oG}V*o~m2L`A-<}%IQRItDjB+sGmgQx!J-Ult=w;)iFQ|M^%(xM8$4l zu&JDQD&=`sWx=*Y&<+MqLEKhw@uXx?V+x_~sNo&XYvE!fRA>>Xs;AgQIJDG?K-E2t zcYSFHg+JP5SJ&zLRYASza2`z#6GdHI5SBVn2zHkSIJ@}t)^p(_i;Y9IuQsCTAza?B zQnn^J`NWN8I?VTdP(PH0uBf62@U^4hhv4VO(oX-*^wRa7Qf8R-iYc(gfdYKe0eL^`~z~q~B~4?#+00Y=P!>4D`Rr|1;YEhb{GQmtGRn@n*E}pH6+BeJ5Jv z7CW%Ar5Oyym#`L~pf$uK(U#`T=3bt;=jTDS_Vq-DCZ}S@UF}kZ9oFNt&T!(D5J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jJj6J6)~4CHUNcg5+_DWi4gMKp zHW4Aad$!3E*qu&&-+|_(Q`SmF-^+fHK2zHHT{cXwlufTt1joPNJ~)5C z|3-KG75yvI>@PGs-XG{+d1t>?@hk7(uPV$*{;1;bEQDX-zs}SB1$U$T1OCgb-LEzL zIxF>84P#V)HsHT=RKJ3MjSl|;`?382{zt6%EB>DY*1ymI0MkbR;D3g%zrueVS^QN& zANL=pH+p+z%74chzvBPto&G`t0A0L)JN+NNN>&2m%{G3UyF&uBzM0qB=imPQf2{o- A2mk;8 diff --git a/OOP2_Lab3/main.cpp b/OOP2_Lab3/main.cpp index 7879a00..53bbe11 100644 --- a/OOP2_Lab3/main.cpp +++ b/OOP2_Lab3/main.cpp @@ -3,41 +3,48 @@ #include using namespace std; -class FullName +class FullName { public: - - FullName() { + FullName() + { FirstName = "Rustam"; MiddleName = "Zokirov"; LastName = "Ibrohimovich"; } - FullName(string fName, string mName, string lName ){ + FullName(string fName, string mName, string lName) + { fName = FirstName; mName = MiddleName; lName = LastName; } - void setFirstName(string f_Name) { + void setFirstName(string f_Name) + { FirstName = f_Name; } - string getFirstName() { + string getFirstName() + { return FirstName; } - void setMiddleName(string m_Name) { + void setMiddleName(string m_Name) + { MiddleName = m_Name; } - string getMiddleName() { + string getMiddleName() + { return MiddleName; } - void setLastName(string l_Name) { + void setLastName(string l_Name) + { LastName = l_Name; } - string getLastName() { + string getLastName() + { return LastName; } - - private: + +private: string FirstName; string MiddleName; string LastName; @@ -50,62 +57,69 @@ class Player int Matches_Played; FullName Player_Name; - public: - static int Goals_Scored; - Player() { + Player() + { Player_ID = "U1910049"; Matches_Played = 100; } - Player(string id, int matches, int goals) { + Player(string id, int matches, int goals) + { Player_ID = id; Matches_Played = matches; -} - void setPlayer_ID(string ID) { + } + void setPlayer_ID(string ID) + { Player_ID = ID; } - string getPlayer_ID() { + string getPlayer_ID() + { return Player_ID; } - void setMatches_Played(int Matches) { + void setMatches_Played(int Matches) + { Matches_Played = Matches; } - int getMatches_Played() { + int getMatches_Played() + { return Matches_Played; } - /* void setGoals_Scored(int Goals) { - Matches_Played = Goals; - } - int getGoals_Scored() { - return Goals_Scored; - }*/ + /* void setGoals_Scored(int Goals) { + Matches_Played = Goals; + } + int getGoals_Scored() { + return Goals_Scored; + }*/ friend void Increse_GoalScored(Player); }; int Player::Goals_Scored; -void Increse_GoalScored(Player player1) { +void Increse_GoalScored(Player player1) +{ player1.Goals_Scored++; } - int main() { int choice; while (1) { - string firstName,middleName,lastName; + string firstName, middleName, lastName; FullName fullName1; // 2 string Id; int goals, matches; Player player1; cout << "Add: First Name, Middle Name, Last Name: \n\n"; - cout << "First Name: \n"; cin >> firstName; - cout << "Middle Name: \n"; cin >> middleName; - cout << "Last Name:\n "; cin >> lastName; + cout << "First Name: \n"; + cin >> firstName; + cout << "Middle Name: \n"; + cin >> middleName; + cout << "Last Name:\n "; + cin >> lastName; FullName fullName(firstName, middleName, lastName); fullName.setFirstName(firstName); @@ -121,20 +135,20 @@ int main() cout << "Your Choice: "; cin >> choice; - switch (choice) + switch (choice) { case 1: system("cls"); cout << "We have entered in the beginning!" << endl; - //fullName.setFirstName(firstName); - //fullName.setMiddleName(middleName); - //fullName.setLastName(lastName); - /* FullName fullName(firstName, middleName, lastName); - fullName.setFirstName(firstName); - fullName.setMiddleName(middleName); - fullName.setLastName(lastName);*/ + // fullName.setFirstName(firstName); + // fullName.setMiddleName(middleName); + // fullName.setLastName(lastName); + /* FullName fullName(firstName, middleName, lastName); + fullName.setFirstName(firstName); + fullName.setMiddleName(middleName); + fullName.setLastName(lastName);*/ - break; + break; case 2: system("cls"); cout << "Details of the Player: \n"; @@ -146,22 +160,18 @@ int main() player1.setMatches_Played(matches); cout << endl; cout << player1.getPlayer_ID(); - cout << fullName.getFirstName() << " " << fullName.getLastName() << " " << fullName.getMiddleName() << endl; - cout << player1.getMatches_Played(); - break; case 3: system("cls"); cout << "Number of goals: \n"; Increse_GoalScored(player1); - break; + break; case 4: system("cls"); cout << "Deletion for finished successfully! \n"; break; - case 5: system("exit"); } From c4c94bb02a6d26ffd1027d71bd5929f0c0c506d8 Mon Sep 17 00:00:00 2001 From: Rustam-Z Date: Tue, 18 Apr 2023 00:54:40 +0500 Subject: [PATCH 03/21] OOP2 Lab4 updated --- .../Lab4_operator_overloading_Unary.docx | Bin 15331 -> 0 bytes OOP2_Lab4/README.md | 36 ++++ OOP2_Lab4/main1.cpp | 168 +++++++++++------- 3 files changed, 139 insertions(+), 65 deletions(-) delete mode 100644 OOP2_Lab4/Lab4_operator_overloading_Unary.docx create mode 100644 OOP2_Lab4/README.md diff --git a/OOP2_Lab4/Lab4_operator_overloading_Unary.docx b/OOP2_Lab4/Lab4_operator_overloading_Unary.docx deleted file mode 100644 index c6b0d3dbbb6edf2301ae969758b6c0e678af9d98..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15331 zcmeHu1$P`tvTlo+nVFdxY)KX~Go!`K%*?XbV##8b#mvmIn3c%?QnD#b`!`NHZ-}vwf=k)D^8-Y6|E@R`9k@Kc%|9rk?n5*p25O6qyh0gZWTTU3+6o2L}2-uK%Z&|BH3; zZ$G^(zUxCRVFk|vUIV7uCt>{bp<2^wH7eB&f9LmrtjUEybhCyQw;}1sH25X zV1vg!gnk?AMA@YlzS}K=F(;;)m^CD=&C9Y=Ubz3}&GJ2!X>Q&^Ow$A62cJlLFkbUG zmN&GCKy?ZWU2IJET8(zE(osSabCdrk3HwuFfIjTlN9+IHM_IzyAM<$Nc~E=6q6Zz1l@L^%1C^ha<~@*+ z$E(n-VZO9RhnI*1atQcLKs1YiX?xI|`*k@Q&-d##HsBgku;9WPCmRhQg1);=ux}LR z7A0k$fJodIckW$|Ih5kNW6z(uYGVyreWT6P?9NKz>uta zi_MU^%)ky-GA~u2Z#dtQR2kr22rM<2KSAqS)i0PGd;z-`LuJ1vQfx*S?;H~UjDE2U z8Bq+$N}U0Wd#mMzUb}YU6h?39NyMq?fH?9E5!K`p*fz1lgni%wHzB7w7+U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X7 z8x6X^6l1G=x1WT$HXn76mBcdv+HfS*PunX&iBTcy2cDiCF^>XJCFJieev>y&3PzYs znQg*%r19J0c1tW&?aZ|Xt80gi0Irp^t?EDSy z=%TS^4v{t2MrG=>Wl4Z01sWx;z|_{9F8ZfR=5#?o}ZkTjkN}qdjKt;ADwiR#gpB5bk;E3 z2~$Z4Dqd_1zlu0oc18ZdcP%_Ze{$>Wv=+YGH z8`Wya^g4UX)vsyEZ9OP_IJ^cR)|g^S6V)Cs%%+{>a #include + using namespace std; -class DayTime { + +class DayTime +{ private: int hour, minute, second; + public: - DayTime() { + DayTime() + { hour = 0; minute = 0; second = 0; @@ -17,64 +22,81 @@ class DayTime { minute = m; second = s; } - int getHour() const { + int getHour() const + { return hour; } - int getMinute() const { + int getMinute() const + { return minute; } - int getSecond() const { + int getSecond() const + { return second; } - - void DisplayTime() { - cout << "HH: " << hour << endl << "MM: " << minute << endl << "SS: " << second << endl; + + void DisplayTime() + { + cout << "HH: " << hour << endl + << "MM: " << minute << endl + << "SS: " << second << endl; } - int asSeconds() const { + int asSeconds() const + { return (3600 * hour + 60 * minute + second); } - - friend void operator <<(ostream& out, DayTime& h); - friend void operator >>(istream& in, DayTime& h); - friend void operator ++(DayTime &MainDayTime); - friend void operator --(DayTime& MainDayTime2); + + friend void operator<<(ostream &out, DayTime &h); + friend void operator>>(istream &in, DayTime &h); + friend void operator++(DayTime &MainDayTime); + friend void operator--(DayTime &MainDayTime2); }; -void operator >> (istream& in, DayTime& h) { - cout << "Input hours ( 0 , 24 ): "; +void operator>>(istream &in, DayTime &h) +{ + cout << "Input hours ( 0 , 24 ): "; in >> h.hour; - cout << "Input minutes (0 , 60 ): "; + cout << "Input minutes (0 , 60 ): "; in >> h.minute; cout << "Input seconds ( 0 ,60 ): "; in >> h.second; } -void operator << (ostream& out, DayTime& h) { - out << "HH: " << h.hour << endl << "MM: " << h.minute << endl << "SS: " << h.second << endl; +void operator<<(ostream &out, DayTime &h) +{ + out << "HH: " << h.hour << endl + << "MM: " << h.minute << endl + << "SS: " << h.second << endl; } -void operator ++ (DayTime& MainDayTime) { +void operator++(DayTime &MainDayTime) +{ MainDayTime.second++; - if (MainDayTime.second >= 60) { + if (MainDayTime.second >= 60) + { MainDayTime.second = 0; MainDayTime.minute++; } - if (MainDayTime.minute >= 60) { + if (MainDayTime.minute >= 60) + { MainDayTime.minute = 0; MainDayTime.hour++; } } -void operator -- (DayTime& MainDayTime2) { +void operator--(DayTime &MainDayTime2) +{ MainDayTime2.minute--; - if (MainDayTime2.minute < 0) { + if (MainDayTime2.minute < 0) + { MainDayTime2.minute = 59; MainDayTime2.hour--; } } // Class 'Dollar' for the program 2 -class Dollar { +class Dollar +{ private: float currency, mktrate, offrate; @@ -85,34 +107,37 @@ class Dollar { mktrate = 9000; offrate = 7000; } - float getDollar() + float getDollar() { - cout << endl<< "Currency: " << endl; + cout << endl + << "Currency: " << endl; return currency; } - float getMarketSoums() + float getMarketSoums() { cout << "Markent currency: " << endl; - return currency*mktrate; + return currency * mktrate; } - float getofficialSoums() { + float getofficialSoums() + { cout << "Official currency:" << endl; - return currency*offrate; + return currency * offrate; } - void setRates() + void setRates() { cout << "Enter current market rate: " << endl; cin >> mktrate; cout << "Enter current official rate: " << endl; cin >> offrate; } - friend void operator<< (ostream &output, Dollar &p); + friend void operator<<(ostream &output, Dollar &p); }; -void operator << (ostream &output, Dollar &p) +void operator<<(ostream &output, Dollar &p) { output << "Details of a dollar " << endl; - output << "Currency is " << p.currency <> h2; - + showChoicesforMainMenu2(); - do { + do + { cin >> choice2; switch (choice2) { case 1: cout << h2; - cout << endl << endl; + cout << endl + << endl; cout << "Enter your choice: "; break; case 2: - cout << h2.asSeconds() < Date: Tue, 18 Apr 2023 01:02:50 +0500 Subject: [PATCH 04/21] OOP2 Lab 5 updated --- .../Lab5._operator_overloading_binary.docx | Bin 16887 -> 0 bytes OOP2_Lab5/README.md | 27 ++++++++++++++++++ 2 files changed, 27 insertions(+) delete mode 100644 OOP2_Lab5/Lab5._operator_overloading_binary.docx create mode 100644 OOP2_Lab5/README.md diff --git a/OOP2_Lab5/Lab5._operator_overloading_binary.docx b/OOP2_Lab5/Lab5._operator_overloading_binary.docx deleted file mode 100644 index ec0b9be49c1122d70b90b2c82dd2b505bee75b7d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16887 zcmeHvgKUyOYVz_ZR&3+~?`b z>F&3V@K$$qRrQsX1O`C{_y7P7002M$0AWT3;|d4>Q2qe`00{sbNL|p%(%#V0UR%+{ z+R#pu*4e@wKL-SeJPQEmz5oA?|HE&fE@4=vhaO(|PV8B5hel$hh7X+O)OP@pQjX_a zJz2T%b2PWd3wIo81Uw~7&M0XtlifLYhFILB!IvQe7y>h6yN@Fur~#?cryOHyqZTDy z$76%LDdjkz*q8YY;x2AxO&YG?k>r`}Y)LKDESqB64JOA+JtY1%8qf#PFGq8#)S5|}nUiu3tOuIiO|<)=sqh;}>3 zXzQa`XTIG}`j=d~@#VVZPJ)!ya03MV5F z&TOY(WYGt10r%W#yO8iz5Px@&-y!j7!_!`^wjoIBGw z2t}IUaaC01q?(g}w-Pr4cG?>~m;~|_;$yO){wjn|9c;EI?D*coa$0EKn5i|-lq<|z z)2*)8=c9Pq6M`%r?!%8UW#b)qilwSP9I>N!yr~yx?`(T}0|t=&o66$GU^bq=x5&I} zB-FdgYTFu`+tJbfEdQsf|A+PSmq#y)?K113hvqx?d-0oWms{#W&y}ImpIAm;1OrzW zmqJ=zFq?mU;aXS#(md1^9iEzwn{c&D6LHvx*ZhH*s00(*4l(zj)uaB@<_wS!(3a2O zJZHTHow|2x^fE*wPBG*criv0ej`<4YrZEl8*()?Yr zCsWo}hS@nYF?Bbv5^mv+K%AB_3{OZS-s&VKn&_zRwHnP{#iO_;#t1Wt8){5*dODJ{ z7`-w`%pYx&N3OY@g?%9b)DYPaA#_jfMjD7}ulu2U7`z|P2~_K}H?6SJH2JUIC$9h2 zkB?#rCOGdc9UuSz*Z|;wPFA)Cb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fl{yY441L`jU#B6_F-st^j7ye^T{f__p kiMm&^Y-)yPVMzOx$u0QUXk{jMOoJU`F=A6x2gxBvhE diff --git a/OOP2_Lab5/README.md b/OOP2_Lab5/README.md new file mode 100644 index 0000000..484aeb5 --- /dev/null +++ b/OOP2_Lab5/README.md @@ -0,0 +1,27 @@ +# Practical Lab Assignment - Binary Operator Overloading + +### Program 1 +``` +Create a class Rectangle. +Private members of class Rectangle: Length, breadth. +Create Member function: + Public: + double getArea() + void setLength(double) + void setBreadth(double) +``` +Declare overloading function use **(+)** operator to add two Rectangle objects. +In the `main()` function set rectangle length, breadth with member functions and use area function to print area of each rectangle. +Then declare a third object use overloading function to get area of third object. + +### Program 2 +``` +Create a class Distance. +Private members of class Distance: Kilometer, meter. +Create default constructor and parameter constructor. +Create Member function: + void showDistance() +``` +Declare overloading function use **(==)** operator to compare two distances. +In the `main()` function set Distance kilometer, meter and use show distance to print of each distance. +Then use overloading function to get difference of two distances. From a2612ed53ae577ac92bee19b76d637ae65fb20ce Mon Sep 17 00:00:00 2001 From: Rustam-Z Date: Tue, 18 Apr 2023 01:10:50 +0500 Subject: [PATCH 05/21] OOP2 Lab6 updated --- OOP2_Lab6/README.md | 55 ++++++++++++++++++++++ OOP2_Lab6/lab_6_inheritance_exercise.docx | Bin 18106 -> 0 bytes 2 files changed, 55 insertions(+) create mode 100644 OOP2_Lab6/README.md delete mode 100644 OOP2_Lab6/lab_6_inheritance_exercise.docx diff --git a/OOP2_Lab6/README.md b/OOP2_Lab6/README.md new file mode 100644 index 0000000..13643b4 --- /dev/null +++ b/OOP2_Lab6/README.md @@ -0,0 +1,55 @@ +# Practical Lab Assignment - Inheritance + +### Program 1 +Imagine a publishing company that markets both book and audio cassette version of its works. Create a class Publication that stores the `title` (a string) and `price` (type float) of a publication. + +From this class derive two classes: +- `Book`, which adds a page count (type int). +- `Tape`, which add playing time in minutes (type float). + +Each of these three classes should have: +- `getdata() function to display its data +- `setdata()` function to get its data from the user at the keyboard. + +Write a main() program to test the Book and Tape classes by creating instances of them, asking the user to fill with data with `setdata()`, and then displaying the data with `getdata()`. + +### Program 2 +Assume that a bank maintains two kinds of accounts for customers, one called as saving and the other called as current account. + +The saving account provides interest and withdrawal facilities but no cheque book facility. + +The current account provides cheque book facility but no interest. Current account holders should also maintain a minimum balance and if the balance falls below this level a service charge is imposed. + +Create a class `ACCOUNT` that stores customer name, account number and type of account. + +From this derive the classes `CURR_ACCT` and `SAV_ACCT` to make them more specific to their requirements. + +Do not use any constructors. Use member functions to initialize the class members. Include necessary member functions in order to achieve all the tasks: + +Design a menu based program where user selects the type of account and perform the following tasks: +- Accept deposit from a customer and update the balance. +- Display the balance. +- Compute and deposit interest. +- Permit withdrawal and update the balance. +- Check for the minimum balance, impose penalty, necessary and upload the balance. + +``` +CURR_ACCT: +--- +amount, penalty +--- +Deposit() – will deposit the money and update amount +Balance() - will display the balance of account +Withdraw() – will allow to withdraw from account (check if withdrawal amount is less than balance and update balance) +Penalty() – apply penalty of USD 2 for maintaining balance less than 100 USD +``` +``` +SAV_ACCT: +--- +amount +--- +Deposit() – will deposit the money and update amount +Balance() - will display the balance of account +Compute_Interest() – calculate interest based on given condition [ROI is 4% per annum] +Withdraw() – will allow to withdraw from account (check if withdrawal amount is less than balance and update balance) +``` \ No newline at end of file diff --git a/OOP2_Lab6/lab_6_inheritance_exercise.docx b/OOP2_Lab6/lab_6_inheritance_exercise.docx deleted file mode 100644 index 1c3762ad2166ca86aff3a27e2e7412d6a26043d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 18106 zcmeIagLh@!(&)Wo+eXK>JGSklW7|f@wvCQD?%1|%+g2x?Fa6wu=k$BN`w!fA?XmY* z$zD}!t~sh^{pPHiTV4tT6cqptfCK;lM1U)zGw*01000I2;|+iW))KO{aWb}X`l9S^ zXY8m$=Von1m=6j}kqZF+xc+~S|A%{^E>T9VhaWNclI&NANmY@~m0o0?ojea!80O@t z3p7qE!Lmljul8AVY!-fntC_-e@6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r 2023 01:17:28 +0500 Subject: [PATCH 06/21] Added new tasks --- OOP2_Lab5/Source.cpp | 78 ++-- OOP2_Lab6/Source.cpp | 188 ++++++---- .../{Lab_8_Assignment.docx => README.docx} | Bin OOP2_Lab7/Source.cpp | 354 ++++++++++++------ 4 files changed, 405 insertions(+), 215 deletions(-) rename OOP2_Lab7/{Lab_8_Assignment.docx => README.docx} (100%) diff --git a/OOP2_Lab5/Source.cpp b/OOP2_Lab5/Source.cpp index 78997db..bdb4044 100644 --- a/OOP2_Lab5/Source.cpp +++ b/OOP2_Lab5/Source.cpp @@ -2,31 +2,36 @@ #include using namespace std; -// class 'Rectangle' -class Rectangle { +// class 'Rectangle' +class Rectangle +{ private: - double length, breadth; + double length, breadth; + public: - double getArea() { + double getArea() + { return length * breadth; } - void setLength(double length) { + void setLength(double length) + { this->length = length; - } - void setBreadth(double breadth) { + } + void setBreadth(double breadth) + { this->breadth = breadth; - } - Rectangle operator+(Rectangle& r2) { + Rectangle operator+(Rectangle &r2) + { Rectangle temp; temp.setLength(length + r2.length); temp.setBreadth(breadth + r2.breadth); return temp; } - }; // void function for the inputing data for class 'Rectangle' & uisng the overloading -void RectangleFirst() { +void RectangleFirst() +{ Rectangle r3, r1, r2; int temp; cout << "Rectangle 1" << endl; @@ -36,7 +41,8 @@ void RectangleFirst() { cout << "Breadth: "; cin >> temp; r1.setBreadth(temp); - cout << "Area: " << r1.getArea() << endl << endl; + cout << "Area: " << r1.getArea() << endl + << endl; cout << "Rectangle 2" << endl; cout << "Length: "; @@ -45,63 +51,79 @@ void RectangleFirst() { cout << "Breadth: "; cin >> temp; r2.setBreadth(temp); - cout << "Area: " << r2.getArea() << endl << endl; + cout << "Area: " << r2.getArea() << endl + << endl; r3 = r1 + r2; // overloading by the binary operator cout << "Rectangle 3 Area: " << r3.getArea() << endl; - } -class Distance { +class Distance +{ private: float Km, M; + public: - void setKm(int Km) { + void setKm(int Km) + { this->Km = Km; } - void setM(int M) { + void setM(int M) + { this->M = M; } - Distance operator==(Distance& d) { - if ((Km == d.Km) && (M == d.M)) { + Distance operator==(Distance &d) + { + if ((Km == d.Km) && (M == d.M)) + { cout << "They are EQUAL.\n"; return *this; } - else { + else + { cout << "NOT EQUAL.\n"; return *this; } } }; -void DistanceSecond() { +void DistanceSecond() +{ Distance d1, d2; - float k1,m1,k2,m2; + float k1, m1, k2, m2; cout << "First distance: \n"; cout << "Kilometers: "; cin >> k1; cout << "Meters: "; cin >> m1; - if (m1 > 1000) { + if (m1 > 1000) + { k1 = m1 / 1000; } - cout << endl << endl; + cout << endl + << endl; cout << "Second distance: \n"; cout << "Kilometers: "; cin >> k2; cout << "Meters: "; cin >> m2; - if (m2 > 1000) { + if (m2 > 1000) + { k2 = m2 / 1000; } d1 == d2; } -int main() { +int main() +{ int choice; - do { + do + { - cout << "1. Rectangle" << endl << "2. Distance" << endl << "3. Exit" << endl << "Your choice: "; + cout << "1. Rectangle" << endl + << "2. Distance" << endl + << "3. Exit" << endl + << "Your choice: "; cin >> choice; switch (choice) { diff --git a/OOP2_Lab6/Source.cpp b/OOP2_Lab6/Source.cpp index eb9cd93..e19e8f9 100644 --- a/OOP2_Lab6/Source.cpp +++ b/OOP2_Lab6/Source.cpp @@ -2,70 +2,84 @@ #include #include // for _getch() function using namespace std; -//balance = balance * pow((1 + (ROI / 100)), year); +// balance = balance * pow((1 + (ROI / 100)), year); // Functions -void F_First_Program(); // showing first program in main +void F_First_Program(); // showing first program in main void F_Second_Program(); // showing second program in main // For the first program -class Publication { // base class for classes 'Book' and 'Tape' +class Publication +{ // base class for classes 'Book' and 'Tape' private: string title; float price; public: - void getdata() { + void getdata() + { cout << " Book title: "; cin >> title; cout << " Price 'USA $': "; cin >> price; } - void showdata() { + void showdata() + { cout << " Book title: '" << title << "'" << endl; - cout << " Price: " << price << "$"<< endl; + cout << " Price: " << price << "$" << endl; } }; -class Book : public Publication { // derived class from Publication +class Book : public Publication +{ // derived class from Publication private: int page_count; + public: - void getdata() { + void getdata() + { Publication::getdata(); // getdata() of class Publicaton cout << " Number of pages: "; cin >> page_count; } - void showdata() { + void showdata() + { Publication::showdata(); // showdata() of class Publication cout << " Number of pages: " << page_count << endl; } }; -class Tape : public Publication { // derived class from Publication +class Tape : public Publication +{ // derived class from Publication private: float playing_time; + public: - void getdata() { + void getdata() + { Publication::getdata(); cout << " Playing time of audiobook: "; cin >> playing_time; } - void showdata() { + void showdata() + { Publication::showdata(); cout << " Playing time of audionbook: " << playing_time << endl; } }; // For the second program -class ACCOUNT { +class ACCOUNT +{ private: - // customer name, account number and type of account. + // customer name, account number and type of account. string name; string account_number; string type_account; + public: - void getdata() { + void getdata() + { cout << " Name: "; cin >> name; cout << " Account Number: "; @@ -74,55 +88,68 @@ class ACCOUNT { cin >> type_account; } - void showdata() { + void showdata() + { cout << " Name: " << name << endl; cout << " Account Number: " << account_number << endl; cout << " Type of Account: " << type_account << endl; } }; -class CURR_ACCT:public ACCOUNT { +class CURR_ACCT : public ACCOUNT +{ private: int amount; int penalty = 2; int balance = 0; int withdraw; + public: - void Deposit() { + void Deposit() + { cout << " Enter your deposit balance: "; cin >> amount; - if (amount >= 100) { + if (amount >= 100) + { balance = balance + amount; cout << " Successfully added!\n\n"; } - else { + else + { cout << " Deposit cannot be less than 100$\n\n"; - system("pause"); system("cls"); + system("pause"); + system("cls"); Deposit(); } } - void Balance() { + void Balance() + { ACCOUNT::showdata(); - cout << " Balance: " << balance << endl << endl; + cout << " Balance: " << balance << endl + << endl; } - void Withdraw() { + void Withdraw() + { cout << " Enter the balance you want to withdraw: "; cin >> withdraw; } - void Penalty() { - if (balance - withdraw > 100) { + void Penalty() + { + if (balance - withdraw > 100) + { balance = balance - withdraw; cout << " Successfully done!\n\n"; - } - else if (balance - withdraw < 0) { + else if (balance - withdraw < 0) + { cout << " You do not have such balance of money in your account!\n"; cout << " Your balance is " << balance << endl; - system("pause"); system("cls"); + system("pause"); + system("cls"); Withdraw(); } else @@ -133,51 +160,63 @@ class CURR_ACCT:public ACCOUNT { } }; -class SAV_ACCT :public ACCOUNT { +class SAV_ACCT : public ACCOUNT +{ private: int amount; int balance = 0; int withdraw; float year; + public: - void Deposit() { + void Deposit() + { cout << " Enter your deposit balance: "; cin >> amount; balance = balance + amount; } - void Balance() { + void Balance() + { ACCOUNT::showdata(); - cout << " Balance: " << balance << endl << endl; + cout << " Balance: " << balance << endl + << endl; } - void Withdraw() { + void Withdraw() + { cout << " Enter the balance you want to withdraw: "; cin >> withdraw; - if (balance - withdraw > 100) { + if (balance - withdraw > 100) + { balance = balance - withdraw; cout << " Successfully done!\n\n"; } - else if (balance - withdraw < 0) { + else if (balance - withdraw < 0) + { cout << " You do not have such balance of money in your account!\n"; cout << " Your balance is " << balance << endl; - system("pause"); system("cls"); + system("pause"); + system("cls"); Withdraw(); } } - void Compute_Interest() { + void Compute_Interest() + { Balance(); cout << " ROI (Return on Investment) = 4%\n"; cout << " Enter the year of investment: "; cin >> year; - cout << " Your balance after " << year << " year(s) will be " << balance * pow( 1.04 , year) << "\n\n"; + cout << " Your balance after " << year << " year(s) will be " << balance * pow(1.04, year) << "\n\n"; } }; -int main() { - - for (int k = 0; k < 1000; k++) { +int main() +{ + + for (int k = 0; k < 1000; k++) + { system("cls"); cout << "\n\t\t 1. First program (Books)\n\t\t 2. Second program (Bank account) \n\t\t 0. Exit \n\n\t Your choice: "; switch (_getch()) @@ -205,19 +244,22 @@ int main() { } // For outputing programs -void F_First_Program() { +void F_First_Program() +{ system("cls"); Book book; Tape tape; - - for (int j = 0; j < 1000; j++) { + + for (int j = 0; j < 1000; j++) + { system("cls"); cout << " Welcome to Bookshop 'AliBooks' \n 1. Paper version \n 2. Audiobook \n 0. Go back\n Your choice: "; switch (_getch()) { // case 1 for the first program - case '1': system("cls"); + case '1': + system("cls"); book.getdata(); cout << "\n\n Your given info:\n"; book.showdata(); @@ -225,7 +267,8 @@ void F_First_Program() { break; // case 2 for the second program - case '2': system("cls"); + case '2': + system("cls"); tape.getdata(); cout << "\n\nYour given info:\n"; tape.showdata(); @@ -241,39 +284,46 @@ void F_First_Program() { cout << "\t Your choice is not available in Menu. \n\t Please try one more time.\n"; break; } // switch - } // for loop + } // for loop } -void F_Second_Program() { +void F_Second_Program() +{ system("cls"); CURR_ACCT account1; SAV_ACCT account2; - for (int i = 0; i < 1000; i++) { + for (int i = 0; i < 1000; i++) + { system("cls"); cout << "\t WELCOME TO 'AliBank' \n Chooce your account rate: \n 1. Current account\n 2. Saving account\n 0. Go back \n Your choice: "; switch (_getch()) { // current account - case '1': system("cls"); + case '1': + system("cls"); account1.getdata(); // calling the function from base class - for (int l = 0; l < 1000; l++) { + for (int l = 0; l < 1000; l++) + { system("cls"); cout << " 1. Deposit \n 2. Display the balance \n 3. Withdraw money \n 0. Go back \n Your choice: "; switch (_getch()) { // case 1 for the first program - case '1': system("cls"); + case '1': + system("cls"); account1.Deposit(); system("pause"); break; // case 2 for the second program - case '2': system("cls"); + case '2': + system("cls"); account1.Balance(); system("pause"); break; - case '3': system("cls"); + case '3': + system("cls"); account1.Withdraw(); account1.Penalty(); system("pause"); @@ -285,31 +335,37 @@ void F_Second_Program() { default: cout << "\tYour choice is not available in Menu. \n\t Please try one more time.\n"; break; - - } // switch - }// for loop + + } // switch + } // for loop // saving account - case '2': system("cls"); + case '2': + system("cls"); account2.getdata(); // calling the function from base class - for (int j = 0; j < 1000; j++) { + for (int j = 0; j < 1000; j++) + { system("cls"); cout << " 1. Deposit \n 2. Display the balance \n 3. Withdraw money \n 4. Compute Interest \n 0. Go back \n Your choice: "; switch (_getch()) { - case '1': system("cls"); + case '1': + system("cls"); account2.Deposit(); system("pause"); break; - case '2': system("cls"); + case '2': + system("cls"); account2.Balance(); system("pause"); break; - case '3': system("cls"); + case '3': + system("cls"); account2.Withdraw(); system("pause"); break; - case '4': system("cls"); + case '4': + system("cls"); account2.Compute_Interest(); system("pause"); break; @@ -330,6 +386,6 @@ void F_Second_Program() { default: cout << "\tYour choice is not available in Menu. \n\t Please try one more time.\n"; break; - } // big switch - } // big for + } // big switch + } // big for } diff --git a/OOP2_Lab7/Lab_8_Assignment.docx b/OOP2_Lab7/README.docx similarity index 100% rename from OOP2_Lab7/Lab_8_Assignment.docx rename to OOP2_Lab7/README.docx diff --git a/OOP2_Lab7/Source.cpp b/OOP2_Lab7/Source.cpp index 6953ecb..8f98917 100644 --- a/OOP2_Lab7/Source.cpp +++ b/OOP2_Lab7/Source.cpp @@ -11,12 +11,15 @@ void F_First_Program_Menu(); void F_Second_Program_Menu(); // Main BASE class for ALL classes -class Staff { +class Staff +{ protected: string code; string name; + public: - Staff() { + Staff() + { code = "0000"; name = "Unknown"; } @@ -34,111 +37,147 @@ class Staff { return name; } */ - void getdata_name() { - cout << " Enter employee name: "; cin >> name; + void getdata_name() + { + cout << " Enter employee name: "; + cin >> name; } - void getdata_code() { - cout << " Enter employee code: " ; cin >> code; + void getdata_code() + { + cout << " Enter employee code: "; + cin >> code; } - void showdata_name() { + void showdata_name() + { cout << " Name: " << name << endl; } - void showdata_code() { + void showdata_code() + { cout << " Code: " << code << endl; } }; -class Teacher : public Staff { +class Teacher : public Staff +{ protected: string subject; int publications; -public: - Teacher() { +public: + Teacher() + { subject = "Unknown"; publications = 0; } - void getdata() { + void getdata() + { Staff::getdata_code(); Staff::getdata_name(); - cout << " Enter subject: "; cin >> subject; - cout << " Enter number of publications: "; cin >> publications; - } - void showdata() { + cout << " Enter subject: "; + cin >> subject; + cout << " Enter number of publications: "; + cin >> publications; + } + void showdata() + { Staff::showdata_code(); Staff::showdata_name(); - cout << " Subject: " << subject << endl << " Publications: " << publications << endl; + cout << " Subject: " << subject << endl + << " Publications: " << publications << endl; } }; -class Officer : public Staff { +class Officer : public Staff +{ protected: float grade; + public: - Officer() { - grade = 0.0; + Officer() + { + grade = 0.0; } - void getdata() { + void getdata() + { Staff::getdata_code(); Staff::getdata_name(); - cout << " Enter the grade: "; cin >> grade; - - } - void showdata() { + cout << " Enter the grade: "; + cin >> grade; + } + void showdata() + { Staff::showdata_code(); Staff::showdata_name(); cout << " Grade: " << grade << endl; - } + } }; -class Typist : public Staff{ +class Typist : public Staff +{ protected: int speed; + public: - Typist() { + Typist() + { speed = 0; } - void getdata() { + void getdata() + { Staff::getdata_code(); Staff::getdata_name(); - cout << " Enter the speed (wprds/min): "; cin >> speed; + cout << " Enter the speed (wprds/min): "; + cin >> speed; } - void showdata() { + void showdata() + { Staff::showdata_code(); Staff::showdata_name(); cout << " Speed (words/min): " << speed << endl; } }; -class Regular_Typist : public Typist { +class Regular_Typist : public Typist +{ protected: float monthly_salary; + public: - Regular_Typist() { + Regular_Typist() + { monthly_salary = 0.0; } - void getdata() { + void getdata() + { Typist::getdata(); - cout << " Enter the monthly salary: "; cin >> monthly_salary; + cout << " Enter the monthly salary: "; + cin >> monthly_salary; } - void showdata() { + void showdata() + { Typist::showdata(); cout << " Monthly salary: " << monthly_salary << endl; } }; -class Casual_Typist : public Typist { +class Casual_Typist : public Typist +{ protected: float daily_wage; + public: - Casual_Typist() { + Casual_Typist() + { daily_wage = 0.0; } - void getdata() { + void getdata() + { Typist::getdata(); - cout << " Enter the daily wage: "; cin >> daily_wage; + cout << " Enter the daily wage: "; + cin >> daily_wage; } - void showdata() { + void showdata() + { Typist::showdata(); cout << " Daily wage: " << daily_wage << endl; } @@ -146,19 +185,24 @@ class Casual_Typist : public Typist { // Second program classes -class Person { +class Person +{ protected: string name; string code; + public: - Person() { + Person() + { name = "Unknown"; code = "Unknown"; } void getdetails() { - cout << " Enter name: "; cin >> name; - cout << " Enter code: "; cin >> code; + cout << " Enter name: "; + cin >> name; + cout << " Enter code: "; + cin >> code; } void showdetails() { @@ -167,16 +211,20 @@ class Person { } }; -class Account : virtual public Person { +class Account : virtual public Person +{ protected: float pay; + public: - Account() { + Account() + { pay = 0.0; } void getpay() { - cout << " Enter pay amount: "; cin >> pay; + cout << " Enter pay amount: "; + cin >> pay; } void showpay() { @@ -184,16 +232,20 @@ class Account : virtual public Person { } }; -class Admin : virtual public Person { +class Admin : virtual public Person +{ protected: int experience; + public: - Admin() { + Admin() + { experience = 0; } void getexpr() { - cout << " Enter experience in years: "; cin >> experience; + cout << " Enter experience in years: "; + cin >> experience; } void showexpr() { @@ -201,7 +253,8 @@ class Admin : virtual public Person { } }; -class Master : public Account, public Admin { +class Master : public Account, public Admin +{ public: void create() { @@ -219,7 +272,8 @@ class Master : public Account, public Admin { void update() { - for (int i = 0; i < 1000; i++) { + for (int i = 0; i < 1000; i++) + { system("cls"); cout << "\t U P D A T E D E T A I L S\n"; cout << "=========================================\n"; @@ -230,87 +284,110 @@ class Master : public Account, public Admin { cout << " 4. PAY\n"; cout << " 0. Back\n"; cout << " Your choice: "; - + switch (_getch()) { - case 49: cout << "\n\n Enter name: "; + case 49: + cout << "\n\n Enter name: "; cin >> name; cout << " Successfully Updated!\n"; - Sleep(0700); Sleep(0700); + Sleep(0700); + Sleep(0700); break; - case 50: cout << "\n\n Enter code: "; + case 50: + cout << "\n\n Enter code: "; cin >> code; cout << " Successfully Updated!\n"; - Sleep(0700); Sleep(0700); + Sleep(0700); + Sleep(0700); break; - case 51: cout << "\n\n Enter Expereince: "; + case 51: + cout << "\n\n Enter Expereince: "; cin >> experience; cout << " Successfully Updated!\n"; - Sleep(0700); Sleep(0700); + Sleep(0700); + Sleep(0700); break; - case 52: + case 52: cout << "\n\n Enter pay: "; cin >> pay; cout << " Successfully Updated!\n"; - Sleep(0700); Sleep(0700); + Sleep(0700); + Sleep(0700); break; case 48: i = 1000; break; default: - cout << endl << endl; + cout << endl + << endl; cout << "\t\t Your choice is not abailable in Menu. \n\t\t Please try one more time.\n"; - Sleep(0700); Sleep(0700); + Sleep(0700); + Sleep(0700); } // switch } - }// for loop + } // for loop }; -int main() { +int main() +{ - for (int k = 0; k < 1000; k++) { + for (int k = 0; k < 1000; k++) + { system("cls"); - cout << "\tM A I N M E N U\n"; + cout << "\tM A I N M E N U\n"; cout << " =====================\n"; - cout << " 1. First program\n"; + cout << " 1. First program\n"; cout << " 2. Second program\n"; cout << " 0. Exit\n"; cout << " Your choice: \n"; switch (_getch()) { - case '1': { + case '1': + { cout << "\t Educational institution database\n"; // calling the menu of first program F_First_Program_Menu(); - }break; - case '2': { - cout << "\t Second program\n"; + } + break; + case '2': + { + cout << "\t Second program\n"; // calling the menu of second program F_Second_Program_Menu(); - }break; - case '0': { + } + break; + case '0': + { return 0; break; } - default: { cout << endl << endl; + default: + { + cout << endl + << endl; cout << "\t\t Your choice is not abailable in Menu. \n\t\t Please try one more time.\n"; - Sleep(0700); Sleep(0700); - }break; + Sleep(0700); + Sleep(0700); + } + break; - } // switch - } // for loop + } // switch + } // for loop system("pause"); return 0; } -void F_First_Program_Menu() { +void F_First_Program_Menu() +{ // objects Teacher teacher; Officer officer; Regular_Typist regular; Casual_Typist casual; - for (int k = 0; k < 1000; k++) { + for (int k = 0; k < 1000; k++) + { system("cls"); cout << "\tM A I N M E N U\n"; cout << " =====================\n"; @@ -321,7 +398,8 @@ void F_First_Program_Menu() { cout << " Your choice: \n"; switch (_getch()) { - case '1': { + case '1': + { system("cls"); cout << "\t T E A C H E R\n"; cout << "===================================\n"; @@ -329,11 +407,14 @@ void F_First_Program_Menu() { cout << "\n\n\tThe given information:\n"; cout << "===================================\n"; teacher.showdata(); - cout << endl << endl; + cout << endl + << endl; system("pause"); - }break; + } + break; - case '2': { + case '2': + { system("cls"); cout << "\t O F F I C E R\n"; cout << "===================================\n"; @@ -341,19 +422,27 @@ void F_First_Program_Menu() { cout << "\n\n\tThe given information:\n"; cout << "===================================\n"; officer.showdata(); - cout << endl << endl; + cout << endl + << endl; system("pause"); - }break; + } + break; - case '3': { - for (int l = 0; l < 1000; l++) { + case '3': + { + for (int l = 0; l < 1000; l++) + { system("cls"); cout << "\t T Y P I S T\n"; cout << "===================================\n"; - cout << " 1. Regular typist\n"; cout << " 2. Casual typist\n"; cout << " 0. Back\n"; cout << " Your choice: \n"; + cout << " 1. Regular typist\n"; + cout << " 2. Casual typist\n"; + cout << " 0. Back\n"; + cout << " Your choice: \n"; switch (_getch()) { - case '1': { + case '1': + { system("cls"); cout << "\t R E G U L A R T Y P I S T\n"; cout << "===================================\n"; @@ -361,12 +450,14 @@ void F_First_Program_Menu() { cout << "\n\n\tThe given information:\n"; cout << "===================================\n"; regular.showdata(); - cout << endl << endl; + cout << endl + << endl; system("pause"); } - break; + break; - case '2': { + case '2': + { system("cls"); cout << "\t C A S U A L T Y P I S T\n"; cout << "===================================\n"; @@ -374,37 +465,55 @@ void F_First_Program_Menu() { cout << "\n\n\tThe given information:\n"; cout << "===================================\n"; casual.showdata(); - cout << endl << endl; + cout << endl + << endl; system("pause"); } - break; - case '0': { + break; + case '0': + { system("cls"); l = 1000; - }break; - default: {cout << endl << endl; + } + break; + default: + { + cout << endl + << endl; cout << "\t\t Your choice is not abailable in Menu. \n\t\t Please try one more time.\n"; - Sleep(0700); Sleep(0700); - }break; + Sleep(0700); + Sleep(0700); + } + break; } // switch - } // for - }break; - case '0': { + } // for + } + break; + case '0': + { system("cls"); k = 1000; - } break; - default: { cout << endl << endl; + } + break; + default: + { + cout << endl + << endl; cout << "\t\t Your choice is not abailable in Menu. \n\t\t Please try one more time.\n"; - Sleep(0700); Sleep(0700); - }break; - } // switch - } // for loop + Sleep(0700); + Sleep(0700); + } + break; + } // switch + } // for loop } -void F_Second_Program_Menu() { +void F_Second_Program_Menu() +{ Master master1; // object - for (int k = 0; k < 1000; k++) { + for (int k = 0; k < 1000; k++) + { system("cls"); cout << "\t M A S T E R'S D A T A B A S E\n"; cout << " ====================================\n"; @@ -420,7 +529,8 @@ void F_Second_Program_Menu() { cout << "\t C R E A T E A R E C O R D\n"; cout << "===========================================\n"; master1.create(); - cout << endl << endl; + cout << endl + << endl; system("pause"); break; @@ -429,15 +539,17 @@ void F_Second_Program_Menu() { cout << "\t D I S P L A Y D E T A I L S\n"; cout << "==========================================\n"; master1.display(); - cout << endl << endl; + cout << endl + << endl; system("pause"); break; case '3': system("cls"); master1.update(); - cout << endl << endl; - //system("pause"); + cout << endl + << endl; + // system("pause"); break; case '0': @@ -446,9 +558,9 @@ void F_Second_Program_Menu() { default: cout << "\t\t Your choice is not abailable in Menu. \n\t\t Please try one more time.\n"; - Sleep(0700); Sleep(0700); + Sleep(0700); + Sleep(0700); break; - } // switch - } // for loop + } // switch + } // for loop } - From 522ca58c69cd5a193894a56ff05f41fa51d3cf96 Mon Sep 17 00:00:00 2001 From: Rustam-Z Date: Tue, 18 Apr 2023 01:29:03 +0500 Subject: [PATCH 07/21] OOP2 Lab 8 updated --- OOP2_Lab8/Lab_8_virtual_functions.docx | Bin 16092 -> 0 bytes OOP2_Lab8/README.md | 26 ++++ OOP2_Lab8/{U1910049.cpp => main.cpp} | 201 ++++++++++++++++--------- 3 files changed, 155 insertions(+), 72 deletions(-) delete mode 100644 OOP2_Lab8/Lab_8_virtual_functions.docx create mode 100644 OOP2_Lab8/README.md rename OOP2_Lab8/{U1910049.cpp => main.cpp} (56%) diff --git a/OOP2_Lab8/Lab_8_virtual_functions.docx b/OOP2_Lab8/Lab_8_virtual_functions.docx deleted file mode 100644 index 68eaf76342fdd23cfe9b9d095d015bc13461cb72..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16092 zcmeIZWpo_LvNhUbwwTFcMvE+FW@biofCc~nM1XUmWAA7X000#d_yItJY6;oeIGNZu z=_$M0nK|b#AR0GMR*IuIx`&-aS3tsUeBtR&XpTG5*mueA# zBH(Y#)_AgsnK;tMEjezN3E>#NBKEJz7AfK@t#h3V2z)5Gy>X8h2RlE$68LENVc^#I z>QmlbJJ18)-oOCz{|IA(Se%9{;4iYkD1`%tv7Up8l_LZFuk-(f@BiYM{oAWY#w|;N z3BU)RL981Lc(X6V5>G9ziD$bKAAtoXAA`8Q8_8R0Yt4P%B)_b?d%ZU-HS}K z4OwBJF`KoJsxP)~>1N#!0VS_7pq1iph9EXpX<=hK$G{z%kj)**RFbn*6D&Z=OKkd~ zGFLljpiQ|c22TP;=}YVg?oDJ#Q(OPF8dys5_azMk3$ru+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8B zuPm-prBcf;AvO!yL{m>#3Sp&}%3Q{*JP9fkUmk*S{wSRij)9frl~|^S7Po* zBrz`p=gXp?RGF#?{F*H>uLCFjT~o_kMGT#ek@4Ws97N3$0aJWl0d8Rtuly4TR_uT- zXU!K2zu8Ya;~5i|!F9f~mUyabw;{XUcQCd`KP%DCY(2YMMfc?+qzih^pm-?rIe{THyA0$xd2PTcbZ3Fxr_|M%?e+M1`3CaK0 z-l*R-{l3%XFI^hI5|#hh_wqaZ_fpNj;PXIQ^auR+!p+}R{9Y3Cmx^laKUMs_K<0P& z@2ly5!Rvw9;SUS`T3i1e{QETiUtkZie}I3R)c;-2KgaKXX#oHR=>UM=NAtg<|2eq% zJNl6EZ|Hvyb$*Bc&PD%H;PK(lm-q)W{T=^175NL_%=#z(H)8U;hTrq?UmEV&{?zb~ a>?|(@0d!LU00H using namespace std; -double b ; double h ; // global variables for base and height +double b; +double h; // global variables for base and height // Functions for Main Menus void F_First(); void F_Second(); // Base Class -class Shape { // Abstract class +class Shape +{ // Abstract class protected: double base; double height; + public: - void get_data(double base, double height) { - this -> base = base; - this -> height = height; + void get_data(double base, double height) + { + this->base = base; + this->height = height; } void virtual display_area() = 0; // pure virtual function }; // Triangle class to calculate the area of triangle -class Triangle : public Shape { +class Triangle : public Shape +{ public: - void display_area() { + void display_area() + { cout << "Area of triangle: " << 0.5 * base * height << endl; } }; // Rectangle class to calculate the area of rectangle -class Rectanglee : public Shape { +class Rectanglee : public Shape +{ public: - void display_area() { + void display_area() + { cout << "Area of Rectangle: " << base * height << endl; } }; - -class Circle : public Shape{ +class Circle : public Shape +{ public: - void display_area() { + void display_area() + { cout << "Area of Circle: " << base * base * 3.1415 << endl; } }; - -int main() { - for (int k = 0; k < 1000; k++) { +int main() +{ + for (int k = 0; k < 1000; k++) + { system("cls"); - cout << " M A I N M E N U\n" << "-------------------------------\n" << "1. First program\n" << "2. Second program\n" << "0. Exit\n" << "-------------------------------\n" << "Your choice: \n"; + cout << " M A I N M E N U\n" + << "-------------------------------\n" + << "1. First program\n" + << "2. Second program\n" + << "0. Exit\n" + << "-------------------------------\n" + << "Your choice: \n"; switch (_getch()) { // First program - case 49: + case 49: F_First(); - break; + break; // second program - case 50: + case 50: F_Second(); - break; - default: + break; + default: cout << " Your choice is not available in Menu.\n Please, enter one more time.\n"; - Sleep(0700); Sleep(0700); - break; + Sleep(0700); + Sleep(0700); + break; case 48: return 0; break; } // Switch - } // For loop + } // For loop system("pause"); } - -void F_First(){ - for (int k = 0; k < 1000; k++) { +void F_First() +{ + for (int k = 0; k < 1000; k++) + { system("cls"); - cout << " C A L C U L A T I N G A R E A S\n" << "-------------------------------------------\n" << "1. Triangle\n" << "2. Rectangle\n" << "0. Back\n" << "Your choice: \n"; + cout << " C A L C U L A T I N G A R E A S\n" + << "-------------------------------------------\n" + << "1. Triangle\n" + << "2. Rectangle\n" + << "0. Back\n" + << "Your choice: \n"; switch (_getch()) { // Case to Exit from the program - case 48: { + case 48: + { system("cls"); main(); - }break; + } + break; // First program - case 49: { + case 49: + { system("cls"); cout << " T R I A N G L E \n"; cout << "----------------------------------\n"; - Shape* shape; // + Shape *shape; // Triangle triangle; shape = ▵ // overriding functions for triangle - cout << "Enter the base: "; cin >> b; - cout << "Entet the height: "; cin >> h; - shape->get_data(b,h); + cout << "Enter the base: "; + cin >> b; + cout << "Entet the height: "; + cin >> h; + shape->get_data(b, h); shape->display_area(); cout << "-----------------------------------\n\n"; system("pause"); - }break; + } + break; // second program - case 50: { + case 50: + { system("cls"); cout << " R E C T A N G L E \n"; cout << "----------------------------------\n"; - Shape* shape; // + Shape *shape; // Rectanglee rectangle; shape = &rectangle; - cout << "Enter the base: "; cin >> b; - cout << "Entet the height: "; cin >> h; - shape->get_data(b,h); + cout << "Enter the base: "; + cin >> b; + cout << "Entet the height: "; + cin >> h; + shape->get_data(b, h); shape->display_area(); cout << "------------------------------------\n\n"; system("pause"); - }break; + } + break; - default: { + default: + { cout << "Your choice is not available in Menu.\nPlease, enter one more time.\n"; - Sleep(0700); Sleep(0700); + Sleep(0700); + Sleep(0700); } - break; + break; } // Switch - } // For loop + } // For loop system("pause"); } - -void F_Second() { - for (int k = 0; k < 1000; k++) { +void F_Second() +{ + for (int k = 0; k < 1000; k++) + { system("cls"); - cout << " S E C O N D P R O G R A M\n" << "-------------------------------------\n" << "1. Triangle\n" << "2. Rectangle\n" << "3. Circle\n"<< "0. Back\n" << "Your choice: \n"; + cout << " S E C O N D P R O G R A M\n" + << "-------------------------------------\n" + << "1. Triangle\n" + << "2. Rectangle\n" + << "3. Circle\n" + << "0. Back\n" + << "Your choice: \n"; switch (_getch()) { // Case to Exit from the program - case 48: { + case 48: + { system("cls"); main(); - }break; + } + break; // First program - case 49: { + case 49: + { system("cls"); cout << " T R I A N G L E \n"; cout << "----------------------------------\n"; - Shape* shape; // + Shape *shape; // Triangle triangle; shape = ▵ // overriding functions for triangle - cout << "Enter the base: "; cin >> b; - cout << "Entet the height: "; cin >> h; - shape->get_data(b,h); + cout << "Enter the base: "; + cin >> b; + cout << "Entet the height: "; + cin >> h; + shape->get_data(b, h); shape->display_area(); cout << "-----------------------------------\n\n"; system("pause"); - }break; + } + break; // second program - case 50: { + case 50: + { system("cls"); cout << " R E C T A N G L E \n"; cout << "----------------------------------\n"; - Shape* shape; // + Shape *shape; // Rectanglee rectangle; shape = &rectangle; - cout << "Enter the base: "; cin >> b; - cout << "Entet the height: "; cin >> h; - shape->get_data(b,h); + cout << "Enter the base: "; + cin >> b; + cout << "Entet the height: "; + cin >> h; + shape->get_data(b, h); shape->display_area(); cout << "------------------------------------\n\n"; system("pause"); - }break; + } + break; // Third program - case 51: { + case 51: + { system("cls"); cout << " C I R C L E \n"; cout << "----------------------------------\n"; - Shape* shape; // + Shape *shape; // Circle circle1; shape = &circle1; - cout << "Enter the radius: "; cin >> b; + cout << "Enter the radius: "; + cin >> b; shape->get_data(b, 0.0); shape->display_area(); cout << "------------------------------------\n\n"; system("pause"); - }break; + } + break; - default: { + default: + { cout << "Your choice is not available in Menu.\nPlease, enter one more time.\n"; - Sleep(0700); Sleep(0700); + Sleep(0700); + Sleep(0700); } - break; + break; } // Switch - } // For loop + } // For loop system("pause"); } \ No newline at end of file From 00af6fa51a90c9b3aaa3edccfbc902bcd9b1c72f Mon Sep 17 00:00:00 2001 From: Rustam-Z Date: Tue, 18 Apr 2023 01:33:02 +0500 Subject: [PATCH 08/21] OOP2 Lab9 updated --- OOP2_Lab9/Lab_9_Text_File_Operations_.docx | Bin 13662 -> 0 bytes OOP2_Lab9/README.md | 13 ++ OOP2_Lab9/{U1910049_Lab9.cpp => main.cpp} | 153 ++++++++++++--------- 3 files changed, 102 insertions(+), 64 deletions(-) delete mode 100644 OOP2_Lab9/Lab_9_Text_File_Operations_.docx create mode 100644 OOP2_Lab9/README.md rename OOP2_Lab9/{U1910049_Lab9.cpp => main.cpp} (68%) diff --git a/OOP2_Lab9/Lab_9_Text_File_Operations_.docx b/OOP2_Lab9/Lab_9_Text_File_Operations_.docx deleted file mode 100644 index db7e01fe0d0cd91016c2173d0d051278ce910373..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13662 zcmeHugW;U(f8$H#6D!{RO+l zbGx6ebKg^!>LYc}d0RmS3>+N*34jIw03-m`I6HMS5CEVM0sue*K!a+F*x5Rp+B)m2 zc-Wgd=`y<8SQF=ggHq=JK!NlBcl;OMfri9!tA1u=vAdwxfZ3)M={D-ZfziAeQ#^}D zkZ|@7qPN2N9j{$`+$@FUEbOC0#M2vI)6gsdvukPAFer^~6sK7H$)6MSEV<}bm-iWb zO>ii86PdS!Mmhbg**iLMWH~{Y$r}6PCzWC4Gx9S6Ff{G~(X>f1YUI2_I7q@i5jdAm zdKaH%E>K$%i`N1WpqLcGf}~bY(|owdQQ+&ow^~-zOH&FnYlVxtbUB~MOLxgoOSYc% zwj#PqAVd<$me37@xwav-rIlcq7^BR$*DMUGzo)J0(9uxBEVe1Hc8t5z{%JMEj;&+r|cl!gguPRmW$U=6!x9F4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;wnr_~uGW6yT zy)4Oykv-n;lIn-h_cx;l1t0Q7Tfkp(@KdK2$eW)brYTQuhcy@=^~cbeMOcdIcPkcS zpAFtiglz-A<9~Su2q*)v^8e32B>BS<{&@d~pOq-c{9VD{sqTLOe|ygcy4zof@4o{7 z&H?@_up3B>`Mrkze=vf7)$}V3^iN%oF#kXb{T2Qz7w1oS53rj5`$B$Y=KQMS*Us#p zDsF-7o`3ZN{?cIi75-~e=1({e?!V!`v}k_S@M{a=PYqE(hS4t#iC@8g-wyo=1pwYt z0RaE8IrvQa%3I=HYeeJ(J)&7eAHM{?bKd1jU{%^VdSNz|@`=4k4fPv{R%l~(< XSCD}Knil{75BviGTBro;Z=e1j5&BzC diff --git a/OOP2_Lab9/README.md b/OOP2_Lab9/README.md new file mode 100644 index 0000000..cdd8a37 --- /dev/null +++ b/OOP2_Lab9/README.md @@ -0,0 +1,13 @@ +# Practical Lab Assignment - File Handling + +1. Create two file “one.txt†and “two.txt†which contains first 10 even numbers and first ten multiples of 5 respectively; Read the two files, find the sum of all the number of these two files and store it in the variable TOTAL. Write this value in third file named “total.txtâ€. + +2. A file contains a list of telephone numbers in the following form: + ``` + John 23456 + Ahmed 9876 + ... ... + ``` +The names contain only one word and the names and telephone numbers are separated by white spaces. Write a program to read the file and output the list in the two columns. + +3. Enter 20 numbers in a file named “Numbers.txtâ€. Ask user to enter any number and search if it exists in the file or not. diff --git a/OOP2_Lab9/U1910049_Lab9.cpp b/OOP2_Lab9/main.cpp similarity index 68% rename from OOP2_Lab9/U1910049_Lab9.cpp rename to OOP2_Lab9/main.cpp index e09dddd..7103f98 100644 --- a/OOP2_Lab9/U1910049_Lab9.cpp +++ b/OOP2_Lab9/main.cpp @@ -1,4 +1,4 @@ -// All three programs are written here +// All three programs are written here // A menu driven program which allows to use all programs at the same time // Done be Rustam Zokirov (U1910049) // Last change done in April 13, 2020 @@ -11,23 +11,25 @@ using namespace std; -int main(); +int main(); -void F_First_Program() { +void F_First_Program() +{ // creating a text file one.txt ofstream out_one; out_one.open("one.txt"); - for (int i = 2; i <= 2 * 10; i = i + 2) { + for (int i = 2; i <= 2 * 10; i = i + 2) + { out_one << i << endl; // writing to file first ten even numbers } out_one.close(); // closing the file - // creating a text file one.txt ofstream out_two; out_two.open("two.txt"); - for (int i = 5; i <= 5 * 10; i = i + 5) { + for (int i = 5; i <= 5 * 10; i = i + 5) + { out_two << i << endl; // writing to file first ten multiples of five } out_two.close(); // closing the file @@ -38,13 +40,13 @@ void F_First_Program() { in_one.open("one.txt"); // opening files in_two.open("two.txt"); - int total = 0; int num1 = 0; int num2 = 0; - while (in_one && in_two) { - total += num1 + num2; // calculating the total + while (in_one && in_two) + { + total += num1 + num2; // calculating the total in_one >> num1; in_two >> num2; } @@ -65,17 +67,23 @@ void F_First_Program() { in_total >> total; cout << "TOTAL: " << total << "\n\n"; // displaying the total in console - + in_total.close(); // closing the file after executing } +void F_Second_Program() +{ -void F_Second_Program(){ - - for (int k = 0; k < 1000; k++) { + for (int k = 0; k < 1000; k++) + { system("cls"); - cout << "C O N T A C T S\n" << "------------------\n" << "1. Add a contact\n" << "2. Contacts\n" << "0. Back\n" << "Your choice: \n"; - + cout << "C O N T A C T S\n" + << "------------------\n" + << "1. Add a contact\n" + << "2. Contacts\n" + << "0. Back\n" + << "Your choice: \n"; + ofstream out_contacts("contacts.txt", ios::app); string name, phone; @@ -83,82 +91,95 @@ void F_Second_Program(){ switch (_getch()) { // case 49 is for adding a new contact into a list - case 49: { + case 49: + { system("cls"); cout << "Adding a new contact. Input a contact info:\n\n"; - cout << "Enter the name: "; cin >> name; - cout << "Enter the phone number: "; cin >> phone; + cout << "Enter the name: "; + cin >> name; + cout << "Enter the phone number: "; + cin >> phone; // storing the data in file - out_contacts << left << setw (12) << name << "\t" << phone << "\n"; - out_contacts.close(); //closing the file + out_contacts << left << setw(12) << name << "\t" << phone << "\n"; + out_contacts.close(); // closing the file cout << "Successfully added!\n\n"; - - system("pause"); - } - break; + system("pause"); + } + break; - case 50: { + case 50: + { system("cls"); ifstream in_contacts("contacts.txt"); // getting data from the file - while (in_contacts >> name >> phone) { + while (in_contacts >> name >> phone) + { // displaying the data cout << left << setw(12) << name << "\t" << phone << endl; } in_contacts.close(); // closing the file system("pause"); } - break; + break; - - case 48: { + case 48: + { main(); // to back to main menu } - break; + break; - default: { + default: + { cout << "Your choice is not available in Menu.\nPlease try one more time\n"; system("pause"); } - break; + break; } // switch - } // for loop + } // for loop } +void F_Third_Program() +{ -void F_Third_Program(){ - - for (int k = 0; k < 1000; k++) { + for (int k = 0; k < 1000; k++) + { system("cls"); - cout << "S E A R C H I N G F O R N U M B E R \n" << "------------------------------------\n" << "1. Add numbers\n" << "2. Search for number\n" << "0. Back\n" << "Your choice: \n"; + cout << "S E A R C H I N G F O R N U M B E R \n" + << "------------------------------------\n" + << "1. Add numbers\n" + << "2. Search for number\n" + << "0. Back\n" + << "Your choice: \n"; ofstream out_numbers("numbers.txt", ios::app); // the list could be contiunied after the program execution int numbers; - + switch (_getch()) { - case 49: { + case 49: + { system("cls"); cout << "ENYER NUMBERS\n"; // inputing numbers - for (int i = 1; i <= 20; i++) { - cout << "[ " << i << " ] -> "; cin >> numbers; + for (int i = 1; i <= 20; i++) + { + cout << "[ " << i << " ] -> "; + cin >> numbers; out_numbers << numbers << endl; } - out_numbers.close(); //closing the file + out_numbers.close(); // closing the file - system("pause"); } - break; - + break; - case 50: { + case 50: + { system("cls"); ifstream in_numbers("numbers.txt"); @@ -166,10 +187,11 @@ void F_Third_Program(){ int search_number; bool isAnswerHere = 0; // for finding the searching number from available list - cout << "Enter the number to search: "; + cout << "Enter the number to search: "; cin >> search_number; - while (in_numbers) { + while (in_numbers) + { in_numbers >> numbers; if (search_number == numbers) isAnswerHere = 1; @@ -182,28 +204,35 @@ void F_Third_Program(){ system("pause"); } - break; + break; - - case 48: { + case 48: + { main(); } - break; + break; - default: { + default: + { cout << "Your choice is not available in Menu.\nPlease try one more time\n"; system("pause"); } - break; + break; } // switch - } // for loop + } // for loop } - -int main(){ - for (int k = 0; k < 1000; k++) { +int main() +{ + for (int k = 0; k < 1000; k++) + { system("cls"); - cout << "M A I N M E N U\n"<< "-------------------\n" << "1. First Program\n" << "2. Second Program\n" << "3. Third Program\n" << "Your choice: \n"; + cout << "M A I N M E N U\n" + << "-------------------\n" + << "1. First Program\n" + << "2. Second Program\n" + << "3. Third Program\n" + << "Your choice: \n"; switch (_getch()) { @@ -213,33 +242,29 @@ int main(){ system("pause"); break; - case 50: system("cls"); F_Second_Program(); system("pause"); break; - case 51: system("cls"); F_Third_Program(); system("pause"); break; - case 48: return 0; break; - default: cout << "Your choice is not available in Menu.\nPlease try one more time\n"; system("pause"); break; } // switch - } // for loop + } // for loop system("pause"); return 0; From 97271913657668dc2cef4a6f1ab19364dd556500 Mon Sep 17 00:00:00 2001 From: Rustam-Z Date: Tue, 18 Apr 2023 01:35:07 +0500 Subject: [PATCH 09/21] OOP2 Lab10 updated --- OOP2_Lab10/Lab10-_File_Operations_.docx | Bin 13371 -> 0 bytes OOP2_Lab10/Person.cpp | 240 +++++++++++++++--------- OOP2_Lab10/README.md | 10 + 3 files changed, 157 insertions(+), 93 deletions(-) delete mode 100644 OOP2_Lab10/Lab10-_File_Operations_.docx create mode 100644 OOP2_Lab10/README.md diff --git a/OOP2_Lab10/Lab10-_File_Operations_.docx b/OOP2_Lab10/Lab10-_File_Operations_.docx deleted file mode 100644 index 97c790e99bf97135252bc0134940362844d7847d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13371 zcmeHugRQUi<;Qap`|A)VUrsN6B0VZV8yO7tQxt3L_cB+!WvBEeLJo878 zNH#f<8=<1k*X}(o<`Obywy|NNnJ->5(9A(|>zURtD9vu_ z*~-qTR?phb_$3d}pP-XaGa}7vx(Vs8WA{#=v2|}=#-qa2g48>miKzGeytYK|ndA|q z8P5r?2$(QxTFya^SO&0dzplO0%2G;L zuqzS09Bj?I!#GR;C|PfBU;u@Gs3$=J?&otLMGmNaa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get-y3DDXI%RJhtlrrC9JfFmD3z4wL^l8-lOH4e7VBv@p`SrmpCM`xXa^et> z7h17=KeOW6b@|%PCZx+!I0Y~U*A9E4d-gRbX}>%26Sb;q?D?sX1Nwtn!vKvAxzg^T zIHeG2bR2DUoUMGT>(G5>AM!SRQ8^NERGjcfF~4KJu%nAVbY`o^v8OBjkpF}{v3gNJ zYt3=h+#F?3(bw7=&HZadcxkey?Lyz!P&rGIq4;se;ma2_MQ8sQ(N%HiFf}*6BrOC? zwP(j>uq=hhZICvxQKe1)vDerpu0jgJC}ZC%Z8MWgeAEM9`Uz4Iu-Nh1YEt?Z;*ZKH z#1rd$cDwb~;ZrIcYXKAesZ9jfdhJ$r5^g-ccrODd&gLyQvl{rTIPZD3FT;+dw_=g_g(n^PrK`{oPO4{1yId56)lk62w2?zjoyO%Hr3G>|ZR_fn}P1RTTbKqWKm6Ygy+n_#*Zn z@L!5NzjFAsi18N(D%?L8@b8kwui$@XRDVGMfK_q;;6L)KU*W$7!+$Z*1~#4k{^9=- z8vly_)qnqmKcf8u{||5eEB>Fh{Vy~CfWYv#<^N&n6{I16;spS}179FO2_<9x?cM(a D2*JmK diff --git a/OOP2_Lab10/Person.cpp b/OOP2_Lab10/Person.cpp index a6ed6ca..04c1a53 100644 --- a/OOP2_Lab10/Person.cpp +++ b/OOP2_Lab10/Person.cpp @@ -1,4 +1,4 @@ -// Both programs are written here +// Both programs are written here // A menu driven program which allows to use all programs at the same time // Done be Rustam Zokirov (U1910049) // Last change done in April 20, 2020 @@ -7,7 +7,7 @@ #include #include // for getch() #include // library which allows to work with files -#include // for setw() - allignment +#include // for setw() - allignment using namespace std; @@ -17,69 +17,83 @@ void F_Second_Program(); int main(); int position = 1; // global variable for numbering the list of contacts -class Person { -protected: +class Person +{ +protected: string name; string tell_number; public: - void setData(string name, string tell_number) { + void setData(string name, string tell_number) + { this->name = name; this->tell_number = tell_number; } - string getName() { + string getName() + { return name; } - string getTellNumber() { + string getTellNumber() + { return tell_number; } - void displayData() { + void displayData() + { cout << " " << position << ". " << left << setw(10) << name << "\t " << tell_number << endl; position++; } - }; - -void F_First_Program() { +void F_First_Program() +{ Person p; // creating an object of a class Person - for (int k = 0; k < 1000; k++) { + for (int k = 0; k < 1000; k++) + { system("cls"); - cout << " C O N T A C T S\n" << "------------------\n" << " 1. Add a contact\n" << " 2. Contacts\n" << " 0. Back\n" << " Your choice: \n"; - + cout << " C O N T A C T S\n" + << "------------------\n" + << " 1. Add a contact\n" + << " 2. Contacts\n" + << " 0. Back\n" + << " Your choice: \n"; + string name, tell_number; // contact info which will be inputted by user switch (_getch()) { // case 49 is for adding a new contact into a list - case 49: { + case 49: + { system("cls"); ofstream out_contacts("contacts", ios::binary | ios::app); // creating a file | binary file | append mode cout << " ADD TO CONTACT \n-----------------------------\n Enter a contact information.\n\n"; - cout << " Enter the name: "; cin >> name; - cout << " Enter the phone number: "; cin >> tell_number; + cout << " Enter the name: "; + cin >> name; + cout << " Enter the phone number: "; + cin >> tell_number; p.setData(name, tell_number); // setting inputted data // storing the data in file - out_contacts.write((char*)&p, sizeof(Person)); - out_contacts.close(); //closing the file + out_contacts.write((char *)&p, sizeof(Person)); + out_contacts.close(); // closing the file cout << "\n Successfully added!\n\n"; system("pause"); } - break; + break; - // case 50 lists all Contacts - case 50: { + // case 50 lists all Contacts + case 50: + { system("cls"); ifstream in_contacts("contacts", ios::binary); // getting data from the file @@ -87,7 +101,8 @@ void F_First_Program() { cout << " ALL CONTACTS\n---------------------------\n"; cout << " Name Phone\n---------------------------\n"; - while (in_contacts.read((char*) & p, sizeof(Person))) { + while (in_contacts.read((char *)&p, sizeof(Person))) + { // displaying the data p.displayData(); } @@ -97,36 +112,47 @@ void F_First_Program() { cout << endl; system("pause"); } - break; + break; - // to back to main menu - case 48: { - main(); + // to back to main menu + case 48: + { + main(); } - break; + break; - default: { + default: + { cout << " Your choice is not available in Menu.\n Please try one more time\n\n"; system("pause"); } - break; + break; } // switch - } // for loop + } // for loop } - -void F_Second_Program() { +void F_Second_Program() +{ Person p; // global object for each cases - for (int k = 0; k < 1000; k++) { + for (int k = 0; k < 1000; k++) + { system("cls"); - cout << " C O N T A C T S\n" << "--------------------------------------\n" << " 1. Search contact by Phone number\n" << " 2. Search contact by Name\n" << " 3. Delete a contact\n" << " 4. Add a record to a specific position\n" << " 0. Back\n" << " Your choice: \n"; + cout << " C O N T A C T S\n" + << "--------------------------------------\n" + << " 1. Search contact by Phone number\n" + << " 2. Search contact by Name\n" + << " 3. Delete a contact\n" + << " 4. Add a record to a specific position\n" + << " 0. Back\n" + << " Your choice: \n"; switch (_getch()) { // case 49 for searching the contact by Phone Number - case 49: { + case 49: + { system("cls"); cout << " SEARCH CONTACT BY PHONE NUMBER\n-------------------------------\n"; @@ -136,10 +162,11 @@ void F_Second_Program() { ifstream in_contacts_list("contacts", ios::binary); // getting data from the file cout << " List of all Contacts: \n"; cout << " Name Phone\n-------------------------------\n"; - while (in_contacts_list.read((char*)&p, sizeof(Person))) { + while (in_contacts_list.read((char *)&p, sizeof(Person))) + { // displaying the data p.displayData(); - } + } position = 1; in_contacts_list.close(); @@ -147,12 +174,14 @@ void F_Second_Program() { cin >> search_by_tell_number; ifstream in_contacts("contacts", ios::binary); // getting data from the file - //in_contacts.seekg(0, ios::end); - + // in_contacts.seekg(0, ios::end); + // cheaking the list for the specific data cout << " Found Contact(s): \n"; - while (in_contacts.read((char*)&p, sizeof(Person))) { - if (search_by_tell_number == p.getTellNumber()) { + while (in_contacts.read((char *)&p, sizeof(Person))) + { + if (search_by_tell_number == p.getTellNumber()) + { isFound = 1; p.displayData(); } @@ -163,20 +192,22 @@ void F_Second_Program() { cout << endl; system("pause"); } - break; + break; - // case 50 for searching the contact by Name - case 50: { + // case 50 for searching the contact by Name + case 50: + { system("cls"); cout << " SEARCH CONTACT BY NAME\n-----------------------------\n"; - + string search_by_name; // for searching the contact with his name bool isFound = 0; ifstream in_contacts_list("contacts", ios::binary); // getting data from the file cout << " List of all Contacts: \n"; cout << " Name Phone\n-----------------------------\n"; - while (in_contacts_list.read((char*)&p, sizeof(Person))) { + while (in_contacts_list.read((char *)&p, sizeof(Person))) + { // displaying the data p.displayData(); } @@ -187,37 +218,41 @@ void F_Second_Program() { cin >> search_by_name; ifstream in_contacts("contacts", ios::binary); // getting data from the file - //in_contacts.seekg(0, ios::end); + // in_contacts.seekg(0, ios::end); // cheaking the list for the specific data cout << " Found Contact(s): \n"; - while (in_contacts.read((char*)&p, sizeof(Person))) { - if (search_by_name == p.getName()) { + while (in_contacts.read((char *)&p, sizeof(Person))) + { + if (search_by_name == p.getName()) + { isFound = 1; p.displayData(); } } position = 1; in_contacts.close(); // closing the file - + cout << endl; system("pause"); } - break; + break; - // case 51 for deleting a contact - case 51: { + // case 51 for deleting a contact + case 51: + { system("cls"); cout << " DELETE A CONTACT\n---------------------\n"; - + string tell_number_for_deletion; ifstream in_contacts_list("contacts", ios::binary); // getting data from the file cout << " List of all Contacts: \n"; cout << " Name Phone\n---------------------\n"; - while (in_contacts_list.read((char*)&p, sizeof(Person))) { + while (in_contacts_list.read((char *)&p, sizeof(Person))) + { // displaying the data - p.displayData(); + p.displayData(); } position = 1; in_contacts_list.close(); @@ -230,11 +265,14 @@ void F_Second_Program() { cout << " Enter phone number of contact to be deleted: "; cin >> tell_number_for_deletion; - while (in_contacts.read((char*)&p, sizeof(Person))) { - if (p.getTellNumber() != tell_number_for_deletion) { - out_temp.write((char*)&p, sizeof(Person)); + while (in_contacts.read((char *)&p, sizeof(Person))) + { + if (p.getTellNumber() != tell_number_for_deletion) + { + out_temp.write((char *)&p, sizeof(Person)); } - else if (p.getTellNumber() == tell_number_for_deletion) { + else if (p.getTellNumber() == tell_number_for_deletion) + { cout << "\n Successfully deleted\n"; } } @@ -247,7 +285,8 @@ void F_Second_Program() { ifstream in_contacts_list2("contacts", ios::binary); // getting data from the file cout << "\n List of all Contacts: \n"; cout << " Name Phone\n---------------------\n"; - while (in_contacts_list2.read((char*)&p, sizeof(Person))) { + while (in_contacts_list2.read((char *)&p, sizeof(Person))) + { // displaying the data p.displayData(); } @@ -257,17 +296,19 @@ void F_Second_Program() { cout << endl; system("pause"); } - break; + break; - // case 52 for adding a contact to a specific position - case 52: { + // case 52 for adding a contact to a specific position + case 52: + { system("cls"); cout << " ADD A RECORD TO A SPECIFIC POSITION\n-------------------------------------\n"; - + ifstream in_contacts_list("contacts", ios::binary); // getting data from the file cout << " List of all Contacts: \n"; cout << " Name Phone\n-------------------------------------\n"; - while (in_contacts_list.read((char*)&p, sizeof(Person))) { + while (in_contacts_list.read((char *)&p, sizeof(Person))) + { // displaying the data p.displayData(); } @@ -284,20 +325,25 @@ void F_Second_Program() { // Adding a new contact string name, tell_number; cout << " Enter a contact information.\n"; - cout << " Enter the name: "; cin >> name; - cout << " Enter the phone number: "; cin >> tell_number; - + cout << " Enter the name: "; + cin >> name; + cout << " Enter the phone number: "; + cin >> tell_number; + ofstream out_temp("temp", ios::binary); ifstream in_contacts("contacts", ios::binary); - - while (in_contacts.read((char*)&p, sizeof(Person))) { - if (position_of_insertion != position) { - out_temp.write((char*)&p, sizeof(Person)); + + while (in_contacts.read((char *)&p, sizeof(Person))) + { + if (position_of_insertion != position) + { + out_temp.write((char *)&p, sizeof(Person)); } - else { - out_temp.write((char*)&p, sizeof(Person)); + else + { + out_temp.write((char *)&p, sizeof(Person)); p.setData(name, tell_number); - out_temp.write((char*)&p, sizeof(Person)); + out_temp.write((char *)&p, sizeof(Person)); } position++; } @@ -311,7 +357,8 @@ void F_Second_Program() { ifstream in_contacts_list2("contacts", ios::binary); // getting data from the file cout << "\n List of all Contacts: \n"; cout << " Name Phone\n-------------------------------------\n"; - while (in_contacts_list2.read((char*)&p, sizeof(Person))) { + while (in_contacts_list2.read((char *)&p, sizeof(Person))) + { // displaying the data p.displayData(); } @@ -321,29 +368,36 @@ void F_Second_Program() { cout << endl; system("pause"); } - break; + break; - // Going back to Main Menu - case 48: { - main(); + // Going back to Main Menu + case 48: + { + main(); } - break; + break; - // default case - default: { + // default case + default: + { cout << " Your choice is not available in Menu.\n Please try one more time\n\n"; system("pause"); } - break; + break; } // switch - } // for loop + } // for loop } - -int main() { - for (int k = 0; k < 1000; k++) { +int main() +{ + for (int k = 0; k < 1000; k++) + { system("cls"); - cout << " M A I N M E N U\n" << "-------------------\n" << " 1. First Program\n" << " 2. Second Program\n" << " Your choice: \n"; + cout << " M A I N M E N U\n" + << "-------------------\n" + << " 1. First Program\n" + << " 2. Second Program\n" + << " Your choice: \n"; switch (_getch()) { @@ -354,7 +408,7 @@ int main() { system("pause"); break; - // Second Program + // Second Program case 50: system("cls"); F_Second_Program(); @@ -367,7 +421,7 @@ int main() { break; } // switch - } // for loop + } // for loop system("pause"); return 0; diff --git a/OOP2_Lab10/README.md b/OOP2_Lab10/README.md new file mode 100644 index 0000000..33fe6f2 --- /dev/null +++ b/OOP2_Lab10/README.md @@ -0,0 +1,10 @@ +# Practical Lab Assignment - File Handling Operations + +Create a class Person with two private members name and telephone number + +Write a program that will create a data file containing name and telephone numbers of person. Use a class object to store each set of data. Read the file contents and display it on screen. +- Write an interactive menu driven program that will access the file created in program no. 1 and implement the following tasks: +- Determine the telephone number of the specified person. +- Determine the name if telephone number is known. +- Delete a record. +- Add a record to a specific position. From 59fdd9aa2a39f674632257c1e002bcd4eac6bb80 Mon Sep 17 00:00:00 2001 From: Rustam-Z Date: Tue, 18 Apr 2023 01:39:31 +0500 Subject: [PATCH 10/21] Updated bank management system --- Bank management system/{BMS.cpp => main.cpp} | 55 +++++++++++--------- 1 file changed, 29 insertions(+), 26 deletions(-) rename Bank management system/{BMS.cpp => main.cpp} (77%) diff --git a/Bank management system/BMS.cpp b/Bank management system/main.cpp similarity index 77% rename from Bank management system/BMS.cpp rename to Bank management system/main.cpp index 55e2c14..11920f7 100644 --- a/Bank management system/BMS.cpp +++ b/Bank management system/main.cpp @@ -1,6 +1,7 @@ #include "Header.h" -int main() { +int main() +{ srand(time(0)); ::available = rand() % 200000; MainMenu(); @@ -10,12 +11,14 @@ int main() { return 0; } -void MainMenu() { +void MainMenu() +{ system("color 9E"); char num; char choice; - do { - + do + { + bool checked = false; string checkName, checkPassword; accounts data; @@ -37,48 +40,56 @@ void MainMenu() { cout << "\n Please enter your password:"; cout << "\n "; cin >> checkPassword; - for (int i = 0;i<::increaments; i++) { - - if (oldData[i].name == checkName && oldData[i].password == checkPassword) { + for (int i = 0; i < ::increaments; i++) + { + + if (oldData[i].name == checkName && oldData[i].password == checkPassword) + { ::accountNum = i; ::balance = oldData[i].balance; ::borrow = oldData[i].borrowed; checked = true; } - } - if (checked) { - do { + if (checked) + { + do + { system("CLS"); - cout << "\n Hello "<> data.name; - cout << "\n Input yuor password without space"; + cout << "\n Input your password without space"; cout << "\n "; cin >> data.password; data.balance = 0; @@ -88,19 +99,11 @@ void MainMenu() { case 51: break; default: - cout << "\n There is no such ssection"; + cout << "\n There is no such section"; cout << "\n Please try one more time"; break; } } while (choice != 51); - - - - cout << "\n "; } - - - - From cb36e802b33f1beada8e7c1c5a5811742cc1247a Mon Sep 17 00:00:00 2001 From: Rustam-Z Date: Tue, 18 Apr 2023 01:42:17 +0500 Subject: [PATCH 11/21] Updated README --- OOP2_Lab9/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OOP2_Lab9/README.md b/OOP2_Lab9/README.md index cdd8a37..4e6c202 100644 --- a/OOP2_Lab9/README.md +++ b/OOP2_Lab9/README.md @@ -8,6 +8,6 @@ Ahmed 9876 ... ... ``` -The names contain only one word and the names and telephone numbers are separated by white spaces. Write a program to read the file and output the list in the two columns. + The names contain only one word and the names and telephone numbers are separated by white spaces. Write a program to read the file and output the list in the two columns. 3. Enter 20 numbers in a file named “Numbers.txtâ€. Ask user to enter any number and search if it exists in the file or not. From dac30b412d0683251dc892af6018abf36cc5e670 Mon Sep 17 00:00:00 2001 From: Rustam Zokirov <59933997+Rustam-Z@users.noreply.github.com> Date: Mon, 10 Jul 2023 17:02:06 +0500 Subject: [PATCH 12/21] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1077920..d430fda 100644 --- a/README.md +++ b/README.md @@ -39,11 +39,11 @@ - RU [C++ by Denis Markov](https://www.youtube.com/playlist?list=PLbmlzoDQrXVFC13GjpPrJxl6mzTiX65gs) - RU [C++ Уроки - Гоша Дударь](https://www.youtube.com/watch?v=qSHP98i9mDU&list=PL0lO_mIqDDFXNfqIL9PHQM7Wg_kOtDZsW) - To read: - - [cplusplus.com](https://cplusplus.com/doc/tutorial/) - - [w3schools.com](https://www.w3schools.com/cpp/default.asp) + - [w3schools.com](https://www.w3schools.com/cpp/default.asp) + - [javatpoint.com](https://www.javatpoint.com/cpp-tutorial) - [tutorialspoint.com](https://www.tutorialspoint.com/cplusplus/index.htm) - - [GeegsForGeeks.org](https://www.geeksforgeeks.org/c-plus-plus/): - + - [cplusplus.com](https://cplusplus.com/doc/tutorial/) + - [learncpp.com](https://www.learncpp.com/) ## Problem Solving ``` 1. C++ Program to print "Hello, World!" From f7335a88893a5b105fe38b29093ad235f05c3b50 Mon Sep 17 00:00:00 2001 From: Rustam Zokirov <59933997+Rustam-Z@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:31:28 +0500 Subject: [PATCH 13/21] Update README.md --- README.md | 252 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 165 insertions(+), 87 deletions(-) diff --git a/README.md b/README.md index d430fda..f40e8de 100644 --- a/README.md +++ b/README.md @@ -44,99 +44,177 @@ - [tutorialspoint.com](https://www.tutorialspoint.com/cplusplus/index.htm) - [cplusplus.com](https://cplusplus.com/doc/tutorial/) - [learncpp.com](https://www.learncpp.com/) + ## Problem Solving -``` -1. C++ Program to print "Hello, World!" -2. C++ Program to Print an Integer (Entered by the User) -3. C++ Program to Add Two Integers -4. C++ Program to Multiply two Floating Point Numbers -5. C++ Program to Find ASCII Value of a Character -6. C++ Program to Compute Quotient and Remainder -7. C++ Program to Find the Size of int, float, double and char -8. C++ Program to Demonstrate the Working of Keyword long -9. C++ Program to Swap Two Numbers -10. C++ Program to Check Whether a Number is Even or Odd -11. C++ Program to Check Whether a Character is Vowel or Consonant -12. C++ Program to Find the Largest Number Among Three Numbers -13. C++ Program to Find all Roots of a Quadratic equation -14. C++ Program to Check Leap Year -15. C++ Program to Check Whether a Number is Positive or Negative -16. C++ Program to Check Whether a Character is an Alphabet or not -17. C++ Program to Calculate the Sum of Natural Numbers -18. C++ Program to Find Factorial of a Number -19. C++ Program to Generate Multiplication Table -20. C++ Program to Display Fibonacci Sequence -21. C++ Program to Find GCD of two Numbers -22. C++ Program to Find LCM of two Numbers -23. C++ Program to Display Characters from A to Z Using Loop -24. C++ Program to Count Number of Digits in an Integer -25. C++ Program to Reverse a Number -26. C++ Program to Calculate the Power of a Number -27. C++ Program to Check Whether a Number is Palindrome or Not -28. C++ Program to Check Whether a Number is Prime or Not -29. C++ Program to Display Prime Numbers Between Two Intervals -30. C++ Program to Check Armstrong Number -31. C++ Program to Display Armstrong Number Between Two Intervals -32. C++ Program to Display Factors of a Number -33. C++ Programming Code To Create Pyramid and Structure -34. C++ Program to Make a Simple Calculator Using switch...case -35. C++ Program to Display Prime Numbers Between Intervals Using Function -36. C++ Program to Check Prime or Armstrong Number Using User-defined Function -37. C++ Program to Check Whether a Number can be Expressed as Sum of Two Prime Numbers -38. C++ Program to Find the Sum of Natural Numbers using Recursion -39. C++ Program to Find Factorial of a Number Using Recursion -40. C++ Program to Find G.C.D Using Recursion -41. C++ Program to Convert Binary Number to Decimal and vice-versa -42. C++ Program to Convert Octal Number to Decimal and vice-versa -43. C++ Program to Convert Binary Number to Octal and vice-versa -44. C++ Program to Reverse a Sentence Using Recursion -45. C++ Program to calculate the power using recursion -46. C++ Program to Calculate Average Using Arrays -47. C++ Program to Find Largest Element of an Array -48. C++ Program to Calculate Standard Deviation -49. C++ Program to Add Two Matrix Using Multi-dimensional Arrays -50. C++ Program to Multiply to Matrix Using Multi-dimensional Arrays -51. C++ Program to Find Transpose of a Matrix -52. C++ Program to Multiply two Matrices by Passing Matrix to a Function -53. C++ Program to Access Elements of an Array Using Pointer -54. C++ Program Swap Numbers in Cyclic Order Using Call by Reference -55. C++ Program to Find Largest Number Using Dynamic Memory Allocation -56. C++ Program to Find the Frequency of Characters in a String -57. C++ Program to count the number of vowels, consonants and so on -58. C++ Program to Remove all Characters in a String Except Alphabet -59. C++ Program to Find the Length of a String -60. C++ Program to Concatenate Two Strings -61. C++ Program to Copy String Without Using strcpy() -62. C++ Program to Sort Elements in Lexicographical Order (Dictionary Order) -63. C++ Program to Store Information(name, roll and marks) of a Student Using Structure -64. C++ Program to Add Two Distances (in inch-feet) System Using Structures -65. C++ Program to Add Two Complex Numbers by Passing Structure to a Function -66. C++ Program to Calculate Difference Between Two Time Periods -67. C++ Program to Store Information of Students Using Structure -68. C++ Program to Store Information Using Structures with Dynamically Memory Allocation -69. C++ Program to Write a Sentence to a File -70. C++ Program to Read a Line From a File and Display it -71. C++ Program to Display its own Source Code as Output -72. C++ Programming Code To Create Pyramid and Pattern -``` +1. 1. C++ Program to print "Hello, World!". +2. C++ Program to print an integer entered by the user. +3. C++ Program to Add/Subtract/Multiply/Divide Two Integers. +4. C++ Program to Add/Subtract/Multiply/Divide Two Integers entered by the user. +5. C++ Program to Add/Subtract/Multiply/Divide two Floating Point Numbers. +6. C++ Program to Compute Quotient and Remainder. +7. C++ Program to Calculate the Area and Circumference of a Circle. +8. C++ Program to Calculate the Area of a Scalene Triangle. +9. C++ Program to Calculate the Area of an Equilateral Triangle. +10. C++ Program to Calculate the Area of Right Angle Triangle. +11. C++ Program to Calculate the Area and Perimeter of a Rectangle. +12. C++ Program to Calculate the Area and Perimeter of a Square. +13. C++ program that converts between Celsius and Fahrenheit temperatures based on user input. You can also add conversions for Kelvin. +14. C++ Program to Find ASCII Value of a Character. +15. C++ Program to Find the Size of int, float, double, and char. +16. C++ Program to Check Whether a Number is Even or Odd. +17. C++ Program to Check Whether a Number is Positive or Negative. +18. C++ Program to Check Whether a Character is a Vowel or Consonant. +19. C++ Program to find the Largest Number Among Three Numbers. +20. C++ Program to find if the entered year is a leap year or not. +21. C++ program that allows the user to perform basic arithmetic operations (addition, subtraction, multiplication, division) on two numbers. You can also add error handling for division by zero. +22. BMI Calculator: Create a program that calculates a person's Body Mass Index (BMI) based on their weight and height input. Provide a classification of whether the person is underweight, normal weight, overweight, or obese. Use cin, cout. + Formula: bmi = weight / (height * height) + + | bmi < 18.5 | Underweight | + | --- | --- | + | bmi < 24.9 | Normal Weight | + | bmi < 29.9 | Overweight | + | Otherwise | Obese | +23. Nested condition + - Get the `age` and `membership_status` as user input. `membership_status` can be only `Y` or `y`. So, if the age is bigger or equal to 18 and if the user is a member of our shop, we provide a 10% discount, else we charge fully. + - Write a simple chatbot program using nested conditions. +24. Switch + - Program to use `switch` statement. Display Monday to Sunday. + - Program to display arithmetic operator using switch case +25. C++ Program to Swap Two Numbers +26. C++ Program to Find all Roots of a Quadratic equation +27. C++ Program to Check Whether a Character is an Alphabet or not +28. C++ Program to Calculate the Sum of Natural Numbers +29. Program to calculate the sum of numbers from m to n. + - Hint: Input two numbers m and n. Find the sum of all numbers from m to n. For example m=3 and n=8 then sum will be 3 + 4 + 5 + 6 + 7 + 8 = 33. +30. Program to print Fibonacci series up to 100. + - Hint: Fibonacci Series is 1, 1, 2, 3, 5, 8, 13, 21,... +31. C++ program to print Even numbers up to 100 +32. C++ program to Generate a Multiplication Table. +33. C++ program to Calculate the Power of a Number +34. **Factorial Calculator:** Write a program that calculates the factorial of a given positive integer. Factorial of a number is the product of all positive integers from 1 to that number. +35. **Prime Number Checker:** Create a program that determines whether a given number is prime or not. A prime number is a positive integer greater than 1 that has no positive divisors other than 1 and itself. +36. C++ Program to Display Prime Numbers Between Two Intervals. +37. Program to print stars Sequence1. + + ```cpp + * + ** + *** + **** + ***** + ``` + +38. Program to print stars Sequence2. + + ```cpp + * + ** + *** + **** + ***** + ``` + +39. Program to print star Sequences3. + + ```cpp + * + *** + ***** + ``` + +40. Program to print Sequence4. + + ```cpp + * + ** + *** + **** + ***** + ***** + **** + *** + ** + * + ``` +41. Sum of Numbers: Write a program that prompts the user for an integer n and then calculates the sum of all integers from 1 to n using a for or while loop. Also, calculate the sum of all even and odd numbers. +42. Guess the Number Game: Create a simple game where the program picks a number (int number = 42;), and the user has to guess the number, receiving hints (higher or lower). Use a while loop to handle the game process. If the user guesses the number, stop the program and display the number of attempts made by the user. +43. User Menu Interaction: Create a text menu that provides the user with several options (e.g., "1. Perform action 1", "2. Perform action 2," and so on). Use a while loop to continue the program until the user chooses the exit option (system("exit");). +44. Program to display the series and find the sum of 1 + 3 + 5 + ... + n. +45. Program to display the sum of the series 1 + 1/2 + 1/3 + ... + 1/n. +46. Write a program to add the first seven terms of the following series using a for loop: 1/1! + 2/2! + 3/3! + ... +47. C++ Program to Find GCD of Two Numbers +48. C++ Program to Find LCM of Two Numbers +49. C++ Program to Display Characters from A to Z Using Loop +50. C++ Program to Count Number of Digits in an Integer +51. C++ Program to Reverse a Number +52. C++ Program to Calculate the Power of a Number +54. C++ Program to Check Whether a Number is Palindrome or Not +54. C++ Program to Check Armstrong Number +55. C++ Program to Display Armstrong Number Between Two Intervals +56. C++ Program to Convert Binary Number to Decimal and vice-versa +57. C++ Program to Convert Octal Number to Decimal and vice-versa +58. C++ Program to Convert Binary Numbers to Octal and vice-versa +59. C++ Program to Reverse a Sentence Using Recursion +50. C++ Program to calculate the power using recursion +51. Write a program to calculate the area of a circle using functions. +52. Simple Calculator Program: ****Create a program that acts as a basic calculator, allowing users to perform addition, subtraction, multiplication, and division. Use functions for each operation. +53. Write a program to swap two values using functions. +54. Write a program to convert time to minutes using functions. (input 3 variables namely hours, minutes, and seconds. Convert everything into minutes.) +55. Write a program to sum the Fibonacci series up to n (input n). 1, 1, 2, 3, 5, 8, 13, … +56. Function Overloading and Default Arguments: Build a program for calculating the area and perimeter of various geometric shapes (circle, rectangle, triangle, etc.) using separate functions for each shape. Overload functions for shapes with different parameters. +57. Employee Payroll: ****Design a program that calculates employee payroll, including basic salary, overtime pay, and deductions. Use functions to compute each component. +58. **Student Grade Tracker:** Create a program that allows teachers to enter student grades and calculate averages, find the highest and lowest scores, and display statistics. +59. **Library Management System:** Create a simple library management system where you can store and manage a list of books using arrays. Ask the user to enter the book names. You should have the function display the book names. Create a `void` function. You should have the functionality to update the book name. To do this create another function. And pass index as argument. +60. C++ Program to merge two arrays +61. C++ Program to search the value in the array and return its index, if the value is not found print “Item not foundâ€. +62. ****Number Sorting:** Write a program that reads a list of numbers into an array and sorts them in ascending or descending order using a sorting algorithm. +63. **Matrix Operations:** Write a program for basic matrix operations, such as addition, subtraction, multiplication, and transposition. +64. In a small company, there are five salesmen. Each salesman is supposed to sell three products. Write a program using a 2D array to print **(Input from user)**. The total sales by each salesman and Total sales of each item. +65. C++ Program to Calculate Standard Deviation +66. C++ Program to Multiply two Matrices by Passing Matrix to a Function +67. C++ Program to Access Elements of an Array Using Pointer +68. Write a program that declares an integer variable, assigns a value to it, and then uses a pointer to print the value. +69. Swap the values of two integer variables using pointers. +70. Write a program that finds the sum of elements in an integer array using a pointer. +71. Create a dynamic integer array and prompt the user for the array size. Fill the array with user input values. +72. C++ Program Swap Numbers in Cyclic Order Using Call by Reference +62. C++ Program to Find Largest Number Using Dynamic Memory Allocation +63. C++ Program to Find the Frequency of Characters in a String +64. C++ Program to count the number of vowels, consonants, and so on +65. C++ Program to Remove all Characters in a String Except Alphabet +66. C++ Program to Find the Length of a String +67. C++ Program to Concatenate Two Strings +68. C++ Program to Copy String Without Using `strcpy()` +69. C++ Program to Sort Elements in Lexicographical Order (Dictionary Order) +70. C++ Program to Store Information(name, roll, and marks) of a Student Using Structure +71. C++ Program to Add Two Distances (in inch-feet) System Using Structures +72. C++ Program to Add Two Complex Numbers by Passing Structure to a Function +73. C++ Program to Calculate Difference Between Two Time Periods +74. C++ Program to Store Information of Students Using Structure +75. C++ Program to Store Information Using Structures with Dynamically Memory Allocation +76. C++ Program to Write a Sentence to a File +77. C++ Program to Read a Line From a File and Display it +78. C++ Program to Display its own Source Code as Output +79. C++ Programming Code To Create Pyramid and Pattern + ## Projects Ideas -``` 1. Banking system with all banking facilities like – deposit, withdrawal, foreign exchange to any currency, availability of loans for purchasing vehicles, apartments, houses, setting up business, education loan, management of ATMs and all other features. -2. Airline flight reservation system (online booking of tickets in different flights for different destinations all over the world, cancellation of tickets, clear display of cancellation amount, refund of amount after cancellation, showing availability of all flights, showing flights timings for all 7 days of a week, seats availability, seat selection for travelers by giving the complete layout of the seating arrangement inside the flights, food availability/non-availability inside the flights, change of travel dates and amount charged.) +2. Airline flight reservation system (online booking of tickets on different flights for different destinations all over the world, cancellation of tickets, clear display of cancellation amount, refund of amount after cancellation, showing availability of all flights, showing flights timings for all 7 days of a week, seats availability, seat selection for travelers by giving the complete layout of the seating arrangement inside the flights, food availability/non-availability inside the flights, change of travel dates and amount charged.) 3. Taxi/cab sharing -4. University education portal (providing all information about under-graduate, post graduate and doctoral programs offered, facilities available, location & map, fee structure in all the universities) -5. Online exam management system (with total security of identifying the students during exam, monitoring the students’ activities during the exam, selection of different questions for each student, development of a large question bank containing hundreds of questions in each subject considering all courses taught at the university) +4. University education portal (providing all information about undergraduate, postgraduate and doctoral programs offered, facilities available, location & map, and fee structure in all the universities) +5. Online exam management system (with total security of identifying the students during exam, monitoring the student's activities during the exam, selection of different questions for each student, development of a large question bank containing hundreds of questions in each subject considering all courses taught at the university) 6. Library management system 7. E-content management system 8. Plagiarism checker & file management system 9. Hotel reservation & management portal 10. Restaurant management -11. Healthcare consulting system (doctors with different specializations for consultation, hospitals with all facilities for treating different diseases & abroad - one stop portal for all consultations and treatments) -12. Electronic health record management system with builtin security +11. Healthcare consulting system (doctors with different specializations for consultation, hospitals with all facilities for treating different diseases & abroad - one-stop portal for all consultations and treatments) +12. Electronic health record management system with built-in security 13. Pharmacy - medical store management 14. Blood bank system -15. Online shopping and delivery system (like amazon) +15. Online shopping and delivery system (like Amazon) 16. Online car shopping 17. Tourism portal 18. World tourism portal @@ -152,20 +230,20 @@ 28. City traffic monitoring and control system 29. Police traffic violation reporting & control system 30. The marriage function hall booking & food/music arrangement system -31. Any vehicle (car, bus, heavy vehicles for parties, functions, family picnics, long distance travel) booking portal -32. Teacher assisted program writing environment for students +31. Any vehicle (car, bus, heavy vehicles for parties, functions, family picnics, long-distance travel) booking portal +32. Teacher-assisted program writing environment for students 33. Doctors reservation system for patients 34. Bus reservation & tracking system 35. Railway booking and train tracking system 36. Warehouse management system -37. Courier tracking, cargo and freight transportation +37. Courier tracking, cargo, and freight transportation 38. Online code testing system 39. Online quiz system (with total security of identifying the students during the quiz, monitoring the students’ activities during the quiz, selection of different quiz questions for each student, development of a large quiz question bank containing hundreds of quiz questions in each subject considering all courses taught at the university) 40. Land/house/apartment rental & purchase portal 41. Housecleaning, plumbing, electricity service & maintenance system 42. Human organ transplantation management system 43. Covid-19 tracking, testing, treatment & hospital management system -44. Cryptocurrency trading portal (exchange) allowing trading of all crypto coins using security, confidentiality and authentication +44. Cryptocurrency trading portal (exchange) allowing trading of all crypto coins using security, confidentiality, and authentication 45. Parking management system -46. Online food delivery system (linked to all restaurants in different districts in different regions in some country) -``` +46. Online food delivery system (linked to all restaurants in different districts in different regions in some countries) + From 884d2a5038ac8faf94a94aeb97c07fd9b5a4383a Mon Sep 17 00:00:00 2001 From: Rustam Zokirov <59933997+Rustam-Z@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:40:52 +0500 Subject: [PATCH 14/21] Update README.md --- README.md | 162 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 114 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index f40e8de..eb06fef 100644 --- a/README.md +++ b/README.md @@ -80,18 +80,18 @@ - Write a simple chatbot program using nested conditions. 24. Switch - Program to use `switch` statement. Display Monday to Sunday. - - Program to display arithmetic operator using switch case -25. C++ Program to Swap Two Numbers -26. C++ Program to Find all Roots of a Quadratic equation -27. C++ Program to Check Whether a Character is an Alphabet or not -28. C++ Program to Calculate the Sum of Natural Numbers + - Program to display arithmetic operator using switch case. +25. C++ Program to Swap Two Numbers. +26. C++ Program to Find all Roots of a Quadratic equation. +27. C++ Program to Check Whether a Character is an Alphabet or not. +28. C++ Program to Calculate the Sum of Natural Numbers. 29. Program to calculate the sum of numbers from m to n. - Hint: Input two numbers m and n. Find the sum of all numbers from m to n. For example m=3 and n=8 then sum will be 3 + 4 + 5 + 6 + 7 + 8 = 33. 30. Program to print Fibonacci series up to 100. - - Hint: Fibonacci Series is 1, 1, 2, 3, 5, 8, 13, 21,... -31. C++ program to print Even numbers up to 100 + - Hint: Fibonacci Series is 1, 1, 2, 3, 5, 8, 13, 21, ... +31. C++ program to print Even numbers up to 100. 32. C++ program to Generate a Multiplication Table. -33. C++ program to Calculate the Power of a Number +33. C++ program to Calculate the Power of a Number. 34. **Factorial Calculator:** Write a program that calculates the factorial of a given positive integer. Factorial of a number is the product of all positive integers from 1 to that number. 35. **Prime Number Checker:** Create a program that determines whether a given number is prime or not. A prime number is a positive integer greater than 1 that has no positive divisors other than 1 and itself. 36. C++ Program to Display Prime Numbers Between Two Intervals. @@ -143,20 +143,20 @@ 44. Program to display the series and find the sum of 1 + 3 + 5 + ... + n. 45. Program to display the sum of the series 1 + 1/2 + 1/3 + ... + 1/n. 46. Write a program to add the first seven terms of the following series using a for loop: 1/1! + 2/2! + 3/3! + ... -47. C++ Program to Find GCD of Two Numbers -48. C++ Program to Find LCM of Two Numbers -49. C++ Program to Display Characters from A to Z Using Loop -50. C++ Program to Count Number of Digits in an Integer -51. C++ Program to Reverse a Number -52. C++ Program to Calculate the Power of a Number -54. C++ Program to Check Whether a Number is Palindrome or Not -54. C++ Program to Check Armstrong Number -55. C++ Program to Display Armstrong Number Between Two Intervals -56. C++ Program to Convert Binary Number to Decimal and vice-versa -57. C++ Program to Convert Octal Number to Decimal and vice-versa -58. C++ Program to Convert Binary Numbers to Octal and vice-versa -59. C++ Program to Reverse a Sentence Using Recursion -50. C++ Program to calculate the power using recursion +47. C++ Program to Find GCD of Two Numbers. +48. C++ Program to Find LCM of Two Numbers. +49. C++ Program to Display Characters from A to Z Using Loop. +50. C++ Program to Count Number of Digits in an Integer. +51. C++ Program to Reverse a Number. +52. C++ Program to Calculate the Power of a Number. +54. C++ Program to Check Whether a Number is Palindrome or Not. +54. C++ Program to Check Armstrong Number. +55. C++ Program to Display Armstrong Number Between Two Intervals. +56. C++ Program to Convert Binary Number to Decimal and vice-versa. +57. C++ Program to Convert Octal Number to Decimal and vice-versa. +58. C++ Program to Convert Binary Numbers to Octal and vice-versa. +59. C++ Program to Reverse a Sentence Using Recursion. +50. C++ Program to calculate the power using recursion. 51. Write a program to calculate the area of a circle using functions. 52. Simple Calculator Program: ****Create a program that acts as a basic calculator, allowing users to perform addition, subtraction, multiplication, and division. Use functions for each operation. 53. Write a program to swap two values using functions. @@ -166,44 +166,110 @@ 57. Employee Payroll: ****Design a program that calculates employee payroll, including basic salary, overtime pay, and deductions. Use functions to compute each component. 58. **Student Grade Tracker:** Create a program that allows teachers to enter student grades and calculate averages, find the highest and lowest scores, and display statistics. 59. **Library Management System:** Create a simple library management system where you can store and manage a list of books using arrays. Ask the user to enter the book names. You should have the function display the book names. Create a `void` function. You should have the functionality to update the book name. To do this create another function. And pass index as argument. -60. C++ Program to merge two arrays +60. C++ Program to merge two arrays. 61. C++ Program to search the value in the array and return its index, if the value is not found print “Item not foundâ€. 62. ****Number Sorting:** Write a program that reads a list of numbers into an array and sorts them in ascending or descending order using a sorting algorithm. 63. **Matrix Operations:** Write a program for basic matrix operations, such as addition, subtraction, multiplication, and transposition. 64. In a small company, there are five salesmen. Each salesman is supposed to sell three products. Write a program using a 2D array to print **(Input from user)**. The total sales by each salesman and Total sales of each item. -65. C++ Program to Calculate Standard Deviation -66. C++ Program to Multiply two Matrices by Passing Matrix to a Function -67. C++ Program to Access Elements of an Array Using Pointer +65. C++ Program to Calculate Standard Deviation. +66. C++ Program to Multiply Two Matrices by Passing the Matrix to a Function. +67. C++ Program to Access Elements of an Array Using Pointer. 68. Write a program that declares an integer variable, assigns a value to it, and then uses a pointer to print the value. 69. Swap the values of two integer variables using pointers. 70. Write a program that finds the sum of elements in an integer array using a pointer. 71. Create a dynamic integer array and prompt the user for the array size. Fill the array with user input values. -72. C++ Program Swap Numbers in Cyclic Order Using Call by Reference -62. C++ Program to Find Largest Number Using Dynamic Memory Allocation -63. C++ Program to Find the Frequency of Characters in a String -64. C++ Program to count the number of vowels, consonants, and so on -65. C++ Program to Remove all Characters in a String Except Alphabet -66. C++ Program to Find the Length of a String -67. C++ Program to Concatenate Two Strings -68. C++ Program to Copy String Without Using `strcpy()` -69. C++ Program to Sort Elements in Lexicographical Order (Dictionary Order) -70. C++ Program to Store Information(name, roll, and marks) of a Student Using Structure -71. C++ Program to Add Two Distances (in inch-feet) System Using Structures -72. C++ Program to Add Two Complex Numbers by Passing Structure to a Function -73. C++ Program to Calculate Difference Between Two Time Periods -74. C++ Program to Store Information of Students Using Structure -75. C++ Program to Store Information Using Structures with Dynamically Memory Allocation -76. C++ Program to Write a Sentence to a File -77. C++ Program to Read a Line From a File and Display it -78. C++ Program to Display its own Source Code as Output -79. C++ Programming Code To Create Pyramid and Pattern +72. C++ Program Swap Numbers in Cyclic Order Using Call by Reference. +62. C++ Program to Find Largest Number Using Dynamic Memory Allocation. +63. C++ Program to Find the Frequency of Characters in a String. +64. C++ Program to count the number of vowels, consonants, and so on. +65. C++ Program to Remove all Characters in a String Except Alphabet. +66. C++ Program to Find the Length of a String. +67. C++ Program to Concatenate Two Strings. +68. C++ Program to Copy String Without Using `strcpy()`. +69. C++ Program to Sort Elements in Lexicographical Order (Dictionary Order). +70. C++ Program to Store Information(name, roll, and marks) of a Student Using Structure. +71. C++ Program to Add Two Distances (in inch-feet) System Using Structures. +72. C++ Program to Add Two Complex Numbers by Passing Structure to a Function. +73. C++ Program to Calculate Difference Between Two Time Periods. +74. C++ Program to Store Information of Students Using Structure. +75. C++ Program to Store Information Using Structures with Dynamically Memory Allocation. +76. C++ Program to Write a Sentence to a File. +77. C++ Program to Read a Line From a File and Display it. +78. C++ Program to Display its own Source Code as Output. +79. C++ Programming Code To Create Pyramid and Pattern. +80. [OOP] Define a class called **`Car`** with attributes like **`model`**, and **`year`**. Create an object of the **`Car`** class and set its attributes. Then, print out the car's details. +81. [OOP] Redo the same program above using `this->` +82. [OOP] Temperature converter. Write a class called **`TemperatureConverter`** with methods to convert between Celsius and Fahrenheit. From Celsius Kelvin. to Create an object of this class, and use it to convert a temperature from one scale to another. +83. [OOP] Simple calculator. Create a class called **`Calculator`** that can perform basic arithmetic operations (addition, subtraction, multiplication, division). Create an object of the class and use it to perform some calculations. +84. [OOP] Create a class **`Rectangle`** with attributes for its length and width. Implement a method to calculate the area of the rectangle. Create an object and compute the area for a specific rectangle. +85. [OOP] Simple To-Do List: Design a basic to-do list application where users can add, remove, and display tasks. You can save tasks in an array. +86. [OOP] Define a class student with the following specifications. + ```cpp + Student + --- + + Student_ID: String + + Student_Name: String + + OOP2_Score: double + + Maths_Score: double + + English_Score: double + + Total_Score: double + --- + + ctotal(): Function to calculate eng + math + OOP-2 with double return type. + + Takedata(): Function to accept values for student id, Student Name, eng, OOP-2, maths and invoke ctotal() to calculate total. + + Showdata(): Function to display all the data members on the screen. + ``` +87. [OOP] The class Person with private attributes name(string) and age(int). + + The class contains three functions. + + - One with no parameter (for initializing default value). + - With two parameters (one parameter with default value). + - Function to display the data. + + ```cpp + Person + --- + + Name: String + + Age: int + --- + + Display() + + Person() + + Person(a: int) + ``` +88. [OOP] Inheritance: https://github.com/Rustam-Z/cpp-programming/tree/main/OOP2_Lab6 +89. [OOP] Encapsulation: https://github.com/Rustam-Z/cpp-programming/tree/main/OOP2_Lab7 + + Write a C++ menu-driven program to get employee details, display employee details, and display monthly salary details of employees.**** + ```cpp + Employee + --- + - Employee_ID: String + - Employee_Name: String + - No_of_Hours_Work: int + - Rate_per_Hour: int + --- + + setEmployee_ID(String) + + getEmployee_ID(): String + + setEmployee_Name(String) + + getEmployee_Name(): String + + setNo_of_Hours_Work(int) + + getNo_of_Hours_Work(): int + + setRate_per_Hour(int) + + getRate_per_Hour(): int + + getTotal_Monthly_Salary(): double + ``` +91. [OOP] Polymorphism: https://github.com/Rustam-Z/cpp-programming/tree/main/OOP2_Lab8 + +**More questions can be found in the LAB folders above.** + + ## Projects Ideas -1. Banking system with all banking facilities like – deposit, withdrawal, foreign exchange to any currency, availability of loans for purchasing vehicles, apartments, houses, setting up business, education loan, management of ATMs and all other features. -2. Airline flight reservation system (online booking of tickets on different flights for different destinations all over the world, cancellation of tickets, clear display of cancellation amount, refund of amount after cancellation, showing availability of all flights, showing flights timings for all 7 days of a week, seats availability, seat selection for travelers by giving the complete layout of the seating arrangement inside the flights, food availability/non-availability inside the flights, change of travel dates and amount charged.) +1. Banking system with all banking facilities like – deposit, withdrawal, foreign exchange to any currency, availability of loans for purchasing vehicles, apartments, houses, setting up business, education loan, management of ATMs, and all other features. +2. Airline flight reservation system (online booking of tickets on different flights for different destinations all over the world, cancellation of tickets, clear display of cancellation amount, refund of the amount after cancellation, showing availability of all flights, showing flights timings for all 7 days of a week, seats availability, seat selection for travelers by giving the complete layout of the seating arrangement inside the flights, food availability/non-availability inside the flights, change of travel dates and the amount charged.) 3. Taxi/cab sharing -4. University education portal (providing all information about undergraduate, postgraduate and doctoral programs offered, facilities available, location & map, and fee structure in all the universities) +4. University education portal (providing all information about undergraduate, postgraduate, and doctoral programs offered, facilities available, location & map, and fee structure in all the universities) 5. Online exam management system (with total security of identifying the students during exam, monitoring the student's activities during the exam, selection of different questions for each student, development of a large question bank containing hundreds of questions in each subject considering all courses taught at the university) 6. Library management system 7. E-content management system From 78cbe1a169446431112b2a15a39ef04953a5c7eb Mon Sep 17 00:00:00 2001 From: Rustam Zokirov <59933997+Rustam-Z@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:41:41 +0500 Subject: [PATCH 15/21] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eb06fef..10b48e7 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ 8. Learn to ask GOOD questions to others: - G: Give context on what you are trying to do, clearly describing the problem. - O: Outline the things you have already tried to fix the issue. - - O: Offer your best guess as to what the problem might be. It helps the person who is helping you not only know what you're thinking, but also know that you've thought of something yourself. + - O: Offer your best guess as to what the problem might be. It helps the person who is helping you not only know what you're thinking but also know that you've thought of something yourself. - D: Demonstrate what's going on. Include the code, the tracing error message, and an explanation of the steps you followed that resulted in the error. That way, the person helping doesn't have to try to recreate the problem. ``` @@ -46,7 +46,7 @@ - [learncpp.com](https://www.learncpp.com/) ## Problem Solving -1. 1. C++ Program to print "Hello, World!". +1. C++ Program to print "Hello, World!". 2. C++ Program to print an integer entered by the user. 3. C++ Program to Add/Subtract/Multiply/Divide Two Integers. 4. C++ Program to Add/Subtract/Multiply/Divide Two Integers entered by the user. @@ -216,7 +216,7 @@ + Total_Score: double --- + ctotal(): Function to calculate eng + math + OOP-2 with double return type. - + Takedata(): Function to accept values for student id, Student Name, eng, OOP-2, maths and invoke ctotal() to calculate total. + + Takedata(): Function to accept values for student ID, Student Name, eng, OOP-2, maths and invoke ctotal() to calculate total. + Showdata(): Function to display all the data members on the screen. ``` 87. [OOP] The class Person with private attributes name(string) and age(int). From 537ac763b171a951623f98f7e661e32aa1bb1451 Mon Sep 17 00:00:00 2001 From: Rustam Zokirov Date: Sat, 11 May 2024 16:34:29 +0500 Subject: [PATCH 16/21] Update README.md --- README.md | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 10b48e7..d91988a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ - [Problem Solving](#problem-solving) - [Projects Ideas](#projects-ideas) - ## Keep These Tips in Mind While Learning Programming ``` 1. Learn and code every day, consistency is important. @@ -16,7 +15,7 @@ 3. Learn to debug your code - look at the code line by line to see how it works. 4. Surround yourself with other people who are learning. Teach each other. 5. Learn taking notes. -6. Build something, anything. For example, simple calculator, or program to save and read data from TXT files. +6. Build something, anything you would enjoy while coding. Be unique. 7. Focus on 1 thing! Take small steps, but every day, consistency is very important again. 8. Learn to ask GOOD questions to others: - G: Give context on what you are trying to do, clearly describing the problem. @@ -25,17 +24,18 @@ - D: Demonstrate what's going on. Include the code, the tracing error message, and an explanation of the steps you followed that resulted in the error. That way, the person helping doesn't have to try to recreate the problem. ``` - ## Computer Science Basics - [Harvard CS50](https://youtube.com/playlist?list=PLhQjrBD2T383f9scHRNYJkior2VvYjpSL) - Scratch, C, Arrays, Algorithms, Memory, Data structures, Python, SQL, HTML, CSS, JavaScript, Flask -- `Optional` [Crash Course Computer Science](https://www.youtube.com/playlist?list=PL8dPuuaLjXtNlUrzyH5r6jN9ulIgZBpdo) +- [Crash Course Computer Science](https://www.youtube.com/playlist?list=PL8dPuuaLjXtNlUrzyH5r6jN9ulIgZBpdo) - [Computer Science for Everyone](https://www.youtube.com/playlist?list=PLrC-HcVNfULbGKkhJSgfqvqmaFAZvfHes) +- [Book "Everything You Need to Ace Computer Science ..."](https://www.amazon.com/Everything-Computer-Science-Coding-Notebook/dp/1523502770) + ## Learning Resources -- EN [C++ for beginners — CodeBeauty](https://www.youtube.com/playlist?list=PL43pGnjiVwgQHLPnuH9ch-LhZdwckM8Tq) -- EN [C++ Programming Tutorial — thenewboston](https://www.youtube.com/playlist?list=PLAE85DE8440AA6B83) -- EN [C++ by The Cherno](https://www.youtube.com/watch?v=18c3MTX0PK0&list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb) -- EN [C++ by freeCodeCamp.org](https://www.youtube.com/watch?v=vLnPwxZdW4Y) +- [C++ for beginners — CodeBeauty](https://www.youtube.com/playlist?list=PL43pGnjiVwgQHLPnuH9ch-LhZdwckM8Tq) +- [C++ Programming Tutorial — thenewboston](https://www.youtube.com/playlist?list=PLAE85DE8440AA6B83) +- [C++ by The Cherno](https://www.youtube.com/watch?v=18c3MTX0PK0&list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb) +- [C++ by freeCodeCamp.org](https://www.youtube.com/watch?v=vLnPwxZdW4Y) - RU [C++ by Denis Markov](https://www.youtube.com/playlist?list=PLbmlzoDQrXVFC13GjpPrJxl6mzTiX65gs) - RU [C++ Уроки - Гоша Дударь](https://www.youtube.com/watch?v=qSHP98i9mDU&list=PL0lO_mIqDDFXNfqIL9PHQM7Wg_kOtDZsW) - To read: @@ -78,6 +78,17 @@ 23. Nested condition - Get the `age` and `membership_status` as user input. `membership_status` can be only `Y` or `y`. So, if the age is bigger or equal to 18 and if the user is a member of our shop, we provide a 10% discount, else we charge fully. - Write a simple chatbot program using nested conditions. +24. Write a program to calculate taxes, with the following conditions: + - If the salary is less than $1500, then there are no taxes + - If the salary is from 1501 to 3000 $ (1501<= salary < 3000) then the tax should be 10% + - If the salary is from 3001 to 5000 $ (3001 <= salary < 5000) then the tax should be 20% + - If the salary is above $5000, then the tax should be 30% + + **Hint: Formula for finding tax (salary * percentage) / 100** + + You must output: + - Tax percentage + - Salary after taxes 24. Switch - Program to use `switch` statement. Display Monday to Sunday. - Program to display arithmetic operator using switch case. @@ -268,7 +279,7 @@ ## Projects Ideas 1. Banking system with all banking facilities like – deposit, withdrawal, foreign exchange to any currency, availability of loans for purchasing vehicles, apartments, houses, setting up business, education loan, management of ATMs, and all other features. 2. Airline flight reservation system (online booking of tickets on different flights for different destinations all over the world, cancellation of tickets, clear display of cancellation amount, refund of the amount after cancellation, showing availability of all flights, showing flights timings for all 7 days of a week, seats availability, seat selection for travelers by giving the complete layout of the seating arrangement inside the flights, food availability/non-availability inside the flights, change of travel dates and the amount charged.) -3. Taxi/cab sharing +3. Taxi/cab sharing app 4. University education portal (providing all information about undergraduate, postgraduate, and doctoral programs offered, facilities available, location & map, and fee structure in all the universities) 5. Online exam management system (with total security of identifying the students during exam, monitoring the student's activities during the exam, selection of different questions for each student, development of a large question bank containing hundreds of questions in each subject considering all courses taught at the university) 6. Library management system @@ -312,4 +323,15 @@ 44. Cryptocurrency trading portal (exchange) allowing trading of all crypto coins using security, confidentiality, and authentication 45. Parking management system 46. Online food delivery system (linked to all restaurants in different districts in different regions in some countries) +47. *Food ordering system | Get order → print cheque as PDF file → see order status on separate HTML page. +48. *Weather app that recommends what to wear as a telegram bot. +49. *QR code generator, as a CLI tool, as a telegram bot. +50. *Remainder application (crontab tool) as a telegram bot, as a CLI application. +51. *Build own URL shortener as a telegram bot, as a CLI application, web app. +52. Math library with functions as a library. +53. Lost and found as a web app. + +## More Project Ideas +- https://codingchallenges.fyi/challenges/challenge-redis-cli +- https://github.com/codecrafters-io/build-your-own-x From fcfae03b512c6a07564d8bd0e5d902fdacc08fe6 Mon Sep 17 00:00:00 2001 From: Rustam Zokirov Date: Sun, 12 May 2024 13:37:02 +0500 Subject: [PATCH 17/21] Update Lab 01 --- Lab_01/01_hello_world.cpp | 13 ++++++++++++ Lab_01/02_take_user_input.cpp | 16 +++++++++++++++ Lab_01/03_integer_operations.cpp | 19 ++++++++++++++++++ Lab_01/04_integer_operations_v2.cpp | 19 ++++++++++++++++++ Lab_01/06_division.cpp | 20 +++++++++++++++++++ OOP1-Lab1/Circle.cpp => Lab_01/07_circle.cpp | 11 +++++----- .../08_scalene_triangle.cpp | 17 +++++++--------- .../09_equilateral_triangle.cpp | 11 +++++----- .../10_right_triangle.cpp | 11 +++++----- .../Rectangle.cpp => Lab_01/11_rectangle.cpp | 11 +++++----- OOP1-Lab1/Square.cpp => Lab_01/12_square.cpp | 11 +++++----- Lab_01/README.md | 14 +++++++++++++ OOP1-Lab1/README.md | 8 -------- 13 files changed, 133 insertions(+), 48 deletions(-) create mode 100644 Lab_01/01_hello_world.cpp create mode 100644 Lab_01/02_take_user_input.cpp create mode 100644 Lab_01/03_integer_operations.cpp create mode 100644 Lab_01/04_integer_operations_v2.cpp create mode 100644 Lab_01/06_division.cpp rename OOP1-Lab1/Circle.cpp => Lab_01/07_circle.cpp (83%) rename OOP1-Lab1/ScaleneTriangle.cpp => Lab_01/08_scalene_triangle.cpp (81%) rename OOP1-Lab1/EquilateralTriangle.cpp => Lab_01/09_equilateral_triangle.cpp (81%) rename OOP1-Lab1/RightTriangle.cpp => Lab_01/10_right_triangle.cpp (82%) rename OOP1-Lab1/Rectangle.cpp => Lab_01/11_rectangle.cpp (82%) rename OOP1-Lab1/Square.cpp => Lab_01/12_square.cpp (80%) create mode 100644 Lab_01/README.md delete mode 100644 OOP1-Lab1/README.md diff --git a/Lab_01/01_hello_world.cpp b/Lab_01/01_hello_world.cpp new file mode 100644 index 0000000..c5747c4 --- /dev/null +++ b/Lab_01/01_hello_world.cpp @@ -0,0 +1,13 @@ +// Program to print text on the console. +// cout -> console output. + +#include + +using namespace std; + +int main() +{ + cout << "Hello, World!" << endl; + system("pause"); + return 0; +} \ No newline at end of file diff --git a/Lab_01/02_take_user_input.cpp b/Lab_01/02_take_user_input.cpp new file mode 100644 index 0000000..cefb170 --- /dev/null +++ b/Lab_01/02_take_user_input.cpp @@ -0,0 +1,16 @@ +// Program to print an integer entered by the user. +// cin -> console input. + +#include + +using namespace std; + +int main() +{ + int number; + cout << "Enter an integer: "; + cin >> number; + cout << "You entered: " << number << endl; + system("pause"); + return 0; +} \ No newline at end of file diff --git a/Lab_01/03_integer_operations.cpp b/Lab_01/03_integer_operations.cpp new file mode 100644 index 0000000..532c3f5 --- /dev/null +++ b/Lab_01/03_integer_operations.cpp @@ -0,0 +1,19 @@ +// Program to Add/Subtract/Multiply/Divide Two Integers. + +#include + +using namespace std; + +int main() +{ + int num1, num2; + cout << "Enter two integers: "; + cin >> num1 >> num2; + cout << "Sum: " << num1 + num2 << endl; + cout << "Difference: " << num1 - num2 << endl; + cout << "Product: " << num1 * num2 << endl; + cout << "Quotient: " << num1 / num2 << endl; + cout << "Remainder: " << num1 % num2 << endl; + system("pause"); + return 0; +} \ No newline at end of file diff --git a/Lab_01/04_integer_operations_v2.cpp b/Lab_01/04_integer_operations_v2.cpp new file mode 100644 index 0000000..27ab1c9 --- /dev/null +++ b/Lab_01/04_integer_operations_v2.cpp @@ -0,0 +1,19 @@ +// C++ Program to Add/Subtract/Multiply/Divide Two Integers entered by the user. + +#include + +using namespace std; + +int main() +{ + int num1, num2; + cout << "Enter two integers: "; + cin >> num1 >> num2; + cout << "Sum: " << num1 + num2 << endl; + cout << "Difference: " << num1 - num2 << endl; + cout << "Product: " << num1 * num2 << endl; + cout << "Quotient: " << num1 / num2 << endl; + cout << "Remainder: " << num1 % num2 << endl; + system("pause"); + return 0; +} \ No newline at end of file diff --git a/Lab_01/06_division.cpp b/Lab_01/06_division.cpp new file mode 100644 index 0000000..7ddd330 --- /dev/null +++ b/Lab_01/06_division.cpp @@ -0,0 +1,20 @@ +// C++ Program to Compute Quotient and Remainder. + +#include + +using namespace std; + +int main() +{ + int dividend, divisor, quotient, remainder; + cout << "Enter dividend: "; + cin >> dividend; + cout << "Enter divisor: "; + cin >> divisor; + quotient = dividend / divisor; + remainder = dividend % divisor; + cout << "Quotient = " << quotient << endl; + cout << "Remainder = " << remainder << endl; + system("pause"); + return 0; +} \ No newline at end of file diff --git a/OOP1-Lab1/Circle.cpp b/Lab_01/07_circle.cpp similarity index 83% rename from OOP1-Lab1/Circle.cpp rename to Lab_01/07_circle.cpp index 6d3c314..5d68352 100644 --- a/OOP1-Lab1/Circle.cpp +++ b/Lab_01/07_circle.cpp @@ -1,5 +1,4 @@ -// Rustam Zokirov -// C++ program to Calculate Area and Circumference of Circle +// C++ program to Calculate Area and Circumference of Circle. #include @@ -11,17 +10,17 @@ int main() float R, Area, Circumference; cout << "Please enter the Radius of Circle: "; cin >> R; - if (R > 0) - { + + if (R > 0) { Area = 3.14 * R * R; Circumference = 2 * 3.14 * R; cout << "Area of Circle is " << Area << ";" << endl; cout << "Circumference of Circle is " << Circumference << ";" << endl; } - else - { + else { cout << "Negative numbers cannot be applied !!!" << endl; } + system("pause"); return 0; } \ No newline at end of file diff --git a/OOP1-Lab1/ScaleneTriangle.cpp b/Lab_01/08_scalene_triangle.cpp similarity index 81% rename from OOP1-Lab1/ScaleneTriangle.cpp rename to Lab_01/08_scalene_triangle.cpp index a0c55d0..fe69dd8 100644 --- a/OOP1-Lab1/ScaleneTriangle.cpp +++ b/Lab_01/08_scalene_triangle.cpp @@ -1,5 +1,4 @@ -// Rustam Zokirov -// C++ program to Calculate Area of Scalene Triangle +// C++ program to Calculate Area of Scalene Triangle. #include #include @@ -16,25 +15,23 @@ int main() cin >> b; cout << "Please enter the values for the third side of Triangle: "; cin >> c; - if (a > 0 && b > 0 && c > 0) - { - if (c < a + b && a < b + c && b < a + c) - { + + if (a > 0 && b > 0 && c > 0) { + if (c < a + b && a < b + c && b < a + c) { S = (a + b + c) / 2; Area = sqrt(S * (S - a) * (S - b) * (S - c)); cout << "The Area of Triangle is " << Area << endl; return 0; } - else - { + else { cout << "This triangle is wrong try another values." << endl; return 0; } } - else - { + else { cout << "The sides of Triangle cannot be negative numbers!" << endl; } + system("pause"); return 0; } \ No newline at end of file diff --git a/OOP1-Lab1/EquilateralTriangle.cpp b/Lab_01/09_equilateral_triangle.cpp similarity index 81% rename from OOP1-Lab1/EquilateralTriangle.cpp rename to Lab_01/09_equilateral_triangle.cpp index 8cd3c4f..a97069f 100644 --- a/OOP1-Lab1/EquilateralTriangle.cpp +++ b/Lab_01/09_equilateral_triangle.cpp @@ -1,5 +1,4 @@ -// Rustam Zokirov -// C++ program to Calculate Area of Equilateral Triangle +// C++ program to Calculate Area of Equilateral Triangle. #include #include @@ -12,15 +11,15 @@ int main() float a, Area; cout << "Please enter the value for the side of Triangle: "; cin >> a; - if (a > 0) - { + + if (a > 0) { Area = sqrt(2) * a * a * 0.25; cout << "The Area of this triangle is " << Area << ";" << endl; } - else - { + else { cout << "The sides of Triangle cannot be negative numbers ! " << endl; } + system("pause"); return 0; } \ No newline at end of file diff --git a/OOP1-Lab1/RightTriangle.cpp b/Lab_01/10_right_triangle.cpp similarity index 82% rename from OOP1-Lab1/RightTriangle.cpp rename to Lab_01/10_right_triangle.cpp index 2ad2459..4bde450 100644 --- a/OOP1-Lab1/RightTriangle.cpp +++ b/Lab_01/10_right_triangle.cpp @@ -1,5 +1,4 @@ -// Rustam Zokirov -// C++ program to Calculate Area of Right angle Triangle +// C++ program to Calculate Area of Right angle Triangle. #include @@ -13,15 +12,15 @@ int main() cin >> a; cout << "Please enter the value for the second cathet of Triangle: "; cin >> b; - if (a > 0 && b > 0) - { + + if (a > 0 && b > 0) { Area = b * a * 0.5; cout << "The Area of this Triangle is " << Area << ";" << endl; } - else - { + else { cout << "The sides of Triangle cannot be negative numbers ! " << endl; } + system("pause"); return 0; } \ No newline at end of file diff --git a/OOP1-Lab1/Rectangle.cpp b/Lab_01/11_rectangle.cpp similarity index 82% rename from OOP1-Lab1/Rectangle.cpp rename to Lab_01/11_rectangle.cpp index fae1e1b..cbae086 100644 --- a/OOP1-Lab1/Rectangle.cpp +++ b/Lab_01/11_rectangle.cpp @@ -1,5 +1,4 @@ -// Rustam Zokirov -// C++ program to Calculate Area of Rectangle +// C++ program to Calculate Area of Rectangle. #include #include @@ -14,15 +13,15 @@ int main() cin >> a; cout << "Please enter the width of Rectangle: "; cin >> b; - if (a > 0 && b > 0) - { + + if (a > 0 && b > 0) { Area = a * b; cout << "The area of Rectangle is " << Area << ";" << endl; } - else - { + else { cout << "The sides of Rectangle cannot be negative numbers !" << endl; } + system("pause"); return 0; } \ No newline at end of file diff --git a/OOP1-Lab1/Square.cpp b/Lab_01/12_square.cpp similarity index 80% rename from OOP1-Lab1/Square.cpp rename to Lab_01/12_square.cpp index 05012d9..462319f 100644 --- a/OOP1-Lab1/Square.cpp +++ b/Lab_01/12_square.cpp @@ -1,5 +1,4 @@ -// U1910049 Rustam Zokirov -// C++ program to Calculate Area of Square +// C++ program to Calculate Area of Square. #include #include @@ -12,15 +11,15 @@ int main() float a, Area; cout << "Please enter the value for the side of Square: "; cin >> a; - if (a > 0) - { + + if (a > 0) { Area = a * a; cout << "The area of Square is " << Area << ";" << endl; } - else - { + else { cout << "Negetive numbers cannot be applied !!!" << endl; } + system("pause"); return 0; } \ No newline at end of file diff --git a/Lab_01/README.md b/Lab_01/README.md new file mode 100644 index 0000000..66f0161 --- /dev/null +++ b/Lab_01/README.md @@ -0,0 +1,14 @@ +# Practical Lab Assignment - Variables/Operators + +1. C++ Program to print "Hello, World!". +2. C++ Program to print an integer entered by the user. +3. C++ Program to Add/Subtract/Multiply/Divide Two Integers. +4. C++ Program to Add/Subtract/Multiply/Divide Two Integers entered by the user. +5. C++ Program to Add/Subtract/Multiply/Divide two Floating Point Numbers. +6. C++ Program to Compute Quotient and Remainder. +7. C++ Program to Calculate the Area and Circumference of a Circle. +8. C++ Program to Calculate the Area of a Scalene Triangle. +9. C++ Program to Calculate the Area of an Equilateral Triangle. +10. C++ Program to Calculate the Area of Right Angle Triangle. +11. C++ Program to Calculate the Area and Perimeter of a Rectangle. +12. C++ Program to Calculate the Area and Perimeter of a Square. diff --git a/OOP1-Lab1/README.md b/OOP1-Lab1/README.md deleted file mode 100644 index a41c617..0000000 --- a/OOP1-Lab1/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# Practical Lab Assignment - Operators - -1. C++ Program to Calculate Area and Circumference of Circle. -2. C++ Program to Calculate Area of Scalene Triangle. -3. C++ Program to Calculate Area of Equilateral Triangle. -4. C++ Program to Calculate Area of Right angle Triangle. -5. C++ Program to Calculate Area of Rectangle. -6. C++ Program to Calculate Area of Square. \ No newline at end of file From e11f9e28c46259804a830bd3e5ffd4b7da55340a Mon Sep 17 00:00:00 2001 From: Rustam Zokirov Date: Mon, 13 May 2024 11:49:29 +0500 Subject: [PATCH 18/21] Update Lab 02 --- .../Swapping.cpp => Lab_01/13_swapping.cpp | 11 +++- Lab_01/README.md | 3 + Lab_02/01_temperature_converter.cpp | 26 ++++++++ .../OddEven.cpp => Lab_02/02_odd_even.cpp | 8 +-- Lab_02/03_negative_positive.cpp | 23 +++++++ Lab_02/04_vowel_consonant.cpp | 22 +++++++ .../05_largest_number.cpp | 9 ++- .../LeapYear.cpp => Lab_02/06_leap_year.cpp | 3 +- Lab_02/README.md | 36 +++++++++++ OOP1-Lab2/README.md | 7 --- OOP1-Lab2/Temperature.cpp | 14 ----- README.md | 60 ++++++++++--------- 12 files changed, 163 insertions(+), 59 deletions(-) rename OOP1-Lab2/Swapping.cpp => Lab_01/13_swapping.cpp (95%) create mode 100644 Lab_02/01_temperature_converter.cpp rename OOP1-Lab2/OddEven.cpp => Lab_02/02_odd_even.cpp (85%) create mode 100644 Lab_02/03_negative_positive.cpp create mode 100644 Lab_02/04_vowel_consonant.cpp rename OOP1-Lab2/Greatestnumber.cpp => Lab_02/05_largest_number.cpp (91%) rename OOP1-Lab2/LeapYear.cpp => Lab_02/06_leap_year.cpp (97%) create mode 100644 Lab_02/README.md delete mode 100644 OOP1-Lab2/README.md delete mode 100644 OOP1-Lab2/Temperature.cpp diff --git a/OOP1-Lab2/Swapping.cpp b/Lab_01/13_swapping.cpp similarity index 95% rename from OOP1-Lab2/Swapping.cpp rename to Lab_01/13_swapping.cpp index c176b59..76cd3fb 100644 --- a/OOP1-Lab2/Swapping.cpp +++ b/Lab_01/13_swapping.cpp @@ -1,19 +1,24 @@ -// Program to show swap of two no's without using third variable +// Program to show swap of two no's without using third variable. + #include using namespace std; -int main() -{ + +int main() { float a, b; + cout << "Enter first number: "; cin >> a; cout << "Enter second number: "; cin >> b; + a = a + b; b = a - b; a = a - b; + cout << "We have swapped your numbers, result in below." << endl; cout << "a = " << a << endl; cout << "b = " << b << endl; + system("pause"); return 0; } \ No newline at end of file diff --git a/Lab_01/README.md b/Lab_01/README.md index 66f0161..db51e23 100644 --- a/Lab_01/README.md +++ b/Lab_01/README.md @@ -12,3 +12,6 @@ 10. C++ Program to Calculate the Area of Right Angle Triangle. 11. C++ Program to Calculate the Area and Perimeter of a Rectangle. 12. C++ Program to Calculate the Area and Perimeter of a Square. +13. C++ Program to Find ASCII Value of a Character. +14. C++ Program to Find the Size of int, float, double, and char. +15. C++ Program to Swap Two Numbers. diff --git a/Lab_02/01_temperature_converter.cpp b/Lab_02/01_temperature_converter.cpp new file mode 100644 index 0000000..76eeda8 --- /dev/null +++ b/Lab_02/01_temperature_converter.cpp @@ -0,0 +1,26 @@ +// C++ program that converts between Celsius and Fahrenheit temperatures based on user input. + +#include + +using namespace std; + +int main() { + float temp; + char unit; + + cout << "Enter the temperature: "; + cin >> temp; + + cout << "Enter the unit (C/F): "; + cin >> unit; + + if (unit == 'C') { + cout << "The temperature in Fahrenheit is " << (temp * 9 / 5) + 32 << "F." << endl; + } else if (unit == 'F') { + cout << "The temperature in Celsius is " << (temp - 32) * 5 / 9 << "C." << endl; + } else { + cout << "Invalid unit." << endl; + } + + return 0; +} \ No newline at end of file diff --git a/OOP1-Lab2/OddEven.cpp b/Lab_02/02_odd_even.cpp similarity index 85% rename from OOP1-Lab2/OddEven.cpp rename to Lab_02/02_odd_even.cpp index 9b17b82..5a04183 100644 --- a/OOP1-Lab2/OddEven.cpp +++ b/Lab_02/02_odd_even.cpp @@ -1,18 +1,18 @@ -// U1910049 -// Lab assignment #3 // Program to find whether given number is even or odd. #include using namespace std; -int main1() -{ + +int main() { int a; cout << "Enter the number: "; cin >> a; + if (a % 2 == 0) cout << "Your number is Even!" << endl; else cout << "Your number is Odd!" << endl; + system("pause"); return 0; } \ No newline at end of file diff --git a/Lab_02/03_negative_positive.cpp b/Lab_02/03_negative_positive.cpp new file mode 100644 index 0000000..0bf9966 --- /dev/null +++ b/Lab_02/03_negative_positive.cpp @@ -0,0 +1,23 @@ +// C++ Program to Check Whether a Number is Positive or Negative. + +#include + +using namespace std; + +int main() { + float number; + + cout << "Enter a number: "; + cin >> number; + + if (number > 0) { + cout << "The number is positive." << endl; + } else if (number < 0) { + cout << "The number is negative." << endl; + } else { + cout << "The number is zero." << endl; + } + + system("pause"); + return 0; +} \ No newline at end of file diff --git a/Lab_02/04_vowel_consonant.cpp b/Lab_02/04_vowel_consonant.cpp new file mode 100644 index 0000000..7c2421e --- /dev/null +++ b/Lab_02/04_vowel_consonant.cpp @@ -0,0 +1,22 @@ +// C++ Program to Check Whether a Character is a Vowel or Consonant. + +#include + +using namespace std; + +int main() { + char c; + + cout << "Enter a character: "; + cin >> c; + + if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || + c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U') { + cout << "The character is a vowel." << endl; + } else { + cout << "The character is a consonant." << endl; + } + + system("pause"); + return 0; +} \ No newline at end of file diff --git a/OOP1-Lab2/Greatestnumber.cpp b/Lab_02/05_largest_number.cpp similarity index 91% rename from OOP1-Lab2/Greatestnumber.cpp rename to Lab_02/05_largest_number.cpp index 8be4794..9d285a4 100644 --- a/OOP1-Lab2/Greatestnumber.cpp +++ b/Lab_02/05_largest_number.cpp @@ -1,22 +1,25 @@ -// U1910049 -// Lab assignment #3 // Program to find greatest in 3 numbers #include using namespace std; -int main2() + +int main() { float a, b, c; cout << "Enter the 3 numbres: "; cin >> a >> b >> c; + if (a >= b && a >= c) cout << "The greatest number is " << a << ";" << endl; + if (b >= a && b >= c) cout << "The greatest number is " << b << ";" << endl; + if (c >= a && c >= b) cout << "The greatest number is " << c << ";" << endl; else if (a == b == c) cout << "All numbers are equal." << endl; + system("pause"); return 0; } \ No newline at end of file diff --git a/OOP1-Lab2/LeapYear.cpp b/Lab_02/06_leap_year.cpp similarity index 97% rename from OOP1-Lab2/LeapYear.cpp rename to Lab_02/06_leap_year.cpp index d6e41d6..7c2b41e 100644 --- a/OOP1-Lab2/LeapYear.cpp +++ b/Lab_02/06_leap_year.cpp @@ -3,11 +3,12 @@ #include using namespace std; -int main4() +int main() { int year; cout << "Enter a Year: "; cin >> year; + if (year % 4 == 0) { if (year % 100 == 0) diff --git a/Lab_02/README.md b/Lab_02/README.md new file mode 100644 index 0000000..bbcb38b --- /dev/null +++ b/Lab_02/README.md @@ -0,0 +1,36 @@ +# Practical Lab Assignment - Control Structures - if/else + +1. C++ program that converts between Celsius and Fahrenheit temperatures based on user input. You can also add conversions for Kelvin. +2. C++ Program to Check Whether a Number is Even or Odd. +3. C++ Program to Check Whether a Number is Positive or Negative. +4. C++ Program to Check Whether a Character is a Vowel or Consonant. +5. C++ Program to find the Largest Number Among Three Numbers. +6. C++ Program to find if the entered year is a leap year or not. +7. C++ program that allows the user to perform basic arithmetic operations (addition, subtraction, multiplication, division) on two numbers. You can also add error handling for division by zero. +8. BMI Calculator: Create a program that calculates a person's Body Mass Index (BMI) based on their weight and height input. Provide a classification of whether the person is underweight, normal weight, overweight, or obese. Use cin, cout. + Formula: bmi = weight / (height * height) + + | bmi < 18.5 | Underweight | + | --- | --- | + | bmi < 24.9 | Normal Weight | + | bmi < 29.9 | Overweight | + | Otherwise | Obese | +9. Nested condition + - Get the `age` and `membership_status` as user input. `membership_status` can be only `Y` or `y`. So, if the age is bigger or equal to 18 and if the user is a member of our shop, we provide a 10% discount, else we charge fully. + - Write a simple chatbot program using nested conditions. +10. Write a program to calculate taxes, with the following conditions: + - If the salary is less than $1500, then there are no taxes + - If the salary is from 1501 to 3000 $ (1501<= salary < 3000) then the tax should be 10% + - If the salary is from 3001 to 5000 $ (3001 <= salary < 5000) then the tax should be 20% + - If the salary is above $5000, then the tax should be 30% + + **Hint: Formula for finding tax (salary * percentage) / 100** + + You must output: + - Tax percentage + - Salary after taxes +11. Switch + - Program to use `switch` statement. Display Monday to Sunday. + - Program to display arithmetic operator using switch case. +12. C++ Program to Find all Roots of a Quadratic equation. +13. C++ Program to Check Whether a Character is an Alphabet or not. diff --git a/OOP1-Lab2/README.md b/OOP1-Lab2/README.md deleted file mode 100644 index f31e652..0000000 --- a/OOP1-Lab2/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Practical Lab Assignment - Control Structures - if/else - -1. Program to convert temperature from degree centigrade to Fahrenheit. -2. Program to show swap of two no’s without using third variable. -3. Program to find greatest in 3 numbers. -4. Program to find that entered year is leap year or not. -5. Program to find whether given no is even or odd. \ No newline at end of file diff --git a/OOP1-Lab2/Temperature.cpp b/OOP1-Lab2/Temperature.cpp deleted file mode 100644 index 9d1e82b..0000000 --- a/OOP1-Lab2/Temperature.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include -using namespace std; - -int main3() -{ - float C, F; - cout << "Enter your temperature in Celcius: "; - cin >> C; - F = C * 1.8 + 32; - cout << "In Celcius: " << C << "*C ;" << endl; - cout << "In Fahrenheit: " << F << "F ;" << endl; - - return 0; -} \ No newline at end of file diff --git a/README.md b/README.md index d91988a..f8531e4 100644 --- a/README.md +++ b/README.md @@ -58,16 +58,18 @@ 10. C++ Program to Calculate the Area of Right Angle Triangle. 11. C++ Program to Calculate the Area and Perimeter of a Rectangle. 12. C++ Program to Calculate the Area and Perimeter of a Square. -13. C++ program that converts between Celsius and Fahrenheit temperatures based on user input. You can also add conversions for Kelvin. -14. C++ Program to Find ASCII Value of a Character. -15. C++ Program to Find the Size of int, float, double, and char. -16. C++ Program to Check Whether a Number is Even or Odd. -17. C++ Program to Check Whether a Number is Positive or Negative. -18. C++ Program to Check Whether a Character is a Vowel or Consonant. -19. C++ Program to find the Largest Number Among Three Numbers. -20. C++ Program to find if the entered year is a leap year or not. -21. C++ program that allows the user to perform basic arithmetic operations (addition, subtraction, multiplication, division) on two numbers. You can also add error handling for division by zero. -22. BMI Calculator: Create a program that calculates a person's Body Mass Index (BMI) based on their weight and height input. Provide a classification of whether the person is underweight, normal weight, overweight, or obese. Use cin, cout. +13. C++ Program to Find ASCII Value of a Character. +14. C++ Program to Find the Size of int, float, double, and char. +15. C++ Program to Swap Two Numbers. + +16. C++ program that converts between Celsius and Fahrenheit temperatures based on user input. You can also add conversions for Kelvin. +17. C++ Program to Check Whether a Number is Even or Odd. +18. C++ Program to Check Whether a Number is Positive or Negative. +19. C++ Program to Check Whether a Character is a Vowel or Consonant. +20. C++ Program to find the Largest Number Among Three Numbers. +21. C++ Program to find if the entered year is a leap year or not. +22. C++ program that allows the user to perform basic arithmetic operations (addition, subtraction, multiplication, division) on two numbers. You can also add error handling for division by zero. +23. BMI Calculator: Create a program that calculates a person's Body Mass Index (BMI) based on their weight and height input. Provide a classification of whether the person is underweight, normal weight, overweight, or obese. Use cin, cout. Formula: bmi = weight / (height * height) | bmi < 18.5 | Underweight | @@ -75,10 +77,10 @@ | bmi < 24.9 | Normal Weight | | bmi < 29.9 | Overweight | | Otherwise | Obese | -23. Nested condition +24. Nested condition - Get the `age` and `membership_status` as user input. `membership_status` can be only `Y` or `y`. So, if the age is bigger or equal to 18 and if the user is a member of our shop, we provide a 10% discount, else we charge fully. - Write a simple chatbot program using nested conditions. -24. Write a program to calculate taxes, with the following conditions: +25. Write a program to calculate taxes, with the following conditions: - If the salary is less than $1500, then there are no taxes - If the salary is from 1501 to 3000 $ (1501<= salary < 3000) then the tax should be 10% - If the salary is from 3001 to 5000 $ (3001 <= salary < 5000) then the tax should be 20% @@ -89,12 +91,12 @@ You must output: - Tax percentage - Salary after taxes -24. Switch +26. Switch: - Program to use `switch` statement. Display Monday to Sunday. - Program to display arithmetic operator using switch case. -25. C++ Program to Swap Two Numbers. -26. C++ Program to Find all Roots of a Quadratic equation. -27. C++ Program to Check Whether a Character is an Alphabet or not. +27. C++ Program to Find all Roots of a Quadratic equation. +28. C++ Program to Check Whether a Character is an Alphabet or not. + 28. C++ Program to Calculate the Sum of Natural Numbers. 29. Program to calculate the sum of numbers from m to n. - Hint: Input two numbers m and n. Find the sum of all numbers from m to n. For example m=3 and n=8 then sum will be 3 + 4 + 5 + 6 + 7 + 8 = 33. @@ -166,30 +168,34 @@ 56. C++ Program to Convert Binary Number to Decimal and vice-versa. 57. C++ Program to Convert Octal Number to Decimal and vice-versa. 58. C++ Program to Convert Binary Numbers to Octal and vice-versa. -59. C++ Program to Reverse a Sentence Using Recursion. -50. C++ Program to calculate the power using recursion. -51. Write a program to calculate the area of a circle using functions. -52. Simple Calculator Program: ****Create a program that acts as a basic calculator, allowing users to perform addition, subtraction, multiplication, and division. Use functions for each operation. + +59. C++ Program to Reverse a Sentence using recursion function. +50. C++ Program to calculate the power using recursion function. +51. Build a program for calculating the area and perimeter of various geometric shapes (circle, rectangle, triangle, etc.) using separate functions for each shape. +52. Simple Calculator Program: Create a program that acts as a basic calculator, allowing users to perform addition, subtraction, multiplication, and division. Use functions for each operation. 53. Write a program to swap two values using functions. 54. Write a program to convert time to minutes using functions. (input 3 variables namely hours, minutes, and seconds. Convert everything into minutes.) -55. Write a program to sum the Fibonacci series up to n (input n). 1, 1, 2, 3, 5, 8, 13, … +55. Write a program to sum the Fibonacci series up to n (input n). 1, 1, 2, 3, 5, 8, 13, 56. Function Overloading and Default Arguments: Build a program for calculating the area and perimeter of various geometric shapes (circle, rectangle, triangle, etc.) using separate functions for each shape. Overload functions for shapes with different parameters. 57. Employee Payroll: ****Design a program that calculates employee payroll, including basic salary, overtime pay, and deductions. Use functions to compute each component. +57. Temperature in °C can be converted to °F using this formula: °F = (°C x 9/5) + 32. Write a function which converts °C to °F, convert_celsius_to-fahrenheit. +57. Write a function called check-season, it takes a month parameter and returns the season: Autumn, Winter, Spring or Summer. +58. Write a function called calculate_slope which return the slope of a linear equation. 58. **Student Grade Tracker:** Create a program that allows teachers to enter student grades and calculate averages, find the highest and lowest scores, and display statistics. 59. **Library Management System:** Create a simple library management system where you can store and manage a list of books using arrays. Ask the user to enter the book names. You should have the function display the book names. Create a `void` function. You should have the functionality to update the book name. To do this create another function. And pass index as argument. -60. C++ Program to merge two arrays. -61. C++ Program to search the value in the array and return its index, if the value is not found print “Item not foundâ€. -62. ****Number Sorting:** Write a program that reads a list of numbers into an array and sorts them in ascending or descending order using a sorting algorithm. +60. Write a function to merge two arrays. +61. Write a function to search the value in the array and return its index, if the value is not found print “Item not foundâ€. +62. **Number Sorting:** Write a program that reads a list of numbers into an array and sorts them in ascending or descending order using a sorting algorithm. 63. **Matrix Operations:** Write a program for basic matrix operations, such as addition, subtraction, multiplication, and transposition. 64. In a small company, there are five salesmen. Each salesman is supposed to sell three products. Write a program using a 2D array to print **(Input from user)**. The total sales by each salesman and Total sales of each item. 65. C++ Program to Calculate Standard Deviation. -66. C++ Program to Multiply Two Matrices by Passing the Matrix to a Function. + 67. C++ Program to Access Elements of an Array Using Pointer. 68. Write a program that declares an integer variable, assigns a value to it, and then uses a pointer to print the value. 69. Swap the values of two integer variables using pointers. 70. Write a program that finds the sum of elements in an integer array using a pointer. 71. Create a dynamic integer array and prompt the user for the array size. Fill the array with user input values. -72. C++ Program Swap Numbers in Cyclic Order Using Call by Reference. + 62. C++ Program to Find Largest Number Using Dynamic Memory Allocation. 63. C++ Program to Find the Frequency of Characters in a String. 64. C++ Program to count the number of vowels, consonants, and so on. @@ -207,7 +213,7 @@ 76. C++ Program to Write a Sentence to a File. 77. C++ Program to Read a Line From a File and Display it. 78. C++ Program to Display its own Source Code as Output. -79. C++ Programming Code To Create Pyramid and Pattern. + 80. [OOP] Define a class called **`Car`** with attributes like **`model`**, and **`year`**. Create an object of the **`Car`** class and set its attributes. Then, print out the car's details. 81. [OOP] Redo the same program above using `this->` 82. [OOP] Temperature converter. Write a class called **`TemperatureConverter`** with methods to convert between Celsius and Fahrenheit. From Celsius Kelvin. to Create an object of this class, and use it to convert a temperature from one scale to another. From 018d1b47d3b687c2198c268b7ae76249943b2a6b Mon Sep 17 00:00:00 2001 From: Rustam Zokirov Date: Mon, 13 May 2024 11:53:55 +0500 Subject: [PATCH 19/21] Update repo structure --- {OOP1-Lab3 => Lab_03}/Digits.cpp | 0 {OOP1-Lab3 => Lab_03}/Fibonacci.cpp | 0 {OOP1-Lab3 => Lab_03}/Operators.cpp | 0 {OOP1-Lab3 => Lab_03}/Prime.cpp | 0 {OOP1-Lab3 => Lab_03}/README.md | 0 {OOP1-Lab3 => Lab_03}/Sum1.cpp | 0 {OOP1-Lab3 => Lab_03}/Sum2.cpp | 0 {OOP1-Lab3 => Lab_03}/Weekdays.cpp | 0 {OOP1-Lab3 => Lab_03}/mn.cpp | 0 {OOP1-Lab4 => Lab_04}/README.md | 0 {OOP1-Lab4 => Lab_04}/Source.cpp | 0 {OOP1-Lab4 => Lab_04}/Source1.cpp | 0 {OOP1-Lab4 => Lab_04}/Source2.cpp | 0 {OOP1-Lab4 => Lab_04}/Source3.cpp | 0 {OOP1-Lab4 => Lab_04}/Source4.cpp | 0 {OOP1-Lab5 => Lab_05}/README.md | 0 {OOP1-Lab5 => Lab_05}/Source.cpp | 0 {OOP1-Lab5 => Lab_05}/Source1.cpp | 0 {OOP1-Lab5 => Lab_05}/Source2.cpp | 0 {OOP1-Lab5 => Lab_05}/Source3.cpp | 0 {OOP1-Lab6 => Lab_06}/README.md | 0 {OOP1-Lab6 => Lab_06}/Source.cpp | 0 {OOP1-Lab7 => Lab_07}/README.md | 0 {OOP1-Lab7 => Lab_07}/fibonacci.cpp | 0 {OOP1-Lab7 => Lab_07}/gcd.cpp | 0 {OOP1-Lab7 => Lab_07}/power.cpp | 0 {OOP1-Lab7 => Lab_07}/sum.cpp | 0 {OOP1-Lab8 => Lab_08}/README.md | 0 {OOP1-Lab8 => Lab_08}/Sort.cpp | 0 {OOP1-Lab8 => Lab_08}/average.cpp | 0 {OOP1-Lab8 => Lab_08}/deleting.cpp | 0 {OOP1-Lab8 => Lab_08}/display.cpp | 0 {OOP1-Lab8 => Lab_08}/inserting.cpp | 0 {OOP1-Lab9 => Lab_09}/Pascal.cpp | 0 {OOP1-Lab9 => Lab_09}/Pascal2.cpp | 0 {OOP1-Lab9 => Lab_09}/README.md | 0 {OOP1-Lab9 => Lab_09}/Source1.cpp | 0 {OOP1-Lab9 => Lab_09}/Source2.cpp | 0 {OOP2_Lab1 => Lab_10}/README.md | 0 {OOP2_Lab1 => Lab_10}/studentCourseEvaluation.cpp | 0 {OOP2_Lab2 => Lab_11}/README.md | 0 {OOP2_Lab2 => Lab_11}/Source.cpp | 0 {OOP2_Lab3 => Lab_12}/README.md | 0 {OOP2_Lab3 => Lab_12}/main.cpp | 0 {OOP2_Lab4 => Lab_13}/README.md | 0 {OOP2_Lab4 => Lab_13}/main1.cpp | 0 {OOP2_Lab5 => Lab_14}/README.md | 0 {OOP2_Lab5 => Lab_14}/Source.cpp | 0 {OOP2_Lab6 => Lab_15}/README.md | 0 {OOP2_Lab6 => Lab_15}/Source.cpp | 0 {OOP2_Lab7 => Lab_16}/README.docx | Bin {OOP2_Lab7 => Lab_16}/Source.cpp | 0 {OOP2_Lab7_Extra => Lab_17}/Activity-1.docx | Bin {OOP2_Lab7_Extra => Lab_17}/Education.cpp | 0 {OOP2_Lab8 => Lab_18}/README.md | 0 {OOP2_Lab8 => Lab_18}/main.cpp | 0 {OOP2_Lab9 => Lab_19}/README.md | 0 {OOP2_Lab9 => Lab_19}/contacts.txt | 0 {OOP2_Lab9 => Lab_19}/main.cpp | 0 {OOP2_Lab9 => Lab_19}/numbers.txt | 0 {OOP2_Lab9 => Lab_19}/one.txt | 0 {OOP2_Lab9 => Lab_19}/total.txt | 0 {OOP2_Lab9 => Lab_19}/two.txt | 0 {OOP2_Lab10 => Lab_20}/Person.cpp | 0 {OOP2_Lab10 => Lab_20}/README.md | 0 {OOP2_Lab10 => Lab_20}/contacts | Bin {OOP2-FA => Lab_21}/city_temperature_control.cpp | 0 {OOP2-FA => Lab_21}/e-commerce.cpp | 0 .../Header.h | 0 .../Project3.exe | Bin .../data.txt | 0 .../main.cpp | 0 .../BreadBakery.h | 0 .../Header.h | 0 .../Loading.h | 0 .../Vegetables.h | 0 .../Water.h | 0 .../main.cpp | 0 .../Loading_Page.h | 0 .../Person.h | 0 .../Products.h | 0 .../User_Info.txt | 0 .../Validation.h | 0 .../main.cpp | 0 .../screenshots/authentication.png | Bin .../screenshots/authorization.png | Bin .../screenshots/loading.png | Bin .../screenshots/menu.png | Bin .../screenshots/product list.png | Bin .../Loading_Page.h | 0 .../Password_Vali_Asterisk.h | 0 .../Person.h | 0 .../Products.h | 0 .../User_Info.txt | 0 .../Validation.h | 0 .../main.cpp | 0 .../screenshots/authentication.png | Bin .../screenshots/authorization.png | Bin .../screenshots/loading.png | Bin .../screenshots/menu.png | Bin .../screenshots/product list.png | Bin .../olaf-game.cpp | 0 .../sfml/bin/openal32.dll | Bin .../sfml/bin/sfml-audio-2.dll | Bin .../sfml/bin/sfml-audio-d-2.dll | Bin .../sfml/bin/sfml-graphics-2.dll | Bin .../sfml/bin/sfml-graphics-d-2.dll | Bin .../sfml/bin/sfml-network-2.dll | Bin .../sfml/bin/sfml-network-d-2.dll | Bin .../sfml/bin/sfml-system-2.dll | Bin .../sfml/bin/sfml-system-d-2.dll | Bin .../sfml/bin/sfml-window-2.dll | Bin .../sfml/bin/sfml-window-d-2.dll | Bin .../sfml/include/SFML/Audio.hpp | 0 .../sfml/include/SFML/Audio/AlResource.hpp | 0 .../sfml/include/SFML/Audio/Export.hpp | 0 .../sfml/include/SFML/Audio/InputSoundFile.hpp | 0 .../sfml/include/SFML/Audio/Listener.hpp | 0 .../sfml/include/SFML/Audio/Music.hpp | 0 .../sfml/include/SFML/Audio/OutputSoundFile.hpp | 0 .../sfml/include/SFML/Audio/Sound.hpp | 0 .../sfml/include/SFML/Audio/SoundBuffer.hpp | 0 .../sfml/include/SFML/Audio/SoundBufferRecorder.hpp | 0 .../sfml/include/SFML/Audio/SoundFileFactory.hpp | 0 .../sfml/include/SFML/Audio/SoundFileFactory.inl | 0 .../sfml/include/SFML/Audio/SoundFileReader.hpp | 0 .../sfml/include/SFML/Audio/SoundFileWriter.hpp | 0 .../sfml/include/SFML/Audio/SoundRecorder.hpp | 0 .../sfml/include/SFML/Audio/SoundSource.hpp | 0 .../sfml/include/SFML/Audio/SoundStream.hpp | 0 .../sfml/include/SFML/Config.hpp | 0 .../sfml/include/SFML/GpuPreference.hpp | 0 .../sfml/include/SFML/Graphics.hpp | 0 .../sfml/include/SFML/Graphics/BlendMode.hpp | 0 .../sfml/include/SFML/Graphics/CircleShape.hpp | 0 .../sfml/include/SFML/Graphics/Color.hpp | 0 .../sfml/include/SFML/Graphics/ConvexShape.hpp | 0 .../sfml/include/SFML/Graphics/Drawable.hpp | 0 .../sfml/include/SFML/Graphics/Export.hpp | 0 .../sfml/include/SFML/Graphics/Font.hpp | 0 .../sfml/include/SFML/Graphics/Glsl.hpp | 0 .../sfml/include/SFML/Graphics/Glsl.inl | 0 .../sfml/include/SFML/Graphics/Glyph.hpp | 0 .../sfml/include/SFML/Graphics/Image.hpp | 0 .../sfml/include/SFML/Graphics/PrimitiveType.hpp | 0 .../sfml/include/SFML/Graphics/Rect.hpp | 0 .../sfml/include/SFML/Graphics/Rect.inl | 0 .../sfml/include/SFML/Graphics/RectangleShape.hpp | 0 .../sfml/include/SFML/Graphics/RenderStates.hpp | 0 .../sfml/include/SFML/Graphics/RenderTarget.hpp | 0 .../sfml/include/SFML/Graphics/RenderTexture.hpp | 0 .../sfml/include/SFML/Graphics/RenderWindow.hpp | 0 .../sfml/include/SFML/Graphics/Shader.hpp | 0 .../sfml/include/SFML/Graphics/Shape.hpp | 0 .../sfml/include/SFML/Graphics/Sprite.hpp | 0 .../sfml/include/SFML/Graphics/Text.hpp | 0 .../sfml/include/SFML/Graphics/Texture.hpp | 0 .../sfml/include/SFML/Graphics/Transform.hpp | 0 .../sfml/include/SFML/Graphics/Transformable.hpp | 0 .../sfml/include/SFML/Graphics/Vertex.hpp | 0 .../sfml/include/SFML/Graphics/VertexArray.hpp | 0 .../sfml/include/SFML/Graphics/VertexBuffer.hpp | 0 .../sfml/include/SFML/Graphics/View.hpp | 0 .../sfml/include/SFML/Main.hpp | 0 .../sfml/include/SFML/Network.hpp | 0 .../sfml/include/SFML/Network/Export.hpp | 0 .../sfml/include/SFML/Network/Ftp.hpp | 0 .../sfml/include/SFML/Network/Http.hpp | 0 .../sfml/include/SFML/Network/IpAddress.hpp | 0 .../sfml/include/SFML/Network/Packet.hpp | 0 .../sfml/include/SFML/Network/Socket.hpp | 0 .../sfml/include/SFML/Network/SocketHandle.hpp | 0 .../sfml/include/SFML/Network/SocketSelector.hpp | 0 .../sfml/include/SFML/Network/TcpListener.hpp | 0 .../sfml/include/SFML/Network/TcpSocket.hpp | 0 .../sfml/include/SFML/Network/UdpSocket.hpp | 0 .../sfml/include/SFML/OpenGL.hpp | 0 .../sfml/include/SFML/System.hpp | 0 .../sfml/include/SFML/System/Clock.hpp | 0 .../sfml/include/SFML/System/Err.hpp | 0 .../sfml/include/SFML/System/Export.hpp | 0 .../sfml/include/SFML/System/FileInputStream.hpp | 0 .../sfml/include/SFML/System/InputStream.hpp | 0 .../sfml/include/SFML/System/Lock.hpp | 0 .../sfml/include/SFML/System/MemoryInputStream.hpp | 0 .../sfml/include/SFML/System/Mutex.hpp | 0 .../sfml/include/SFML/System/NativeActivity.hpp | 0 .../sfml/include/SFML/System/NonCopyable.hpp | 0 .../sfml/include/SFML/System/Sleep.hpp | 0 .../sfml/include/SFML/System/String.hpp | 0 .../sfml/include/SFML/System/String.inl | 0 .../sfml/include/SFML/System/Thread.hpp | 0 .../sfml/include/SFML/System/Thread.inl | 0 .../sfml/include/SFML/System/ThreadLocal.hpp | 0 .../sfml/include/SFML/System/ThreadLocalPtr.hpp | 0 .../sfml/include/SFML/System/ThreadLocalPtr.inl | 0 .../sfml/include/SFML/System/Time.hpp | 0 .../sfml/include/SFML/System/Utf.hpp | 0 .../sfml/include/SFML/System/Utf.inl | 0 .../sfml/include/SFML/System/Vector2.hpp | 0 .../sfml/include/SFML/System/Vector2.inl | 0 .../sfml/include/SFML/System/Vector3.hpp | 0 .../sfml/include/SFML/System/Vector3.inl | 0 .../sfml/include/SFML/Window.hpp | 0 .../sfml/include/SFML/Window/Clipboard.hpp | 0 .../sfml/include/SFML/Window/Context.hpp | 0 .../sfml/include/SFML/Window/ContextSettings.hpp | 0 .../sfml/include/SFML/Window/Cursor.hpp | 0 .../sfml/include/SFML/Window/Event.hpp | 0 .../sfml/include/SFML/Window/Export.hpp | 0 .../sfml/include/SFML/Window/GlResource.hpp | 0 .../sfml/include/SFML/Window/Joystick.hpp | 0 .../sfml/include/SFML/Window/Keyboard.hpp | 0 .../sfml/include/SFML/Window/Mouse.hpp | 0 .../sfml/include/SFML/Window/Sensor.hpp | 0 .../sfml/include/SFML/Window/Touch.hpp | 0 .../sfml/include/SFML/Window/VideoMode.hpp | 0 .../sfml/include/SFML/Window/Window.hpp | 0 .../sfml/include/SFML/Window/WindowHandle.hpp | 0 .../sfml/include/SFML/Window/WindowStyle.hpp | 0 .../sfml/lib/cmake/SFML/SFMLConfig.cmake | 0 .../lib/cmake/SFML/SFMLConfigDependencies.cmake | 0 .../sfml/lib/cmake/SFML/SFMLConfigVersion.cmake | 0 .../lib/cmake/SFML/SFMLSharedTargets-debug.cmake | 0 .../lib/cmake/SFML/SFMLSharedTargets-release.cmake | 0 .../sfml/lib/cmake/SFML/SFMLSharedTargets.cmake | 0 .../lib/cmake/SFML/SFMLStaticTargets-debug.cmake | 0 .../lib/cmake/SFML/SFMLStaticTargets-release.cmake | 0 .../sfml/lib/cmake/SFML/SFMLStaticTargets.cmake | 0 .../sfml/lib/flac.lib | Bin .../sfml/lib/freetype.lib | Bin .../sfml/lib/ogg.lib | Bin .../sfml/lib/openal32.lib | Bin .../sfml/lib/sfml-audio-d.lib | Bin .../sfml/lib/sfml-audio-d.pdb | Bin .../sfml/lib/sfml-audio-s-d.lib | Bin .../sfml/lib/sfml-audio-s-d.pdb | Bin .../sfml/lib/sfml-audio-s.lib | Bin .../sfml/lib/sfml-audio.lib | Bin .../sfml/lib/sfml-graphics-d.lib | Bin .../sfml/lib/sfml-graphics-d.pdb | Bin .../sfml/lib/sfml-graphics-s-d.lib | Bin .../sfml/lib/sfml-graphics-s-d.pdb | Bin .../sfml/lib/sfml-graphics-s.lib | Bin .../sfml/lib/sfml-graphics.lib | Bin .../sfml/lib/sfml-main-d.lib | Bin .../sfml/lib/sfml-main-s-d.pdb | Bin .../sfml/lib/sfml-main.lib | Bin .../sfml/lib/sfml-network-d.lib | Bin .../sfml/lib/sfml-network-d.pdb | Bin .../sfml/lib/sfml-network-s-d.lib | Bin .../sfml/lib/sfml-network-s-d.pdb | Bin .../sfml/lib/sfml-network-s.lib | Bin .../sfml/lib/sfml-network.lib | Bin .../sfml/lib/sfml-system-d.lib | Bin .../sfml/lib/sfml-system-d.pdb | Bin .../sfml/lib/sfml-system-s-d.lib | Bin .../sfml/lib/sfml-system-s-d.pdb | Bin .../sfml/lib/sfml-system-s.lib | Bin .../sfml/lib/sfml-system.lib | Bin .../sfml/lib/sfml-window-d.lib | Bin .../sfml/lib/sfml-window-d.pdb | Bin .../sfml/lib/sfml-window-s-d.lib | Bin .../sfml/lib/sfml-window-s-d.pdb | Bin .../sfml/lib/sfml-window-s.lib | Bin .../sfml/lib/sfml-window.lib | Bin .../sfml/lib/vorbis.lib | Bin .../sfml/lib/vorbisenc.lib | Bin .../sfml/lib/vorbisfile.lib | Bin .../new_year.cpp | 0 .../only_numbers.cpp | 0 .../quiz-game-with-oop.cpp | 0 {Quiz Game => Project_Quiz_Game}/quiz-game.cpp | 0 {Snake Game => Project_Snake_Game}/snake-game.cpp | 0 274 files changed, 0 insertions(+), 0 deletions(-) rename {OOP1-Lab3 => Lab_03}/Digits.cpp (100%) rename {OOP1-Lab3 => Lab_03}/Fibonacci.cpp (100%) rename {OOP1-Lab3 => Lab_03}/Operators.cpp (100%) rename {OOP1-Lab3 => Lab_03}/Prime.cpp (100%) rename {OOP1-Lab3 => Lab_03}/README.md (100%) rename {OOP1-Lab3 => Lab_03}/Sum1.cpp (100%) rename {OOP1-Lab3 => Lab_03}/Sum2.cpp (100%) rename {OOP1-Lab3 => Lab_03}/Weekdays.cpp (100%) rename {OOP1-Lab3 => Lab_03}/mn.cpp (100%) rename {OOP1-Lab4 => Lab_04}/README.md (100%) rename {OOP1-Lab4 => Lab_04}/Source.cpp (100%) rename {OOP1-Lab4 => Lab_04}/Source1.cpp (100%) rename {OOP1-Lab4 => Lab_04}/Source2.cpp (100%) rename {OOP1-Lab4 => Lab_04}/Source3.cpp (100%) rename {OOP1-Lab4 => Lab_04}/Source4.cpp (100%) rename {OOP1-Lab5 => Lab_05}/README.md (100%) rename {OOP1-Lab5 => Lab_05}/Source.cpp (100%) rename {OOP1-Lab5 => Lab_05}/Source1.cpp (100%) rename {OOP1-Lab5 => Lab_05}/Source2.cpp (100%) rename {OOP1-Lab5 => Lab_05}/Source3.cpp (100%) rename {OOP1-Lab6 => Lab_06}/README.md (100%) rename {OOP1-Lab6 => Lab_06}/Source.cpp (100%) rename {OOP1-Lab7 => Lab_07}/README.md (100%) rename {OOP1-Lab7 => Lab_07}/fibonacci.cpp (100%) rename {OOP1-Lab7 => Lab_07}/gcd.cpp (100%) rename {OOP1-Lab7 => Lab_07}/power.cpp (100%) rename {OOP1-Lab7 => Lab_07}/sum.cpp (100%) rename {OOP1-Lab8 => Lab_08}/README.md (100%) rename {OOP1-Lab8 => Lab_08}/Sort.cpp (100%) rename {OOP1-Lab8 => Lab_08}/average.cpp (100%) rename {OOP1-Lab8 => Lab_08}/deleting.cpp (100%) rename {OOP1-Lab8 => Lab_08}/display.cpp (100%) rename {OOP1-Lab8 => Lab_08}/inserting.cpp (100%) rename {OOP1-Lab9 => Lab_09}/Pascal.cpp (100%) rename {OOP1-Lab9 => Lab_09}/Pascal2.cpp (100%) rename {OOP1-Lab9 => Lab_09}/README.md (100%) rename {OOP1-Lab9 => Lab_09}/Source1.cpp (100%) rename {OOP1-Lab9 => Lab_09}/Source2.cpp (100%) rename {OOP2_Lab1 => Lab_10}/README.md (100%) rename {OOP2_Lab1 => Lab_10}/studentCourseEvaluation.cpp (100%) rename {OOP2_Lab2 => Lab_11}/README.md (100%) rename {OOP2_Lab2 => Lab_11}/Source.cpp (100%) rename {OOP2_Lab3 => Lab_12}/README.md (100%) rename {OOP2_Lab3 => Lab_12}/main.cpp (100%) rename {OOP2_Lab4 => Lab_13}/README.md (100%) rename {OOP2_Lab4 => Lab_13}/main1.cpp (100%) rename {OOP2_Lab5 => Lab_14}/README.md (100%) rename {OOP2_Lab5 => Lab_14}/Source.cpp (100%) rename {OOP2_Lab6 => Lab_15}/README.md (100%) rename {OOP2_Lab6 => Lab_15}/Source.cpp (100%) rename {OOP2_Lab7 => Lab_16}/README.docx (100%) rename {OOP2_Lab7 => Lab_16}/Source.cpp (100%) rename {OOP2_Lab7_Extra => Lab_17}/Activity-1.docx (100%) rename {OOP2_Lab7_Extra => Lab_17}/Education.cpp (100%) rename {OOP2_Lab8 => Lab_18}/README.md (100%) rename {OOP2_Lab8 => Lab_18}/main.cpp (100%) rename {OOP2_Lab9 => Lab_19}/README.md (100%) rename {OOP2_Lab9 => Lab_19}/contacts.txt (100%) rename {OOP2_Lab9 => Lab_19}/main.cpp (100%) rename {OOP2_Lab9 => Lab_19}/numbers.txt (100%) rename {OOP2_Lab9 => Lab_19}/one.txt (100%) rename {OOP2_Lab9 => Lab_19}/total.txt (100%) rename {OOP2_Lab9 => Lab_19}/two.txt (100%) rename {OOP2_Lab10 => Lab_20}/Person.cpp (100%) rename {OOP2_Lab10 => Lab_20}/README.md (100%) rename {OOP2_Lab10 => Lab_20}/contacts (100%) rename {OOP2-FA => Lab_21}/city_temperature_control.cpp (100%) rename {OOP2-FA => Lab_21}/e-commerce.cpp (100%) rename {Bank management system => Project_Bank_Management_System}/Header.h (100%) rename {Bank management system => Project_Bank_Management_System}/Project3.exe (100%) rename {Bank management system => Project_Bank_Management_System}/data.txt (100%) rename {Bank management system => Project_Bank_Management_System}/main.cpp (100%) rename {E-Commerce App V1.0 => Project_E-Commerce_App_V1.0}/BreadBakery.h (100%) rename {E-Commerce App V1.0 => Project_E-Commerce_App_V1.0}/Header.h (100%) rename {E-Commerce App V1.0 => Project_E-Commerce_App_V1.0}/Loading.h (100%) rename {E-Commerce App V1.0 => Project_E-Commerce_App_V1.0}/Vegetables.h (100%) rename {E-Commerce App V1.0 => Project_E-Commerce_App_V1.0}/Water.h (100%) rename {E-Commerce App V1.0 => Project_E-Commerce_App_V1.0}/main.cpp (100%) rename {E-Commerce App V2.0 => Project_E-Commerce_App_V2.0}/Loading_Page.h (100%) rename {E-Commerce App V2.0 => Project_E-Commerce_App_V2.0}/Person.h (100%) rename {E-Commerce App V2.0 => Project_E-Commerce_App_V2.0}/Products.h (100%) rename {E-Commerce App V2.0 => Project_E-Commerce_App_V2.0}/User_Info.txt (100%) rename {E-Commerce App V2.0 => Project_E-Commerce_App_V2.0}/Validation.h (100%) rename {E-Commerce App V2.0 => Project_E-Commerce_App_V2.0}/main.cpp (100%) rename {E-Commerce App V2.0 => Project_E-Commerce_App_V2.0}/screenshots/authentication.png (100%) rename {E-Commerce App V2.0 => Project_E-Commerce_App_V2.0}/screenshots/authorization.png (100%) rename {E-Commerce App V2.0 => Project_E-Commerce_App_V2.0}/screenshots/loading.png (100%) rename {E-Commerce App V2.0 => Project_E-Commerce_App_V2.0}/screenshots/menu.png (100%) rename {E-Commerce App V2.0 => Project_E-Commerce_App_V2.0}/screenshots/product list.png (100%) rename {E-Commerce App V3.0 => Project_E-Commerce_App_V3.0}/Loading_Page.h (100%) rename {E-Commerce App V3.0 => Project_E-Commerce_App_V3.0}/Password_Vali_Asterisk.h (100%) rename {E-Commerce App V3.0 => Project_E-Commerce_App_V3.0}/Person.h (100%) rename {E-Commerce App V3.0 => Project_E-Commerce_App_V3.0}/Products.h (100%) rename {E-Commerce App V3.0 => Project_E-Commerce_App_V3.0}/User_Info.txt (100%) rename {E-Commerce App V3.0 => Project_E-Commerce_App_V3.0}/Validation.h (100%) rename {E-Commerce App V3.0 => Project_E-Commerce_App_V3.0}/main.cpp (100%) rename {E-Commerce App V3.0 => Project_E-Commerce_App_V3.0}/screenshots/authentication.png (100%) rename {E-Commerce App V3.0 => Project_E-Commerce_App_V3.0}/screenshots/authorization.png (100%) rename {E-Commerce App V3.0 => Project_E-Commerce_App_V3.0}/screenshots/loading.png (100%) rename {E-Commerce App V3.0 => Project_E-Commerce_App_V3.0}/screenshots/menu.png (100%) rename {E-Commerce App V3.0 => Project_E-Commerce_App_V3.0}/screenshots/product list.png (100%) rename {Labirint Game => Project_Labirint_Game}/olaf-game.cpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/bin/openal32.dll (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/bin/sfml-audio-2.dll (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/bin/sfml-audio-d-2.dll (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/bin/sfml-graphics-2.dll (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/bin/sfml-graphics-d-2.dll (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/bin/sfml-network-2.dll (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/bin/sfml-network-d-2.dll (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/bin/sfml-system-2.dll (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/bin/sfml-system-d-2.dll (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/bin/sfml-window-2.dll (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/bin/sfml-window-d-2.dll (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/AlResource.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/Export.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/InputSoundFile.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/Listener.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/Music.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/OutputSoundFile.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/Sound.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/SoundBuffer.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/SoundBufferRecorder.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/SoundFileFactory.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/SoundFileFactory.inl (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/SoundFileReader.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/SoundFileWriter.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/SoundRecorder.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/SoundSource.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Audio/SoundStream.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Config.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/GpuPreference.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/BlendMode.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/CircleShape.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Color.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/ConvexShape.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Drawable.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Export.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Font.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Glsl.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Glsl.inl (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Glyph.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Image.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/PrimitiveType.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Rect.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Rect.inl (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/RectangleShape.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/RenderStates.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/RenderTarget.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/RenderTexture.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/RenderWindow.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Shader.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Shape.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Sprite.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Text.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Texture.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Transform.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Transformable.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/Vertex.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/VertexArray.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/VertexBuffer.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Graphics/View.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Main.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Network.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Network/Export.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Network/Ftp.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Network/Http.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Network/IpAddress.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Network/Packet.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Network/Socket.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Network/SocketHandle.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Network/SocketSelector.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Network/TcpListener.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Network/TcpSocket.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Network/UdpSocket.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/OpenGL.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Clock.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Err.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Export.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/FileInputStream.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/InputStream.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Lock.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/MemoryInputStream.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Mutex.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/NativeActivity.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/NonCopyable.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Sleep.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/String.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/String.inl (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Thread.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Thread.inl (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/ThreadLocal.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/ThreadLocalPtr.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/ThreadLocalPtr.inl (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Time.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Utf.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Utf.inl (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Vector2.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Vector2.inl (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Vector3.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/System/Vector3.inl (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/Clipboard.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/Context.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/ContextSettings.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/Cursor.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/Event.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/Export.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/GlResource.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/Joystick.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/Keyboard.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/Mouse.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/Sensor.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/Touch.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/VideoMode.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/Window.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/WindowHandle.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/include/SFML/Window/WindowStyle.hpp (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/cmake/SFML/SFMLConfig.cmake (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/cmake/SFML/SFMLConfigDependencies.cmake (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/cmake/SFML/SFMLConfigVersion.cmake (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/cmake/SFML/SFMLSharedTargets-debug.cmake (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/cmake/SFML/SFMLSharedTargets-release.cmake (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/cmake/SFML/SFMLSharedTargets.cmake (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/cmake/SFML/SFMLStaticTargets-debug.cmake (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/cmake/SFML/SFMLStaticTargets-release.cmake (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/cmake/SFML/SFMLStaticTargets.cmake (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/flac.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/freetype.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/ogg.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/openal32.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-audio-d.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-audio-d.pdb (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-audio-s-d.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-audio-s-d.pdb (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-audio-s.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-audio.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-graphics-d.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-graphics-d.pdb (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-graphics-s-d.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-graphics-s-d.pdb (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-graphics-s.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-graphics.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-main-d.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-main-s-d.pdb (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-main.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-network-d.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-network-d.pdb (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-network-s-d.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-network-s-d.pdb (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-network-s.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-network.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-system-d.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-system-d.pdb (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-system-s-d.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-system-s-d.pdb (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-system-s.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-system.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-window-d.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-window-d.pdb (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-window-s-d.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-window-s-d.pdb (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-window-s.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/sfml-window.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/vorbis.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/vorbisenc.lib (100%) rename {Labirint Game => Project_Labirint_Game}/sfml/lib/vorbisfile.lib (100%) rename {New Year Congratulation => Project_New_Year_Congratulation}/new_year.cpp (100%) rename {New Year Congratulation => Project_New_Year_Congratulation}/only_numbers.cpp (100%) rename {Quiz Game => Project_Quiz_Game}/quiz-game-with-oop.cpp (100%) rename {Quiz Game => Project_Quiz_Game}/quiz-game.cpp (100%) rename {Snake Game => Project_Snake_Game}/snake-game.cpp (100%) diff --git a/OOP1-Lab3/Digits.cpp b/Lab_03/Digits.cpp similarity index 100% rename from OOP1-Lab3/Digits.cpp rename to Lab_03/Digits.cpp diff --git a/OOP1-Lab3/Fibonacci.cpp b/Lab_03/Fibonacci.cpp similarity index 100% rename from OOP1-Lab3/Fibonacci.cpp rename to Lab_03/Fibonacci.cpp diff --git a/OOP1-Lab3/Operators.cpp b/Lab_03/Operators.cpp similarity index 100% rename from OOP1-Lab3/Operators.cpp rename to Lab_03/Operators.cpp diff --git a/OOP1-Lab3/Prime.cpp b/Lab_03/Prime.cpp similarity index 100% rename from OOP1-Lab3/Prime.cpp rename to Lab_03/Prime.cpp diff --git a/OOP1-Lab3/README.md b/Lab_03/README.md similarity index 100% rename from OOP1-Lab3/README.md rename to Lab_03/README.md diff --git a/OOP1-Lab3/Sum1.cpp b/Lab_03/Sum1.cpp similarity index 100% rename from OOP1-Lab3/Sum1.cpp rename to Lab_03/Sum1.cpp diff --git a/OOP1-Lab3/Sum2.cpp b/Lab_03/Sum2.cpp similarity index 100% rename from OOP1-Lab3/Sum2.cpp rename to Lab_03/Sum2.cpp diff --git a/OOP1-Lab3/Weekdays.cpp b/Lab_03/Weekdays.cpp similarity index 100% rename from OOP1-Lab3/Weekdays.cpp rename to Lab_03/Weekdays.cpp diff --git a/OOP1-Lab3/mn.cpp b/Lab_03/mn.cpp similarity index 100% rename from OOP1-Lab3/mn.cpp rename to Lab_03/mn.cpp diff --git a/OOP1-Lab4/README.md b/Lab_04/README.md similarity index 100% rename from OOP1-Lab4/README.md rename to Lab_04/README.md diff --git a/OOP1-Lab4/Source.cpp b/Lab_04/Source.cpp similarity index 100% rename from OOP1-Lab4/Source.cpp rename to Lab_04/Source.cpp diff --git a/OOP1-Lab4/Source1.cpp b/Lab_04/Source1.cpp similarity index 100% rename from OOP1-Lab4/Source1.cpp rename to Lab_04/Source1.cpp diff --git a/OOP1-Lab4/Source2.cpp b/Lab_04/Source2.cpp similarity index 100% rename from OOP1-Lab4/Source2.cpp rename to Lab_04/Source2.cpp diff --git a/OOP1-Lab4/Source3.cpp b/Lab_04/Source3.cpp similarity index 100% rename from OOP1-Lab4/Source3.cpp rename to Lab_04/Source3.cpp diff --git a/OOP1-Lab4/Source4.cpp b/Lab_04/Source4.cpp similarity index 100% rename from OOP1-Lab4/Source4.cpp rename to Lab_04/Source4.cpp diff --git a/OOP1-Lab5/README.md b/Lab_05/README.md similarity index 100% rename from OOP1-Lab5/README.md rename to Lab_05/README.md diff --git a/OOP1-Lab5/Source.cpp b/Lab_05/Source.cpp similarity index 100% rename from OOP1-Lab5/Source.cpp rename to Lab_05/Source.cpp diff --git a/OOP1-Lab5/Source1.cpp b/Lab_05/Source1.cpp similarity index 100% rename from OOP1-Lab5/Source1.cpp rename to Lab_05/Source1.cpp diff --git a/OOP1-Lab5/Source2.cpp b/Lab_05/Source2.cpp similarity index 100% rename from OOP1-Lab5/Source2.cpp rename to Lab_05/Source2.cpp diff --git a/OOP1-Lab5/Source3.cpp b/Lab_05/Source3.cpp similarity index 100% rename from OOP1-Lab5/Source3.cpp rename to Lab_05/Source3.cpp diff --git a/OOP1-Lab6/README.md b/Lab_06/README.md similarity index 100% rename from OOP1-Lab6/README.md rename to Lab_06/README.md diff --git a/OOP1-Lab6/Source.cpp b/Lab_06/Source.cpp similarity index 100% rename from OOP1-Lab6/Source.cpp rename to Lab_06/Source.cpp diff --git a/OOP1-Lab7/README.md b/Lab_07/README.md similarity index 100% rename from OOP1-Lab7/README.md rename to Lab_07/README.md diff --git a/OOP1-Lab7/fibonacci.cpp b/Lab_07/fibonacci.cpp similarity index 100% rename from OOP1-Lab7/fibonacci.cpp rename to Lab_07/fibonacci.cpp diff --git a/OOP1-Lab7/gcd.cpp b/Lab_07/gcd.cpp similarity index 100% rename from OOP1-Lab7/gcd.cpp rename to Lab_07/gcd.cpp diff --git a/OOP1-Lab7/power.cpp b/Lab_07/power.cpp similarity index 100% rename from OOP1-Lab7/power.cpp rename to Lab_07/power.cpp diff --git a/OOP1-Lab7/sum.cpp b/Lab_07/sum.cpp similarity index 100% rename from OOP1-Lab7/sum.cpp rename to Lab_07/sum.cpp diff --git a/OOP1-Lab8/README.md b/Lab_08/README.md similarity index 100% rename from OOP1-Lab8/README.md rename to Lab_08/README.md diff --git a/OOP1-Lab8/Sort.cpp b/Lab_08/Sort.cpp similarity index 100% rename from OOP1-Lab8/Sort.cpp rename to Lab_08/Sort.cpp diff --git a/OOP1-Lab8/average.cpp b/Lab_08/average.cpp similarity index 100% rename from OOP1-Lab8/average.cpp rename to Lab_08/average.cpp diff --git a/OOP1-Lab8/deleting.cpp b/Lab_08/deleting.cpp similarity index 100% rename from OOP1-Lab8/deleting.cpp rename to Lab_08/deleting.cpp diff --git a/OOP1-Lab8/display.cpp b/Lab_08/display.cpp similarity index 100% rename from OOP1-Lab8/display.cpp rename to Lab_08/display.cpp diff --git a/OOP1-Lab8/inserting.cpp b/Lab_08/inserting.cpp similarity index 100% rename from OOP1-Lab8/inserting.cpp rename to Lab_08/inserting.cpp diff --git a/OOP1-Lab9/Pascal.cpp b/Lab_09/Pascal.cpp similarity index 100% rename from OOP1-Lab9/Pascal.cpp rename to Lab_09/Pascal.cpp diff --git a/OOP1-Lab9/Pascal2.cpp b/Lab_09/Pascal2.cpp similarity index 100% rename from OOP1-Lab9/Pascal2.cpp rename to Lab_09/Pascal2.cpp diff --git a/OOP1-Lab9/README.md b/Lab_09/README.md similarity index 100% rename from OOP1-Lab9/README.md rename to Lab_09/README.md diff --git a/OOP1-Lab9/Source1.cpp b/Lab_09/Source1.cpp similarity index 100% rename from OOP1-Lab9/Source1.cpp rename to Lab_09/Source1.cpp diff --git a/OOP1-Lab9/Source2.cpp b/Lab_09/Source2.cpp similarity index 100% rename from OOP1-Lab9/Source2.cpp rename to Lab_09/Source2.cpp diff --git a/OOP2_Lab1/README.md b/Lab_10/README.md similarity index 100% rename from OOP2_Lab1/README.md rename to Lab_10/README.md diff --git a/OOP2_Lab1/studentCourseEvaluation.cpp b/Lab_10/studentCourseEvaluation.cpp similarity index 100% rename from OOP2_Lab1/studentCourseEvaluation.cpp rename to Lab_10/studentCourseEvaluation.cpp diff --git a/OOP2_Lab2/README.md b/Lab_11/README.md similarity index 100% rename from OOP2_Lab2/README.md rename to Lab_11/README.md diff --git a/OOP2_Lab2/Source.cpp b/Lab_11/Source.cpp similarity index 100% rename from OOP2_Lab2/Source.cpp rename to Lab_11/Source.cpp diff --git a/OOP2_Lab3/README.md b/Lab_12/README.md similarity index 100% rename from OOP2_Lab3/README.md rename to Lab_12/README.md diff --git a/OOP2_Lab3/main.cpp b/Lab_12/main.cpp similarity index 100% rename from OOP2_Lab3/main.cpp rename to Lab_12/main.cpp diff --git a/OOP2_Lab4/README.md b/Lab_13/README.md similarity index 100% rename from OOP2_Lab4/README.md rename to Lab_13/README.md diff --git a/OOP2_Lab4/main1.cpp b/Lab_13/main1.cpp similarity index 100% rename from OOP2_Lab4/main1.cpp rename to Lab_13/main1.cpp diff --git a/OOP2_Lab5/README.md b/Lab_14/README.md similarity index 100% rename from OOP2_Lab5/README.md rename to Lab_14/README.md diff --git a/OOP2_Lab5/Source.cpp b/Lab_14/Source.cpp similarity index 100% rename from OOP2_Lab5/Source.cpp rename to Lab_14/Source.cpp diff --git a/OOP2_Lab6/README.md b/Lab_15/README.md similarity index 100% rename from OOP2_Lab6/README.md rename to Lab_15/README.md diff --git a/OOP2_Lab6/Source.cpp b/Lab_15/Source.cpp similarity index 100% rename from OOP2_Lab6/Source.cpp rename to Lab_15/Source.cpp diff --git a/OOP2_Lab7/README.docx b/Lab_16/README.docx similarity index 100% rename from OOP2_Lab7/README.docx rename to Lab_16/README.docx diff --git a/OOP2_Lab7/Source.cpp b/Lab_16/Source.cpp similarity index 100% rename from OOP2_Lab7/Source.cpp rename to Lab_16/Source.cpp diff --git a/OOP2_Lab7_Extra/Activity-1.docx b/Lab_17/Activity-1.docx similarity index 100% rename from OOP2_Lab7_Extra/Activity-1.docx rename to Lab_17/Activity-1.docx diff --git a/OOP2_Lab7_Extra/Education.cpp b/Lab_17/Education.cpp similarity index 100% rename from OOP2_Lab7_Extra/Education.cpp rename to Lab_17/Education.cpp diff --git a/OOP2_Lab8/README.md b/Lab_18/README.md similarity index 100% rename from OOP2_Lab8/README.md rename to Lab_18/README.md diff --git a/OOP2_Lab8/main.cpp b/Lab_18/main.cpp similarity index 100% rename from OOP2_Lab8/main.cpp rename to Lab_18/main.cpp diff --git a/OOP2_Lab9/README.md b/Lab_19/README.md similarity index 100% rename from OOP2_Lab9/README.md rename to Lab_19/README.md diff --git a/OOP2_Lab9/contacts.txt b/Lab_19/contacts.txt similarity index 100% rename from OOP2_Lab9/contacts.txt rename to Lab_19/contacts.txt diff --git a/OOP2_Lab9/main.cpp b/Lab_19/main.cpp similarity index 100% rename from OOP2_Lab9/main.cpp rename to Lab_19/main.cpp diff --git a/OOP2_Lab9/numbers.txt b/Lab_19/numbers.txt similarity index 100% rename from OOP2_Lab9/numbers.txt rename to Lab_19/numbers.txt diff --git a/OOP2_Lab9/one.txt b/Lab_19/one.txt similarity index 100% rename from OOP2_Lab9/one.txt rename to Lab_19/one.txt diff --git a/OOP2_Lab9/total.txt b/Lab_19/total.txt similarity index 100% rename from OOP2_Lab9/total.txt rename to Lab_19/total.txt diff --git a/OOP2_Lab9/two.txt b/Lab_19/two.txt similarity index 100% rename from OOP2_Lab9/two.txt rename to Lab_19/two.txt diff --git a/OOP2_Lab10/Person.cpp b/Lab_20/Person.cpp similarity index 100% rename from OOP2_Lab10/Person.cpp rename to Lab_20/Person.cpp diff --git a/OOP2_Lab10/README.md b/Lab_20/README.md similarity index 100% rename from OOP2_Lab10/README.md rename to Lab_20/README.md diff --git a/OOP2_Lab10/contacts b/Lab_20/contacts similarity index 100% rename from OOP2_Lab10/contacts rename to Lab_20/contacts diff --git a/OOP2-FA/city_temperature_control.cpp b/Lab_21/city_temperature_control.cpp similarity index 100% rename from OOP2-FA/city_temperature_control.cpp rename to Lab_21/city_temperature_control.cpp diff --git a/OOP2-FA/e-commerce.cpp b/Lab_21/e-commerce.cpp similarity index 100% rename from OOP2-FA/e-commerce.cpp rename to Lab_21/e-commerce.cpp diff --git a/Bank management system/Header.h b/Project_Bank_Management_System/Header.h similarity index 100% rename from Bank management system/Header.h rename to Project_Bank_Management_System/Header.h diff --git a/Bank management system/Project3.exe b/Project_Bank_Management_System/Project3.exe similarity index 100% rename from Bank management system/Project3.exe rename to Project_Bank_Management_System/Project3.exe diff --git a/Bank management system/data.txt b/Project_Bank_Management_System/data.txt similarity index 100% rename from Bank management system/data.txt rename to Project_Bank_Management_System/data.txt diff --git a/Bank management system/main.cpp b/Project_Bank_Management_System/main.cpp similarity index 100% rename from Bank management system/main.cpp rename to Project_Bank_Management_System/main.cpp diff --git a/E-Commerce App V1.0/BreadBakery.h b/Project_E-Commerce_App_V1.0/BreadBakery.h similarity index 100% rename from E-Commerce App V1.0/BreadBakery.h rename to Project_E-Commerce_App_V1.0/BreadBakery.h diff --git a/E-Commerce App V1.0/Header.h b/Project_E-Commerce_App_V1.0/Header.h similarity index 100% rename from E-Commerce App V1.0/Header.h rename to Project_E-Commerce_App_V1.0/Header.h diff --git a/E-Commerce App V1.0/Loading.h b/Project_E-Commerce_App_V1.0/Loading.h similarity index 100% rename from E-Commerce App V1.0/Loading.h rename to Project_E-Commerce_App_V1.0/Loading.h diff --git a/E-Commerce App V1.0/Vegetables.h b/Project_E-Commerce_App_V1.0/Vegetables.h similarity index 100% rename from E-Commerce App V1.0/Vegetables.h rename to Project_E-Commerce_App_V1.0/Vegetables.h diff --git a/E-Commerce App V1.0/Water.h b/Project_E-Commerce_App_V1.0/Water.h similarity index 100% rename from E-Commerce App V1.0/Water.h rename to Project_E-Commerce_App_V1.0/Water.h diff --git a/E-Commerce App V1.0/main.cpp b/Project_E-Commerce_App_V1.0/main.cpp similarity index 100% rename from E-Commerce App V1.0/main.cpp rename to Project_E-Commerce_App_V1.0/main.cpp diff --git a/E-Commerce App V2.0/Loading_Page.h b/Project_E-Commerce_App_V2.0/Loading_Page.h similarity index 100% rename from E-Commerce App V2.0/Loading_Page.h rename to Project_E-Commerce_App_V2.0/Loading_Page.h diff --git a/E-Commerce App V2.0/Person.h b/Project_E-Commerce_App_V2.0/Person.h similarity index 100% rename from E-Commerce App V2.0/Person.h rename to Project_E-Commerce_App_V2.0/Person.h diff --git a/E-Commerce App V2.0/Products.h b/Project_E-Commerce_App_V2.0/Products.h similarity index 100% rename from E-Commerce App V2.0/Products.h rename to Project_E-Commerce_App_V2.0/Products.h diff --git a/E-Commerce App V2.0/User_Info.txt b/Project_E-Commerce_App_V2.0/User_Info.txt similarity index 100% rename from E-Commerce App V2.0/User_Info.txt rename to Project_E-Commerce_App_V2.0/User_Info.txt diff --git a/E-Commerce App V2.0/Validation.h b/Project_E-Commerce_App_V2.0/Validation.h similarity index 100% rename from E-Commerce App V2.0/Validation.h rename to Project_E-Commerce_App_V2.0/Validation.h diff --git a/E-Commerce App V2.0/main.cpp b/Project_E-Commerce_App_V2.0/main.cpp similarity index 100% rename from E-Commerce App V2.0/main.cpp rename to Project_E-Commerce_App_V2.0/main.cpp diff --git a/E-Commerce App V2.0/screenshots/authentication.png b/Project_E-Commerce_App_V2.0/screenshots/authentication.png similarity index 100% rename from E-Commerce App V2.0/screenshots/authentication.png rename to Project_E-Commerce_App_V2.0/screenshots/authentication.png diff --git a/E-Commerce App V2.0/screenshots/authorization.png b/Project_E-Commerce_App_V2.0/screenshots/authorization.png similarity index 100% rename from E-Commerce App V2.0/screenshots/authorization.png rename to Project_E-Commerce_App_V2.0/screenshots/authorization.png diff --git a/E-Commerce App V2.0/screenshots/loading.png b/Project_E-Commerce_App_V2.0/screenshots/loading.png similarity index 100% rename from E-Commerce App V2.0/screenshots/loading.png rename to Project_E-Commerce_App_V2.0/screenshots/loading.png diff --git a/E-Commerce App V2.0/screenshots/menu.png b/Project_E-Commerce_App_V2.0/screenshots/menu.png similarity index 100% rename from E-Commerce App V2.0/screenshots/menu.png rename to Project_E-Commerce_App_V2.0/screenshots/menu.png diff --git a/E-Commerce App V2.0/screenshots/product list.png b/Project_E-Commerce_App_V2.0/screenshots/product list.png similarity index 100% rename from E-Commerce App V2.0/screenshots/product list.png rename to Project_E-Commerce_App_V2.0/screenshots/product list.png diff --git a/E-Commerce App V3.0/Loading_Page.h b/Project_E-Commerce_App_V3.0/Loading_Page.h similarity index 100% rename from E-Commerce App V3.0/Loading_Page.h rename to Project_E-Commerce_App_V3.0/Loading_Page.h diff --git a/E-Commerce App V3.0/Password_Vali_Asterisk.h b/Project_E-Commerce_App_V3.0/Password_Vali_Asterisk.h similarity index 100% rename from E-Commerce App V3.0/Password_Vali_Asterisk.h rename to Project_E-Commerce_App_V3.0/Password_Vali_Asterisk.h diff --git a/E-Commerce App V3.0/Person.h b/Project_E-Commerce_App_V3.0/Person.h similarity index 100% rename from E-Commerce App V3.0/Person.h rename to Project_E-Commerce_App_V3.0/Person.h diff --git a/E-Commerce App V3.0/Products.h b/Project_E-Commerce_App_V3.0/Products.h similarity index 100% rename from E-Commerce App V3.0/Products.h rename to Project_E-Commerce_App_V3.0/Products.h diff --git a/E-Commerce App V3.0/User_Info.txt b/Project_E-Commerce_App_V3.0/User_Info.txt similarity index 100% rename from E-Commerce App V3.0/User_Info.txt rename to Project_E-Commerce_App_V3.0/User_Info.txt diff --git a/E-Commerce App V3.0/Validation.h b/Project_E-Commerce_App_V3.0/Validation.h similarity index 100% rename from E-Commerce App V3.0/Validation.h rename to Project_E-Commerce_App_V3.0/Validation.h diff --git a/E-Commerce App V3.0/main.cpp b/Project_E-Commerce_App_V3.0/main.cpp similarity index 100% rename from E-Commerce App V3.0/main.cpp rename to Project_E-Commerce_App_V3.0/main.cpp diff --git a/E-Commerce App V3.0/screenshots/authentication.png b/Project_E-Commerce_App_V3.0/screenshots/authentication.png similarity index 100% rename from E-Commerce App V3.0/screenshots/authentication.png rename to Project_E-Commerce_App_V3.0/screenshots/authentication.png diff --git a/E-Commerce App V3.0/screenshots/authorization.png b/Project_E-Commerce_App_V3.0/screenshots/authorization.png similarity index 100% rename from E-Commerce App V3.0/screenshots/authorization.png rename to Project_E-Commerce_App_V3.0/screenshots/authorization.png diff --git a/E-Commerce App V3.0/screenshots/loading.png b/Project_E-Commerce_App_V3.0/screenshots/loading.png similarity index 100% rename from E-Commerce App V3.0/screenshots/loading.png rename to Project_E-Commerce_App_V3.0/screenshots/loading.png diff --git a/E-Commerce App V3.0/screenshots/menu.png b/Project_E-Commerce_App_V3.0/screenshots/menu.png similarity index 100% rename from E-Commerce App V3.0/screenshots/menu.png rename to Project_E-Commerce_App_V3.0/screenshots/menu.png diff --git a/E-Commerce App V3.0/screenshots/product list.png b/Project_E-Commerce_App_V3.0/screenshots/product list.png similarity index 100% rename from E-Commerce App V3.0/screenshots/product list.png rename to Project_E-Commerce_App_V3.0/screenshots/product list.png diff --git a/Labirint Game/olaf-game.cpp b/Project_Labirint_Game/olaf-game.cpp similarity index 100% rename from Labirint Game/olaf-game.cpp rename to Project_Labirint_Game/olaf-game.cpp diff --git a/Labirint Game/sfml/bin/openal32.dll b/Project_Labirint_Game/sfml/bin/openal32.dll similarity index 100% rename from Labirint Game/sfml/bin/openal32.dll rename to Project_Labirint_Game/sfml/bin/openal32.dll diff --git a/Labirint Game/sfml/bin/sfml-audio-2.dll b/Project_Labirint_Game/sfml/bin/sfml-audio-2.dll similarity index 100% rename from Labirint Game/sfml/bin/sfml-audio-2.dll rename to Project_Labirint_Game/sfml/bin/sfml-audio-2.dll diff --git a/Labirint Game/sfml/bin/sfml-audio-d-2.dll b/Project_Labirint_Game/sfml/bin/sfml-audio-d-2.dll similarity index 100% rename from Labirint Game/sfml/bin/sfml-audio-d-2.dll rename to Project_Labirint_Game/sfml/bin/sfml-audio-d-2.dll diff --git a/Labirint Game/sfml/bin/sfml-graphics-2.dll b/Project_Labirint_Game/sfml/bin/sfml-graphics-2.dll similarity index 100% rename from Labirint Game/sfml/bin/sfml-graphics-2.dll rename to Project_Labirint_Game/sfml/bin/sfml-graphics-2.dll diff --git a/Labirint Game/sfml/bin/sfml-graphics-d-2.dll b/Project_Labirint_Game/sfml/bin/sfml-graphics-d-2.dll similarity index 100% rename from Labirint Game/sfml/bin/sfml-graphics-d-2.dll rename to Project_Labirint_Game/sfml/bin/sfml-graphics-d-2.dll diff --git a/Labirint Game/sfml/bin/sfml-network-2.dll b/Project_Labirint_Game/sfml/bin/sfml-network-2.dll similarity index 100% rename from Labirint Game/sfml/bin/sfml-network-2.dll rename to Project_Labirint_Game/sfml/bin/sfml-network-2.dll diff --git a/Labirint Game/sfml/bin/sfml-network-d-2.dll b/Project_Labirint_Game/sfml/bin/sfml-network-d-2.dll similarity index 100% rename from Labirint Game/sfml/bin/sfml-network-d-2.dll rename to Project_Labirint_Game/sfml/bin/sfml-network-d-2.dll diff --git a/Labirint Game/sfml/bin/sfml-system-2.dll b/Project_Labirint_Game/sfml/bin/sfml-system-2.dll similarity index 100% rename from Labirint Game/sfml/bin/sfml-system-2.dll rename to Project_Labirint_Game/sfml/bin/sfml-system-2.dll diff --git a/Labirint Game/sfml/bin/sfml-system-d-2.dll b/Project_Labirint_Game/sfml/bin/sfml-system-d-2.dll similarity index 100% rename from Labirint Game/sfml/bin/sfml-system-d-2.dll rename to Project_Labirint_Game/sfml/bin/sfml-system-d-2.dll diff --git a/Labirint Game/sfml/bin/sfml-window-2.dll b/Project_Labirint_Game/sfml/bin/sfml-window-2.dll similarity index 100% rename from Labirint Game/sfml/bin/sfml-window-2.dll rename to Project_Labirint_Game/sfml/bin/sfml-window-2.dll diff --git a/Labirint Game/sfml/bin/sfml-window-d-2.dll b/Project_Labirint_Game/sfml/bin/sfml-window-d-2.dll similarity index 100% rename from Labirint Game/sfml/bin/sfml-window-d-2.dll rename to Project_Labirint_Game/sfml/bin/sfml-window-d-2.dll diff --git a/Labirint Game/sfml/include/SFML/Audio.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/AlResource.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/AlResource.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/AlResource.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/AlResource.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/Export.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/Export.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/Export.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/Export.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/InputSoundFile.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/InputSoundFile.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/InputSoundFile.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/InputSoundFile.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/Listener.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/Listener.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/Listener.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/Listener.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/Music.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/Music.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/Music.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/Music.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/OutputSoundFile.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/OutputSoundFile.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/OutputSoundFile.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/OutputSoundFile.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/Sound.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/Sound.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/Sound.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/Sound.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/SoundBuffer.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/SoundBuffer.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/SoundBuffer.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/SoundBuffer.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/SoundBufferRecorder.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/SoundBufferRecorder.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/SoundBufferRecorder.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/SoundBufferRecorder.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/SoundFileFactory.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/SoundFileFactory.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/SoundFileFactory.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/SoundFileFactory.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/SoundFileFactory.inl b/Project_Labirint_Game/sfml/include/SFML/Audio/SoundFileFactory.inl similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/SoundFileFactory.inl rename to Project_Labirint_Game/sfml/include/SFML/Audio/SoundFileFactory.inl diff --git a/Labirint Game/sfml/include/SFML/Audio/SoundFileReader.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/SoundFileReader.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/SoundFileReader.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/SoundFileReader.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/SoundFileWriter.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/SoundFileWriter.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/SoundFileWriter.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/SoundFileWriter.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/SoundRecorder.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/SoundRecorder.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/SoundRecorder.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/SoundRecorder.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/SoundSource.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/SoundSource.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/SoundSource.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/SoundSource.hpp diff --git a/Labirint Game/sfml/include/SFML/Audio/SoundStream.hpp b/Project_Labirint_Game/sfml/include/SFML/Audio/SoundStream.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Audio/SoundStream.hpp rename to Project_Labirint_Game/sfml/include/SFML/Audio/SoundStream.hpp diff --git a/Labirint Game/sfml/include/SFML/Config.hpp b/Project_Labirint_Game/sfml/include/SFML/Config.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Config.hpp rename to Project_Labirint_Game/sfml/include/SFML/Config.hpp diff --git a/Labirint Game/sfml/include/SFML/GpuPreference.hpp b/Project_Labirint_Game/sfml/include/SFML/GpuPreference.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/GpuPreference.hpp rename to Project_Labirint_Game/sfml/include/SFML/GpuPreference.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/BlendMode.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/BlendMode.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/BlendMode.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/BlendMode.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/CircleShape.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/CircleShape.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/CircleShape.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/CircleShape.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Color.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Color.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Color.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Color.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/ConvexShape.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/ConvexShape.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/ConvexShape.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/ConvexShape.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Drawable.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Drawable.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Drawable.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Drawable.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Export.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Export.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Export.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Export.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Font.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Font.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Font.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Font.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Glsl.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Glsl.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Glsl.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Glsl.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Glsl.inl b/Project_Labirint_Game/sfml/include/SFML/Graphics/Glsl.inl similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Glsl.inl rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Glsl.inl diff --git a/Labirint Game/sfml/include/SFML/Graphics/Glyph.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Glyph.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Glyph.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Glyph.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Image.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Image.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Image.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Image.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/PrimitiveType.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/PrimitiveType.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/PrimitiveType.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/PrimitiveType.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Rect.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Rect.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Rect.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Rect.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Rect.inl b/Project_Labirint_Game/sfml/include/SFML/Graphics/Rect.inl similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Rect.inl rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Rect.inl diff --git a/Labirint Game/sfml/include/SFML/Graphics/RectangleShape.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/RectangleShape.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/RectangleShape.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/RectangleShape.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/RenderStates.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/RenderStates.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/RenderStates.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/RenderStates.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/RenderTarget.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/RenderTarget.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/RenderTarget.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/RenderTarget.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/RenderTexture.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/RenderTexture.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/RenderTexture.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/RenderTexture.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/RenderWindow.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/RenderWindow.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/RenderWindow.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/RenderWindow.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Shader.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Shader.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Shader.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Shader.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Shape.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Shape.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Shape.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Shape.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Sprite.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Sprite.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Sprite.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Sprite.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Text.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Text.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Text.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Text.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Texture.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Texture.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Texture.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Texture.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Transform.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Transform.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Transform.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Transform.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Transformable.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Transformable.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Transformable.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Transformable.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/Vertex.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/Vertex.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/Vertex.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/Vertex.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/VertexArray.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/VertexArray.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/VertexArray.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/VertexArray.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/VertexBuffer.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/VertexBuffer.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/VertexBuffer.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/VertexBuffer.hpp diff --git a/Labirint Game/sfml/include/SFML/Graphics/View.hpp b/Project_Labirint_Game/sfml/include/SFML/Graphics/View.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Graphics/View.hpp rename to Project_Labirint_Game/sfml/include/SFML/Graphics/View.hpp diff --git a/Labirint Game/sfml/include/SFML/Main.hpp b/Project_Labirint_Game/sfml/include/SFML/Main.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Main.hpp rename to Project_Labirint_Game/sfml/include/SFML/Main.hpp diff --git a/Labirint Game/sfml/include/SFML/Network.hpp b/Project_Labirint_Game/sfml/include/SFML/Network.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Network.hpp rename to Project_Labirint_Game/sfml/include/SFML/Network.hpp diff --git a/Labirint Game/sfml/include/SFML/Network/Export.hpp b/Project_Labirint_Game/sfml/include/SFML/Network/Export.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Network/Export.hpp rename to Project_Labirint_Game/sfml/include/SFML/Network/Export.hpp diff --git a/Labirint Game/sfml/include/SFML/Network/Ftp.hpp b/Project_Labirint_Game/sfml/include/SFML/Network/Ftp.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Network/Ftp.hpp rename to Project_Labirint_Game/sfml/include/SFML/Network/Ftp.hpp diff --git a/Labirint Game/sfml/include/SFML/Network/Http.hpp b/Project_Labirint_Game/sfml/include/SFML/Network/Http.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Network/Http.hpp rename to Project_Labirint_Game/sfml/include/SFML/Network/Http.hpp diff --git a/Labirint Game/sfml/include/SFML/Network/IpAddress.hpp b/Project_Labirint_Game/sfml/include/SFML/Network/IpAddress.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Network/IpAddress.hpp rename to Project_Labirint_Game/sfml/include/SFML/Network/IpAddress.hpp diff --git a/Labirint Game/sfml/include/SFML/Network/Packet.hpp b/Project_Labirint_Game/sfml/include/SFML/Network/Packet.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Network/Packet.hpp rename to Project_Labirint_Game/sfml/include/SFML/Network/Packet.hpp diff --git a/Labirint Game/sfml/include/SFML/Network/Socket.hpp b/Project_Labirint_Game/sfml/include/SFML/Network/Socket.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Network/Socket.hpp rename to Project_Labirint_Game/sfml/include/SFML/Network/Socket.hpp diff --git a/Labirint Game/sfml/include/SFML/Network/SocketHandle.hpp b/Project_Labirint_Game/sfml/include/SFML/Network/SocketHandle.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Network/SocketHandle.hpp rename to Project_Labirint_Game/sfml/include/SFML/Network/SocketHandle.hpp diff --git a/Labirint Game/sfml/include/SFML/Network/SocketSelector.hpp b/Project_Labirint_Game/sfml/include/SFML/Network/SocketSelector.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Network/SocketSelector.hpp rename to Project_Labirint_Game/sfml/include/SFML/Network/SocketSelector.hpp diff --git a/Labirint Game/sfml/include/SFML/Network/TcpListener.hpp b/Project_Labirint_Game/sfml/include/SFML/Network/TcpListener.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Network/TcpListener.hpp rename to Project_Labirint_Game/sfml/include/SFML/Network/TcpListener.hpp diff --git a/Labirint Game/sfml/include/SFML/Network/TcpSocket.hpp b/Project_Labirint_Game/sfml/include/SFML/Network/TcpSocket.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Network/TcpSocket.hpp rename to Project_Labirint_Game/sfml/include/SFML/Network/TcpSocket.hpp diff --git a/Labirint Game/sfml/include/SFML/Network/UdpSocket.hpp b/Project_Labirint_Game/sfml/include/SFML/Network/UdpSocket.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Network/UdpSocket.hpp rename to Project_Labirint_Game/sfml/include/SFML/Network/UdpSocket.hpp diff --git a/Labirint Game/sfml/include/SFML/OpenGL.hpp b/Project_Labirint_Game/sfml/include/SFML/OpenGL.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/OpenGL.hpp rename to Project_Labirint_Game/sfml/include/SFML/OpenGL.hpp diff --git a/Labirint Game/sfml/include/SFML/System.hpp b/Project_Labirint_Game/sfml/include/SFML/System.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System.hpp rename to Project_Labirint_Game/sfml/include/SFML/System.hpp diff --git a/Labirint Game/sfml/include/SFML/System/Clock.hpp b/Project_Labirint_Game/sfml/include/SFML/System/Clock.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Clock.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/Clock.hpp diff --git a/Labirint Game/sfml/include/SFML/System/Err.hpp b/Project_Labirint_Game/sfml/include/SFML/System/Err.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Err.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/Err.hpp diff --git a/Labirint Game/sfml/include/SFML/System/Export.hpp b/Project_Labirint_Game/sfml/include/SFML/System/Export.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Export.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/Export.hpp diff --git a/Labirint Game/sfml/include/SFML/System/FileInputStream.hpp b/Project_Labirint_Game/sfml/include/SFML/System/FileInputStream.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/FileInputStream.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/FileInputStream.hpp diff --git a/Labirint Game/sfml/include/SFML/System/InputStream.hpp b/Project_Labirint_Game/sfml/include/SFML/System/InputStream.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/InputStream.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/InputStream.hpp diff --git a/Labirint Game/sfml/include/SFML/System/Lock.hpp b/Project_Labirint_Game/sfml/include/SFML/System/Lock.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Lock.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/Lock.hpp diff --git a/Labirint Game/sfml/include/SFML/System/MemoryInputStream.hpp b/Project_Labirint_Game/sfml/include/SFML/System/MemoryInputStream.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/MemoryInputStream.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/MemoryInputStream.hpp diff --git a/Labirint Game/sfml/include/SFML/System/Mutex.hpp b/Project_Labirint_Game/sfml/include/SFML/System/Mutex.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Mutex.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/Mutex.hpp diff --git a/Labirint Game/sfml/include/SFML/System/NativeActivity.hpp b/Project_Labirint_Game/sfml/include/SFML/System/NativeActivity.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/NativeActivity.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/NativeActivity.hpp diff --git a/Labirint Game/sfml/include/SFML/System/NonCopyable.hpp b/Project_Labirint_Game/sfml/include/SFML/System/NonCopyable.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/NonCopyable.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/NonCopyable.hpp diff --git a/Labirint Game/sfml/include/SFML/System/Sleep.hpp b/Project_Labirint_Game/sfml/include/SFML/System/Sleep.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Sleep.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/Sleep.hpp diff --git a/Labirint Game/sfml/include/SFML/System/String.hpp b/Project_Labirint_Game/sfml/include/SFML/System/String.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/String.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/String.hpp diff --git a/Labirint Game/sfml/include/SFML/System/String.inl b/Project_Labirint_Game/sfml/include/SFML/System/String.inl similarity index 100% rename from Labirint Game/sfml/include/SFML/System/String.inl rename to Project_Labirint_Game/sfml/include/SFML/System/String.inl diff --git a/Labirint Game/sfml/include/SFML/System/Thread.hpp b/Project_Labirint_Game/sfml/include/SFML/System/Thread.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Thread.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/Thread.hpp diff --git a/Labirint Game/sfml/include/SFML/System/Thread.inl b/Project_Labirint_Game/sfml/include/SFML/System/Thread.inl similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Thread.inl rename to Project_Labirint_Game/sfml/include/SFML/System/Thread.inl diff --git a/Labirint Game/sfml/include/SFML/System/ThreadLocal.hpp b/Project_Labirint_Game/sfml/include/SFML/System/ThreadLocal.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/ThreadLocal.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/ThreadLocal.hpp diff --git a/Labirint Game/sfml/include/SFML/System/ThreadLocalPtr.hpp b/Project_Labirint_Game/sfml/include/SFML/System/ThreadLocalPtr.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/ThreadLocalPtr.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/ThreadLocalPtr.hpp diff --git a/Labirint Game/sfml/include/SFML/System/ThreadLocalPtr.inl b/Project_Labirint_Game/sfml/include/SFML/System/ThreadLocalPtr.inl similarity index 100% rename from Labirint Game/sfml/include/SFML/System/ThreadLocalPtr.inl rename to Project_Labirint_Game/sfml/include/SFML/System/ThreadLocalPtr.inl diff --git a/Labirint Game/sfml/include/SFML/System/Time.hpp b/Project_Labirint_Game/sfml/include/SFML/System/Time.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Time.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/Time.hpp diff --git a/Labirint Game/sfml/include/SFML/System/Utf.hpp b/Project_Labirint_Game/sfml/include/SFML/System/Utf.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Utf.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/Utf.hpp diff --git a/Labirint Game/sfml/include/SFML/System/Utf.inl b/Project_Labirint_Game/sfml/include/SFML/System/Utf.inl similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Utf.inl rename to Project_Labirint_Game/sfml/include/SFML/System/Utf.inl diff --git a/Labirint Game/sfml/include/SFML/System/Vector2.hpp b/Project_Labirint_Game/sfml/include/SFML/System/Vector2.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Vector2.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/Vector2.hpp diff --git a/Labirint Game/sfml/include/SFML/System/Vector2.inl b/Project_Labirint_Game/sfml/include/SFML/System/Vector2.inl similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Vector2.inl rename to Project_Labirint_Game/sfml/include/SFML/System/Vector2.inl diff --git a/Labirint Game/sfml/include/SFML/System/Vector3.hpp b/Project_Labirint_Game/sfml/include/SFML/System/Vector3.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Vector3.hpp rename to Project_Labirint_Game/sfml/include/SFML/System/Vector3.hpp diff --git a/Labirint Game/sfml/include/SFML/System/Vector3.inl b/Project_Labirint_Game/sfml/include/SFML/System/Vector3.inl similarity index 100% rename from Labirint Game/sfml/include/SFML/System/Vector3.inl rename to Project_Labirint_Game/sfml/include/SFML/System/Vector3.inl diff --git a/Labirint Game/sfml/include/SFML/Window.hpp b/Project_Labirint_Game/sfml/include/SFML/Window.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/Clipboard.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/Clipboard.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/Clipboard.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/Clipboard.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/Context.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/Context.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/Context.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/Context.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/ContextSettings.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/ContextSettings.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/ContextSettings.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/ContextSettings.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/Cursor.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/Cursor.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/Cursor.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/Cursor.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/Event.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/Event.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/Event.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/Event.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/Export.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/Export.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/Export.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/Export.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/GlResource.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/GlResource.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/GlResource.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/GlResource.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/Joystick.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/Joystick.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/Joystick.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/Joystick.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/Keyboard.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/Keyboard.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/Keyboard.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/Keyboard.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/Mouse.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/Mouse.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/Mouse.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/Mouse.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/Sensor.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/Sensor.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/Sensor.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/Sensor.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/Touch.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/Touch.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/Touch.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/Touch.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/VideoMode.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/VideoMode.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/VideoMode.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/VideoMode.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/Window.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/Window.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/Window.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/Window.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/WindowHandle.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/WindowHandle.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/WindowHandle.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/WindowHandle.hpp diff --git a/Labirint Game/sfml/include/SFML/Window/WindowStyle.hpp b/Project_Labirint_Game/sfml/include/SFML/Window/WindowStyle.hpp similarity index 100% rename from Labirint Game/sfml/include/SFML/Window/WindowStyle.hpp rename to Project_Labirint_Game/sfml/include/SFML/Window/WindowStyle.hpp diff --git a/Labirint Game/sfml/lib/cmake/SFML/SFMLConfig.cmake b/Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLConfig.cmake similarity index 100% rename from Labirint Game/sfml/lib/cmake/SFML/SFMLConfig.cmake rename to Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLConfig.cmake diff --git a/Labirint Game/sfml/lib/cmake/SFML/SFMLConfigDependencies.cmake b/Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLConfigDependencies.cmake similarity index 100% rename from Labirint Game/sfml/lib/cmake/SFML/SFMLConfigDependencies.cmake rename to Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLConfigDependencies.cmake diff --git a/Labirint Game/sfml/lib/cmake/SFML/SFMLConfigVersion.cmake b/Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLConfigVersion.cmake similarity index 100% rename from Labirint Game/sfml/lib/cmake/SFML/SFMLConfigVersion.cmake rename to Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLConfigVersion.cmake diff --git a/Labirint Game/sfml/lib/cmake/SFML/SFMLSharedTargets-debug.cmake b/Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLSharedTargets-debug.cmake similarity index 100% rename from Labirint Game/sfml/lib/cmake/SFML/SFMLSharedTargets-debug.cmake rename to Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLSharedTargets-debug.cmake diff --git a/Labirint Game/sfml/lib/cmake/SFML/SFMLSharedTargets-release.cmake b/Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLSharedTargets-release.cmake similarity index 100% rename from Labirint Game/sfml/lib/cmake/SFML/SFMLSharedTargets-release.cmake rename to Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLSharedTargets-release.cmake diff --git a/Labirint Game/sfml/lib/cmake/SFML/SFMLSharedTargets.cmake b/Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLSharedTargets.cmake similarity index 100% rename from Labirint Game/sfml/lib/cmake/SFML/SFMLSharedTargets.cmake rename to Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLSharedTargets.cmake diff --git a/Labirint Game/sfml/lib/cmake/SFML/SFMLStaticTargets-debug.cmake b/Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLStaticTargets-debug.cmake similarity index 100% rename from Labirint Game/sfml/lib/cmake/SFML/SFMLStaticTargets-debug.cmake rename to Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLStaticTargets-debug.cmake diff --git a/Labirint Game/sfml/lib/cmake/SFML/SFMLStaticTargets-release.cmake b/Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLStaticTargets-release.cmake similarity index 100% rename from Labirint Game/sfml/lib/cmake/SFML/SFMLStaticTargets-release.cmake rename to Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLStaticTargets-release.cmake diff --git a/Labirint Game/sfml/lib/cmake/SFML/SFMLStaticTargets.cmake b/Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLStaticTargets.cmake similarity index 100% rename from Labirint Game/sfml/lib/cmake/SFML/SFMLStaticTargets.cmake rename to Project_Labirint_Game/sfml/lib/cmake/SFML/SFMLStaticTargets.cmake diff --git a/Labirint Game/sfml/lib/flac.lib b/Project_Labirint_Game/sfml/lib/flac.lib similarity index 100% rename from Labirint Game/sfml/lib/flac.lib rename to Project_Labirint_Game/sfml/lib/flac.lib diff --git a/Labirint Game/sfml/lib/freetype.lib b/Project_Labirint_Game/sfml/lib/freetype.lib similarity index 100% rename from Labirint Game/sfml/lib/freetype.lib rename to Project_Labirint_Game/sfml/lib/freetype.lib diff --git a/Labirint Game/sfml/lib/ogg.lib b/Project_Labirint_Game/sfml/lib/ogg.lib similarity index 100% rename from Labirint Game/sfml/lib/ogg.lib rename to Project_Labirint_Game/sfml/lib/ogg.lib diff --git a/Labirint Game/sfml/lib/openal32.lib b/Project_Labirint_Game/sfml/lib/openal32.lib similarity index 100% rename from Labirint Game/sfml/lib/openal32.lib rename to Project_Labirint_Game/sfml/lib/openal32.lib diff --git a/Labirint Game/sfml/lib/sfml-audio-d.lib b/Project_Labirint_Game/sfml/lib/sfml-audio-d.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-audio-d.lib rename to Project_Labirint_Game/sfml/lib/sfml-audio-d.lib diff --git a/Labirint Game/sfml/lib/sfml-audio-d.pdb b/Project_Labirint_Game/sfml/lib/sfml-audio-d.pdb similarity index 100% rename from Labirint Game/sfml/lib/sfml-audio-d.pdb rename to Project_Labirint_Game/sfml/lib/sfml-audio-d.pdb diff --git a/Labirint Game/sfml/lib/sfml-audio-s-d.lib b/Project_Labirint_Game/sfml/lib/sfml-audio-s-d.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-audio-s-d.lib rename to Project_Labirint_Game/sfml/lib/sfml-audio-s-d.lib diff --git a/Labirint Game/sfml/lib/sfml-audio-s-d.pdb b/Project_Labirint_Game/sfml/lib/sfml-audio-s-d.pdb similarity index 100% rename from Labirint Game/sfml/lib/sfml-audio-s-d.pdb rename to Project_Labirint_Game/sfml/lib/sfml-audio-s-d.pdb diff --git a/Labirint Game/sfml/lib/sfml-audio-s.lib b/Project_Labirint_Game/sfml/lib/sfml-audio-s.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-audio-s.lib rename to Project_Labirint_Game/sfml/lib/sfml-audio-s.lib diff --git a/Labirint Game/sfml/lib/sfml-audio.lib b/Project_Labirint_Game/sfml/lib/sfml-audio.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-audio.lib rename to Project_Labirint_Game/sfml/lib/sfml-audio.lib diff --git a/Labirint Game/sfml/lib/sfml-graphics-d.lib b/Project_Labirint_Game/sfml/lib/sfml-graphics-d.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-graphics-d.lib rename to Project_Labirint_Game/sfml/lib/sfml-graphics-d.lib diff --git a/Labirint Game/sfml/lib/sfml-graphics-d.pdb b/Project_Labirint_Game/sfml/lib/sfml-graphics-d.pdb similarity index 100% rename from Labirint Game/sfml/lib/sfml-graphics-d.pdb rename to Project_Labirint_Game/sfml/lib/sfml-graphics-d.pdb diff --git a/Labirint Game/sfml/lib/sfml-graphics-s-d.lib b/Project_Labirint_Game/sfml/lib/sfml-graphics-s-d.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-graphics-s-d.lib rename to Project_Labirint_Game/sfml/lib/sfml-graphics-s-d.lib diff --git a/Labirint Game/sfml/lib/sfml-graphics-s-d.pdb b/Project_Labirint_Game/sfml/lib/sfml-graphics-s-d.pdb similarity index 100% rename from Labirint Game/sfml/lib/sfml-graphics-s-d.pdb rename to Project_Labirint_Game/sfml/lib/sfml-graphics-s-d.pdb diff --git a/Labirint Game/sfml/lib/sfml-graphics-s.lib b/Project_Labirint_Game/sfml/lib/sfml-graphics-s.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-graphics-s.lib rename to Project_Labirint_Game/sfml/lib/sfml-graphics-s.lib diff --git a/Labirint Game/sfml/lib/sfml-graphics.lib b/Project_Labirint_Game/sfml/lib/sfml-graphics.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-graphics.lib rename to Project_Labirint_Game/sfml/lib/sfml-graphics.lib diff --git a/Labirint Game/sfml/lib/sfml-main-d.lib b/Project_Labirint_Game/sfml/lib/sfml-main-d.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-main-d.lib rename to Project_Labirint_Game/sfml/lib/sfml-main-d.lib diff --git a/Labirint Game/sfml/lib/sfml-main-s-d.pdb b/Project_Labirint_Game/sfml/lib/sfml-main-s-d.pdb similarity index 100% rename from Labirint Game/sfml/lib/sfml-main-s-d.pdb rename to Project_Labirint_Game/sfml/lib/sfml-main-s-d.pdb diff --git a/Labirint Game/sfml/lib/sfml-main.lib b/Project_Labirint_Game/sfml/lib/sfml-main.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-main.lib rename to Project_Labirint_Game/sfml/lib/sfml-main.lib diff --git a/Labirint Game/sfml/lib/sfml-network-d.lib b/Project_Labirint_Game/sfml/lib/sfml-network-d.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-network-d.lib rename to Project_Labirint_Game/sfml/lib/sfml-network-d.lib diff --git a/Labirint Game/sfml/lib/sfml-network-d.pdb b/Project_Labirint_Game/sfml/lib/sfml-network-d.pdb similarity index 100% rename from Labirint Game/sfml/lib/sfml-network-d.pdb rename to Project_Labirint_Game/sfml/lib/sfml-network-d.pdb diff --git a/Labirint Game/sfml/lib/sfml-network-s-d.lib b/Project_Labirint_Game/sfml/lib/sfml-network-s-d.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-network-s-d.lib rename to Project_Labirint_Game/sfml/lib/sfml-network-s-d.lib diff --git a/Labirint Game/sfml/lib/sfml-network-s-d.pdb b/Project_Labirint_Game/sfml/lib/sfml-network-s-d.pdb similarity index 100% rename from Labirint Game/sfml/lib/sfml-network-s-d.pdb rename to Project_Labirint_Game/sfml/lib/sfml-network-s-d.pdb diff --git a/Labirint Game/sfml/lib/sfml-network-s.lib b/Project_Labirint_Game/sfml/lib/sfml-network-s.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-network-s.lib rename to Project_Labirint_Game/sfml/lib/sfml-network-s.lib diff --git a/Labirint Game/sfml/lib/sfml-network.lib b/Project_Labirint_Game/sfml/lib/sfml-network.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-network.lib rename to Project_Labirint_Game/sfml/lib/sfml-network.lib diff --git a/Labirint Game/sfml/lib/sfml-system-d.lib b/Project_Labirint_Game/sfml/lib/sfml-system-d.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-system-d.lib rename to Project_Labirint_Game/sfml/lib/sfml-system-d.lib diff --git a/Labirint Game/sfml/lib/sfml-system-d.pdb b/Project_Labirint_Game/sfml/lib/sfml-system-d.pdb similarity index 100% rename from Labirint Game/sfml/lib/sfml-system-d.pdb rename to Project_Labirint_Game/sfml/lib/sfml-system-d.pdb diff --git a/Labirint Game/sfml/lib/sfml-system-s-d.lib b/Project_Labirint_Game/sfml/lib/sfml-system-s-d.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-system-s-d.lib rename to Project_Labirint_Game/sfml/lib/sfml-system-s-d.lib diff --git a/Labirint Game/sfml/lib/sfml-system-s-d.pdb b/Project_Labirint_Game/sfml/lib/sfml-system-s-d.pdb similarity index 100% rename from Labirint Game/sfml/lib/sfml-system-s-d.pdb rename to Project_Labirint_Game/sfml/lib/sfml-system-s-d.pdb diff --git a/Labirint Game/sfml/lib/sfml-system-s.lib b/Project_Labirint_Game/sfml/lib/sfml-system-s.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-system-s.lib rename to Project_Labirint_Game/sfml/lib/sfml-system-s.lib diff --git a/Labirint Game/sfml/lib/sfml-system.lib b/Project_Labirint_Game/sfml/lib/sfml-system.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-system.lib rename to Project_Labirint_Game/sfml/lib/sfml-system.lib diff --git a/Labirint Game/sfml/lib/sfml-window-d.lib b/Project_Labirint_Game/sfml/lib/sfml-window-d.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-window-d.lib rename to Project_Labirint_Game/sfml/lib/sfml-window-d.lib diff --git a/Labirint Game/sfml/lib/sfml-window-d.pdb b/Project_Labirint_Game/sfml/lib/sfml-window-d.pdb similarity index 100% rename from Labirint Game/sfml/lib/sfml-window-d.pdb rename to Project_Labirint_Game/sfml/lib/sfml-window-d.pdb diff --git a/Labirint Game/sfml/lib/sfml-window-s-d.lib b/Project_Labirint_Game/sfml/lib/sfml-window-s-d.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-window-s-d.lib rename to Project_Labirint_Game/sfml/lib/sfml-window-s-d.lib diff --git a/Labirint Game/sfml/lib/sfml-window-s-d.pdb b/Project_Labirint_Game/sfml/lib/sfml-window-s-d.pdb similarity index 100% rename from Labirint Game/sfml/lib/sfml-window-s-d.pdb rename to Project_Labirint_Game/sfml/lib/sfml-window-s-d.pdb diff --git a/Labirint Game/sfml/lib/sfml-window-s.lib b/Project_Labirint_Game/sfml/lib/sfml-window-s.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-window-s.lib rename to Project_Labirint_Game/sfml/lib/sfml-window-s.lib diff --git a/Labirint Game/sfml/lib/sfml-window.lib b/Project_Labirint_Game/sfml/lib/sfml-window.lib similarity index 100% rename from Labirint Game/sfml/lib/sfml-window.lib rename to Project_Labirint_Game/sfml/lib/sfml-window.lib diff --git a/Labirint Game/sfml/lib/vorbis.lib b/Project_Labirint_Game/sfml/lib/vorbis.lib similarity index 100% rename from Labirint Game/sfml/lib/vorbis.lib rename to Project_Labirint_Game/sfml/lib/vorbis.lib diff --git a/Labirint Game/sfml/lib/vorbisenc.lib b/Project_Labirint_Game/sfml/lib/vorbisenc.lib similarity index 100% rename from Labirint Game/sfml/lib/vorbisenc.lib rename to Project_Labirint_Game/sfml/lib/vorbisenc.lib diff --git a/Labirint Game/sfml/lib/vorbisfile.lib b/Project_Labirint_Game/sfml/lib/vorbisfile.lib similarity index 100% rename from Labirint Game/sfml/lib/vorbisfile.lib rename to Project_Labirint_Game/sfml/lib/vorbisfile.lib diff --git a/New Year Congratulation/new_year.cpp b/Project_New_Year_Congratulation/new_year.cpp similarity index 100% rename from New Year Congratulation/new_year.cpp rename to Project_New_Year_Congratulation/new_year.cpp diff --git a/New Year Congratulation/only_numbers.cpp b/Project_New_Year_Congratulation/only_numbers.cpp similarity index 100% rename from New Year Congratulation/only_numbers.cpp rename to Project_New_Year_Congratulation/only_numbers.cpp diff --git a/Quiz Game/quiz-game-with-oop.cpp b/Project_Quiz_Game/quiz-game-with-oop.cpp similarity index 100% rename from Quiz Game/quiz-game-with-oop.cpp rename to Project_Quiz_Game/quiz-game-with-oop.cpp diff --git a/Quiz Game/quiz-game.cpp b/Project_Quiz_Game/quiz-game.cpp similarity index 100% rename from Quiz Game/quiz-game.cpp rename to Project_Quiz_Game/quiz-game.cpp diff --git a/Snake Game/snake-game.cpp b/Project_Snake_Game/snake-game.cpp similarity index 100% rename from Snake Game/snake-game.cpp rename to Project_Snake_Game/snake-game.cpp From 06538733047f92de287f061a40927ffaf44a561a Mon Sep 17 00:00:00 2001 From: Rustam Zokirov <59933997+Rustam-Z@users.noreply.github.com> Date: Fri, 23 May 2025 22:53:47 -0700 Subject: [PATCH 20/21] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f8531e4..0a40ab1 100644 --- a/README.md +++ b/README.md @@ -338,6 +338,9 @@ 53. Lost and found as a web app. ## More Project Ideas -- https://codingchallenges.fyi/challenges/challenge-redis-cli -- https://github.com/codecrafters-io/build-your-own-x +- [Coding Challenges: Build Your Own](https://codingchallenges.fyi/challenges/intro) +- [Build your own +](https://github.com/codecrafters-io/build-your-own-x) +- [🔥 200 Project Ideas from Beginner to Advanced with Open Source Contributions 🚀 +](https://dev.to/kishansheth/200-project-ideas-from-beginner-to-advanced-with-open-source-contributions-3g6a) From eebd092a91dcc3c0b416bebcad8763c4bb8c55ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=40Rustam-Z=20=F0=9F=9A=80?= <59933997+Rustam-Z@users.noreply.github.com> Date: Thu, 18 Sep 2025 15:25:07 +0200 Subject: [PATCH 21/21] Update README.md --- Lab_15/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lab_15/README.md b/Lab_15/README.md index 13643b4..6a26dac 100644 --- a/Lab_15/README.md +++ b/Lab_15/README.md @@ -8,7 +8,7 @@ From this class derive two classes: - `Tape`, which add playing time in minutes (type float). Each of these three classes should have: -- `getdata() function to display its data +- `getdata()` function to display its data - `setdata()` function to get its data from the user at the keyboard. Write a main() program to test the Book and Tape classes by creating instances of them, asking the user to fill with data with `setdata()`, and then displaying the data with `getdata()`. @@ -52,4 +52,4 @@ Deposit() – will deposit the money and update amount Balance() - will display the balance of account Compute_Interest() – calculate interest based on given condition [ROI is 4% per annum] Withdraw() – will allow to withdraw from account (check if withdrawal amount is less than balance and update balance) -``` \ No newline at end of file +```