Skip to content

Commit dfe5afd

Browse files
committed
mini fix
1 parent a3df9a7 commit dfe5afd

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Original
1+
Dark

src/HomeClasses/docx/WordWriter.java

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ void createVariantsInOneFile(){
5454
fileAnswers = new FileDocx(filesPath + "\\ответы", "Calibri", 16);
5555
fileDocx = new FileDocx(filesPath + "\\Варианты", fontFamily, fontSize);
5656
fileAnswers.newParagraph();
57+
fileDocx.newParagraph();
5758
fileAnswers.addTextBoltCenter("Ответы");
58-
fileAnswers.addTextBoltCenter("Тест 2");
5959
int k = 0;
6060
int col = 1;
6161
int row = 1;
@@ -82,7 +82,6 @@ void createVariantsInOneFile(){
8282
k = 0;
8383
}
8484
k++;
85-
fileDocx.newParagraph();
8685
fileDocx.addHeader("Тест 2. Вариант " + variant);
8786
for(int task = 0; task < taskArray.length; task++){
8887
fileDocx.newParagraph();
@@ -91,7 +90,7 @@ void createVariantsInOneFile(){
9190
}
9291
col++;
9392
row = 1;
94-
fileDocx.newPages();
93+
if(variant < countVariants) fileDocx.newPages();
9594
}
9695
fileDocx.printToFile();
9796
fileAnswers.printToFile();
@@ -1017,25 +1016,25 @@ String createTask20(int var){
10171016
var -= 4;
10181017
String answer = "0";
10191018
String questionStrBegin = "При построении выборочного уравнения прямой линии регрессии Y на X вычислены выборочный коэффициент регрессии ";
1020-
String questionStrEnd = ". Тогда уравнение регрессии примет вид:";
1019+
String questionStrEnd = " Тогда уравнение регрессии примет вид:";
10211020
if(var == 1){
10221021
fileDocx.addTextBreak(questionStrBegin + specialSymbols[8] + " = -3,4 и выборочные средние " + specialSymbols[10] +
1023-
" = 7,54 и " + specialSymbols[9] + " = 2,67 " + questionStrEnd);
1022+
" = 7,54 и " + specialSymbols[9] + " = 2,67." + questionStrEnd);
10241023
answer = specialSymbols[11] + " = -3,4x + 28,306";
10251024
}
10261025
else if(var == 2){
10271026
fileDocx.addTextBreak(questionStrBegin + specialSymbols[8] + " = 3,4 и выборочные средние " + specialSymbols[10] +
1028-
" = -7,54 и " + specialSymbols[9] + " = 2,67 " + questionStrEnd);
1027+
" = -7,54 и " + specialSymbols[9] + " = 2,67." + questionStrEnd);
10291028
answer = specialSymbols[11] + " = 3,4x + 28,306";
10301029
}
10311030
else if(var == 3){
10321031
fileDocx.addTextBreak(questionStrBegin + specialSymbols[8] + " = -3,4 и выборочные средние " + specialSymbols[10] +
1033-
" = 1,7 и " + specialSymbols[9] + " = 1,76 " + questionStrEnd);
1032+
" = 1,7 и " + specialSymbols[9] + " = 1,76." + questionStrEnd);
10341033
answer = specialSymbols[11] + " = -3,4x + 7,54";
10351034
}
10361035
else if(var == 4){
10371036
fileDocx.addTextBreak(questionStrBegin + specialSymbols[8] + " = -3,4 и выборочные средние " + specialSymbols[10] +
1038-
" = 0,5 и " + specialSymbols[9] + " = 7,54 " + questionStrEnd);
1037+
" = 0,5 и " + specialSymbols[9] + " = 7,54." + questionStrEnd);
10391038
answer = specialSymbols[11] + " -7,54 = -3,4x + 1,7";
10401039
}
10411040
String[] s = {specialSymbols[11] + " = -3,4x + 28,306", specialSymbols[11] + " = 3,4x + 28,306", specialSymbols[11] + " = -3,4x + 7,54", specialSymbols[11] + " -7,54 = -3,4x + 1,7"};
@@ -1059,19 +1058,19 @@ String createTask21 (int var){
10591058
String questionStrBegin = "При построении выборочного уравнения парной регрессии вычислены выборочный коэффициент корреляции";
10601059
String questionStrEnd = "и выборочные средние квадратические отклонения " + specialSymbols[12] + " = 2,5, "+ specialSymbols[12] + " = 1,25. Тогда выборочный коэффициент регрессии Y на X равен:";
10611060
if(var == 1){
1062-
fileDocx.addTextBreak(questionStrBegin + " rʙ = 0,64 " + questionStrEnd);
1061+
fileDocx.addTextBreak(questionStrBegin + " rʙ = 0,64 " + questionStrEnd);
10631062
answer = 0.32;
10641063
}
10651064
else if(var == 2){
1066-
fileDocx.addTextBreak(questionStrBegin + " rʙ = -0,64 " + questionStrEnd);
1065+
fileDocx.addTextBreak(questionStrBegin + " rʙ = -0,64 " + questionStrEnd);
10671066
answer = -0.32;
10681067
}
10691068
else if(var == 3){
1070-
fileDocx.addTextBreak(questionStrBegin + " rʙ = 0,54 " + questionStrEnd);
1069+
fileDocx.addTextBreak(questionStrBegin + " rʙ = 0,54 " + questionStrEnd);
10711070
answer = 0.27;
10721071
}
10731072
else if(var == 4){
1074-
fileDocx.addTextBreak(questionStrBegin + " rʙ = -0,54 " + questionStrEnd);
1073+
fileDocx.addTextBreak(questionStrBegin + " rʙ = -0,54 " + questionStrEnd);
10751074
answer = -0.27;
10761075
}
10771076

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Original
1+
Dark

0 commit comments

Comments
 (0)