added karacsonyi disz feladat
parent
1a5ea6593f
commit
38d9ffda29
Binary file not shown.
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
@ -0,0 +1,17 @@
|
||||
6;13250
|
||||
11;13550
|
||||
14;10350
|
||||
16;14850
|
||||
17;12100
|
||||
18;16750
|
||||
23;13050
|
||||
24;17250
|
||||
28;16050
|
||||
29;21100
|
||||
30;20700
|
||||
31;17600
|
||||
33;11400
|
||||
36;11700
|
||||
38;11250
|
||||
39;14750
|
||||
16 napon volt legalább 10000 Ft a bevétel.
|
Binary file not shown.
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
Binary file not shown.
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
7f4b213b428f4c013f19137338418ee1f5525793
|
@ -0,0 +1,7 @@
|
||||
C:\Users\szabomarton\Desktop\C#\20240205\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||
C:\Users\szabomarton\Desktop\C#\20240205\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||
C:\Users\szabomarton\Desktop\C#\20240205\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||
C:\Users\szabomarton\Desktop\C#\20240205\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||
C:\Users\szabomarton\Desktop\C#\20240205\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||
C:\Users\szabomarton\Desktop\C#\20240205\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||
C:\Users\szabomarton\Desktop\C#\20240205\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,30 @@
|
||||
class NapiMunka
|
||||
{
|
||||
public static int KeszultDb { get; private set; }
|
||||
public int Nap { get; private set; }
|
||||
public int HarangKesz { get; private set; }
|
||||
public int HarangEladott { get; private set; }
|
||||
public int AngyalkaKesz { get; private set; }
|
||||
public int AngyalkaEladott { get; private set; }
|
||||
public int FenyofaKesz { get; private set; }
|
||||
public int FenyofaEladott { get; private set; }
|
||||
|
||||
public NapiMunka(string sor)
|
||||
{
|
||||
string[] s = sor.Split(';');
|
||||
Nap = Convert.ToInt32(s[0]);
|
||||
HarangKesz = Convert.ToInt32(s[1]);
|
||||
HarangEladott = Convert.ToInt32(s[2]);
|
||||
AngyalkaKesz = Convert.ToInt32(s[3]);
|
||||
AngyalkaEladott = Convert.ToInt32(s[4]);
|
||||
FenyofaKesz = Convert.ToInt32(s[5]);
|
||||
FenyofaEladott = Convert.ToInt32(s[6]);
|
||||
|
||||
NapiMunka.KeszultDb += HarangKesz + AngyalkaKesz + FenyofaKesz;
|
||||
}
|
||||
|
||||
public int NapiBevetel()
|
||||
{
|
||||
return -(HarangEladott * 1000 + AngyalkaEladott * 1350 + FenyofaEladott * 1500);
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
1;3;0;0;0;4;0
|
||||
2;4;0;5;-2;1;0
|
||||
3;1;-2;4;-3;0;0
|
||||
4;0;0;3;-1;0;0
|
||||
5;0;0;0;-2;3;-2
|
||||
6;0;-5;6;-5;0;-1
|
||||
7;3;0;3;0;1;-3
|
||||
8;2;-3;0;0;3;0
|
||||
9;5;0;6;-4;2;-3
|
||||
10;0;-3;0;0;8;-4
|
||||
11;2;-5;0;-3;1;-3
|
||||
12;0;-1;0;-2;0;0
|
||||
13;8;-3;0;-4;8;0
|
||||
14;0;0;0;-1;3;-6
|
||||
15;0;0;3;0;5;-4
|
||||
16;4;-6;2;-1;6;-5
|
||||
17;2;-4;8;-6;0;0
|
||||
18;0;-1;4;-5;3;-6
|
||||
19;0;0;1;-6;0;0
|
||||
20;2;-3;0;0;2;-4
|
||||
21;7;0;5;0;3;-3
|
||||
22;3;0;0;0;4;-4
|
||||
23;4;-6;5;-3;7;-2
|
||||
24;0;0;0;-5;8;-7
|
||||
25;0;0;6;-2;9;-4
|
||||
26;0;0;0;-4;5;0
|
||||
27;4;0;3;-2;0;0
|
||||
28;0;-6;2;-3;2;-4
|
||||
29;0;-4;4;-6;1;-6
|
||||
30;0;0;7;-2;0;-12
|
||||
31;0;-2;8;-6;0;-5
|
||||
32;10;0;0;-3;4;-2
|
||||
33;0;0;0;-4;3;-4
|
||||
34;5;-8;0;0;4;0
|
||||
35;2;0;9;-3;6;0
|
||||
36;0;-3;0;-2;8;-4
|
||||
37;0;0;6;-4;3;-2
|
||||
38;0;0;8;-5;6;-3
|
||||
39;3;-2;0;-5;5;-4
|
||||
40;2;-4;4;-3;2;0
|
Loading…
Reference in New Issue