Skip to content

Commit 43fa278

Browse files
committed
edit
1 parent 3870398 commit 43fa278

File tree

23 files changed

+441
-408
lines changed

23 files changed

+441
-408
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27703.2000
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "01.DebitCardNumber", "exercises\01.DebitCardNumber.csproj", "{67EEA56F-5404-411C-BE03-B1FB14A50DE3}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "02.RectangleArea", "02.RectangleArea\02.RectangleArea.csproj", "{E75C7A17-2AE2-429C-9687-5947AC4A4516}"
9+
EndProject
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "03.MilesToKm", "03.MilesToKm\03.MilesToKm.csproj", "{FEC6CB6F-F14C-4E42-9C5F-2C2F1936FFDC}"
11+
EndProject
12+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "04.BeverageLabels", "04.BeverageLabels\04.BeverageLabels.csproj", "{930BD33A-45A6-489F-9AE7-8A0866B45F4E}"
13+
EndProject
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "05.CharacterStats", "05.CharacterStats\05.CharacterStats.csproj", "{3B716E35-3825-4F95-9368-B83908D9106A}"
15+
EndProject
16+
Global
17+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
18+
Debug|Any CPU = Debug|Any CPU
19+
Release|Any CPU = Release|Any CPU
20+
EndGlobalSection
21+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
22+
{67EEA56F-5404-411C-BE03-B1FB14A50DE3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{67EEA56F-5404-411C-BE03-B1FB14A50DE3}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{67EEA56F-5404-411C-BE03-B1FB14A50DE3}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{67EEA56F-5404-411C-BE03-B1FB14A50DE3}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{E75C7A17-2AE2-429C-9687-5947AC4A4516}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{E75C7A17-2AE2-429C-9687-5947AC4A4516}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{E75C7A17-2AE2-429C-9687-5947AC4A4516}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{E75C7A17-2AE2-429C-9687-5947AC4A4516}.Release|Any CPU.Build.0 = Release|Any CPU
30+
{FEC6CB6F-F14C-4E42-9C5F-2C2F1936FFDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
31+
{FEC6CB6F-F14C-4E42-9C5F-2C2F1936FFDC}.Debug|Any CPU.Build.0 = Debug|Any CPU
32+
{FEC6CB6F-F14C-4E42-9C5F-2C2F1936FFDC}.Release|Any CPU.ActiveCfg = Release|Any CPU
33+
{FEC6CB6F-F14C-4E42-9C5F-2C2F1936FFDC}.Release|Any CPU.Build.0 = Release|Any CPU
34+
{930BD33A-45A6-489F-9AE7-8A0866B45F4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
35+
{930BD33A-45A6-489F-9AE7-8A0866B45F4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
36+
{930BD33A-45A6-489F-9AE7-8A0866B45F4E}.Release|Any CPU.ActiveCfg = Release|Any CPU
37+
{930BD33A-45A6-489F-9AE7-8A0866B45F4E}.Release|Any CPU.Build.0 = Release|Any CPU
38+
{3B716E35-3825-4F95-9368-B83908D9106A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39+
{3B716E35-3825-4F95-9368-B83908D9106A}.Debug|Any CPU.Build.0 = Debug|Any CPU
40+
{3B716E35-3825-4F95-9368-B83908D9106A}.Release|Any CPU.ActiveCfg = Release|Any CPU
41+
{3B716E35-3825-4F95-9368-B83908D9106A}.Release|Any CPU.Build.0 = Release|Any CPU
42+
EndGlobalSection
43+
GlobalSection(SolutionProperties) = preSolution
44+
HideSolutionNode = FALSE
45+
EndGlobalSection
46+
GlobalSection(ExtensibilityGlobals) = postSolution
47+
SolutionGuid = {9CA0B11C-3AF1-4A72-8304-099FC9A47F77}
48+
EndGlobalSection
49+
EndGlobal
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27703.2000
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "01.Greeting", "ConsoleApp1\01.Greeting.csproj", "{F0173D8D-A1EA-4431-9164-F1F587BB3480}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02.AddTwoNumbers", "02.AddTwoNumbers\02.AddTwoNumbers.csproj", "{B614795A-E146-4287-8D8E-5E1AF081BB73}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "03.EmployeeData", "03.EmployeeData\03.EmployeeData.csproj", "{456A55D1-6EC8-481F-A747-DBFBEF50DE18}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
14+
Debug|Any CPU = Debug|Any CPU
15+
Release|Any CPU = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{F0173D8D-A1EA-4431-9164-F1F587BB3480}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{F0173D8D-A1EA-4431-9164-F1F587BB3480}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{F0173D8D-A1EA-4431-9164-F1F587BB3480}.Release|Any CPU.ActiveCfg = Release|Any CPU
21+
{F0173D8D-A1EA-4431-9164-F1F587BB3480}.Release|Any CPU.Build.0 = Release|Any CPU
22+
{B614795A-E146-4287-8D8E-5E1AF081BB73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{B614795A-E146-4287-8D8E-5E1AF081BB73}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{B614795A-E146-4287-8D8E-5E1AF081BB73}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{B614795A-E146-4287-8D8E-5E1AF081BB73}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{456A55D1-6EC8-481F-A747-DBFBEF50DE18}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{456A55D1-6EC8-481F-A747-DBFBEF50DE18}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{456A55D1-6EC8-481F-A747-DBFBEF50DE18}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{456A55D1-6EC8-481F-A747-DBFBEF50DE18}.Release|Any CPU.Build.0 = Release|Any CPU
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {D615C00E-A62F-4915-AB46-9EA6FD77238D}
36+
EndGlobalSection
37+
EndGlobal

02.CSharpConditionalStatementsAndLoops/More-Exercises/01.X/Program.cs

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using System;
2+
3+
public class X
4+
{
5+
public static void Main()
6+
{
7+
int x = int.Parse(Console.ReadLine());
8+
9+
for (int i = -(x / 2); i <= x / 2; i++)
10+
{
11+
if (i == 0)
12+
{
13+
Console.WriteLine("{0}x", new string(' ', x / 2));
14+
}
15+
else
16+
{
17+
Console.WriteLine("{0}x{1}x",
18+
19+
new string(' ', Math.Abs(x / 2 - Math.Abs(i))),
20+
new string(' ', Math.Abs(i * 2) - 1));
21+
}
22+
}
23+
}
24+
}

02.CSharpConditionalStatementsAndLoops/More-Exercises/02.VaporStore/02.VaporStore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<Reference Include="System.Xml" />
4343
</ItemGroup>
4444
<ItemGroup>
45-
<Compile Include="Program.cs" />
45+
<Compile Include="VaporStore.cs" />
4646
<Compile Include="Properties\AssemblyInfo.cs" />
4747
</ItemGroup>
4848
<ItemGroup>

02.CSharpConditionalStatementsAndLoops/More-Exercises/02.VaporStore/Program.cs

Lines changed: 0 additions & 115 deletions
This file was deleted.
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
using System;
2+
3+
public class Program
4+
{
5+
public static void Main()
6+
{
7+
double money = double.Parse(Console.ReadLine());
8+
string game = Console.ReadLine();
9+
10+
double totalPrice = 0;
11+
12+
while (game != "Game Time")
13+
{
14+
if (game == "OutFall 4")
15+
{
16+
if (money < 39.99)
17+
{
18+
Console.WriteLine("Too Expensive");
19+
}
20+
else
21+
{
22+
money -= 39.99;
23+
totalPrice += 39.99;
24+
Console.WriteLine("Bought OutFall 4");
25+
}
26+
}
27+
else if (game == "CS: OG")
28+
{
29+
if (money < 15.99)
30+
{
31+
Console.WriteLine("Too Expensive");
32+
}
33+
else
34+
{
35+
money -= 15.99;
36+
totalPrice += 15.99;
37+
Console.WriteLine("Bought CS: OG");
38+
}
39+
}
40+
else if (game == "Zplinter Zell")
41+
{
42+
if (money < 19.99)
43+
{
44+
Console.WriteLine("Too Expensive");
45+
}
46+
else
47+
{
48+
money -= 19.99;
49+
totalPrice += 19.99;
50+
Console.WriteLine("Bought Zplinter Zell");
51+
}
52+
}
53+
else if (game == "Honored 2")
54+
{
55+
if (money < 59.99)
56+
{
57+
Console.WriteLine("Too Expensive");
58+
}
59+
else
60+
{
61+
money -= 59.99;
62+
totalPrice += 59.99;
63+
Console.WriteLine("Bought Honored 2");
64+
}
65+
}
66+
else if (game == "RoverWatch")
67+
{
68+
if (money < 29.99)
69+
{
70+
Console.WriteLine("Too Expensive");
71+
}
72+
else
73+
{
74+
money -= 29.99;
75+
totalPrice += 29.99;
76+
Console.WriteLine("Bought RoverWatch");
77+
}
78+
}
79+
else if (game == "RoverWatch Origins Edition")
80+
{
81+
if (money < 39.99)
82+
{
83+
Console.WriteLine("Too Expensive");
84+
}
85+
else
86+
{
87+
money -= 39.99;
88+
totalPrice += 39.99;
89+
Console.WriteLine("Bought RoverWatch Origins Edition");
90+
}
91+
}
92+
else
93+
{
94+
Console.WriteLine("Not Found");
95+
}
96+
if (money == 0)
97+
{
98+
Console.WriteLine("Out of money!");
99+
return;
100+
}
101+
102+
game = Console.ReadLine();
103+
}
104+
105+
Console.WriteLine($"Total spent: ${totalPrice:f2}. Remaining: ${money:f2}");
106+
}
107+
}

02.CSharpConditionalStatementsAndLoops/More-Exercises/03.Megapixels/03.Megapixels.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<Reference Include="System.Xml" />
4343
</ItemGroup>
4444
<ItemGroup>
45-
<Compile Include="Program.cs" />
45+
<Compile Include="Megapixels.cs" />
4646
<Compile Include="Properties\AssemblyInfo.cs" />
4747
</ItemGroup>
4848
<ItemGroup>

0 commit comments

Comments
 (0)