ITP Code Backup
This commit is contained in:
BIN
LoopsProject/.vs/LoopsProject/DesignTimeBuild/.dtbcache.v2
Normal file
BIN
LoopsProject/.vs/LoopsProject/DesignTimeBuild/.dtbcache.v2
Normal file
Binary file not shown.
Binary file not shown.
BIN
LoopsProject/.vs/LoopsProject/v17/.futdcache.v1
Normal file
BIN
LoopsProject/.vs/LoopsProject/v17/.futdcache.v1
Normal file
Binary file not shown.
BIN
LoopsProject/.vs/ProjectEvaluation/loopsproject.metadata.v2
Normal file
BIN
LoopsProject/.vs/ProjectEvaluation/loopsproject.metadata.v2
Normal file
Binary file not shown.
BIN
LoopsProject/.vs/ProjectEvaluation/loopsproject.projects.v2
Normal file
BIN
LoopsProject/.vs/ProjectEvaluation/loopsproject.projects.v2
Normal file
Binary file not shown.
25
LoopsProject/LoopsProject.sln
Normal file
25
LoopsProject/LoopsProject.sln
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.1.32210.238
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LoopsProject", "LoopsProject\LoopsProject.csproj", "{0B38ABD2-9A4A-4201-97E1-87DF6B1433F8}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{0B38ABD2-9A4A-4201-97E1-87DF6B1433F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0B38ABD2-9A4A-4201-97E1-87DF6B1433F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0B38ABD2-9A4A-4201-97E1-87DF6B1433F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0B38ABD2-9A4A-4201-97E1-87DF6B1433F8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {95A8F768-65E3-4EFA-B558-023280234F94}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
51
LoopsProject/LoopsProject/LoopsProject.cs
Normal file
51
LoopsProject/LoopsProject/LoopsProject.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
|
||||
float startZombies = 1;
|
||||
float bitesPDay = 4;
|
||||
float invadeTime = 8;
|
||||
float totalZombies = 0;
|
||||
|
||||
Console.WriteLine("PROBLEM #1");
|
||||
Problem1();
|
||||
Console.WriteLine();
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("PROBLEM #2");
|
||||
Problem2();
|
||||
|
||||
// Problem #1
|
||||
void Problem1()
|
||||
{
|
||||
for (int currentDay = 0; currentDay < invadeTime; currentDay++)
|
||||
{
|
||||
if (currentDay == 0)
|
||||
{
|
||||
totalZombies = startZombies + bitesPDay;
|
||||
}
|
||||
else
|
||||
{
|
||||
totalZombies = totalZombies * (startZombies + bitesPDay);
|
||||
}
|
||||
|
||||
|
||||
Console.WriteLine($"There are {totalZombies} zombies at the end of Day #{currentDay + 1}.");
|
||||
}
|
||||
}
|
||||
|
||||
//Problem #2 NOTE: (&& cDay < 15) left in while statement to prevent infinite loop
|
||||
|
||||
void Problem2()
|
||||
{
|
||||
int cDay = 0;
|
||||
while (totalZombies <= 1000000 && cDay < 15)
|
||||
{
|
||||
cDay++;
|
||||
if (cDay == 1)
|
||||
{
|
||||
totalZombies = startZombies + bitesPDay;
|
||||
}
|
||||
else
|
||||
{
|
||||
totalZombies = totalZombies * (startZombies + bitesPDay);
|
||||
}
|
||||
Console.WriteLine($"On day #{cDay}, there are {totalZombies}!");
|
||||
}
|
||||
}
|
10
LoopsProject/LoopsProject/LoopsProject.csproj
Normal file
10
LoopsProject/LoopsProject/LoopsProject.csproj
Normal file
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v6.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v6.0": {
|
||||
"LoopsProject/1.0.0": {
|
||||
"runtime": {
|
||||
"LoopsProject.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"LoopsProject/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net6.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "6.0.0"
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
|
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("LoopsProject")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("LoopsProject")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("LoopsProject")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
@@ -0,0 +1,10 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net6.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = LoopsProject
|
||||
build_property.ProjectDir = E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\
|
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
@@ -0,0 +1,15 @@
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\bin\Debug\net6.0\LoopsProject.exe
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\bin\Debug\net6.0\LoopsProject.deps.json
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\bin\Debug\net6.0\LoopsProject.runtimeconfig.json
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\bin\Debug\net6.0\LoopsProject.dll
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\bin\Debug\net6.0\LoopsProject.pdb
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\obj\Debug\net6.0\LoopsProject.csproj.AssemblyReference.cache
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\obj\Debug\net6.0\LoopsProject.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\obj\Debug\net6.0\LoopsProject.AssemblyInfoInputs.cache
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\obj\Debug\net6.0\LoopsProject.AssemblyInfo.cs
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\obj\Debug\net6.0\LoopsProject.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\obj\Debug\net6.0\LoopsProject.dll
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\obj\Debug\net6.0\refint\LoopsProject.dll
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\obj\Debug\net6.0\LoopsProject.pdb
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\obj\Debug\net6.0\LoopsProject.genruntimeconfig.cache
|
||||
E:\Projects\FS_College_Classwork\GDN1009-ITP-Backup\LoopsProject\LoopsProject\obj\Debug\net6.0\ref\LoopsProject.dll
|
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"E:\\Projects\\FS_College_Classwork\\GDN1009-ITP-Backup\\LoopsProject\\LoopsProject\\LoopsProject.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"E:\\Projects\\FS_College_Classwork\\GDN1009-ITP-Backup\\LoopsProject\\LoopsProject\\LoopsProject.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "E:\\Projects\\FS_College_Classwork\\GDN1009-ITP-Backup\\LoopsProject\\LoopsProject\\LoopsProject.csproj",
|
||||
"projectName": "LoopsProject",
|
||||
"projectPath": "E:\\Projects\\FS_College_Classwork\\GDN1009-ITP-Backup\\LoopsProject\\LoopsProject\\LoopsProject.csproj",
|
||||
"packagesPath": "C:\\Users\\randa\\.nuget\\packages\\",
|
||||
"outputPath": "E:\\Projects\\FS_College_Classwork\\GDN1009-ITP-Backup\\LoopsProject\\LoopsProject\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\randa\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net6.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\randa\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.2.1</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\randa\.nuget\packages\" />
|
||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
71
LoopsProject/LoopsProject/obj/project.assets.json
Normal file
71
LoopsProject/LoopsProject/obj/project.assets.json
Normal file
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net6.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net6.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\randa\\.nuget\\packages\\": {},
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "E:\\Projects\\FS_College_Classwork\\GDN1009-ITP-Backup\\LoopsProject\\LoopsProject\\LoopsProject.csproj",
|
||||
"projectName": "LoopsProject",
|
||||
"projectPath": "E:\\Projects\\FS_College_Classwork\\GDN1009-ITP-Backup\\LoopsProject\\LoopsProject\\LoopsProject.csproj",
|
||||
"packagesPath": "C:\\Users\\randa\\.nuget\\packages\\",
|
||||
"outputPath": "E:\\Projects\\FS_College_Classwork\\GDN1009-ITP-Backup\\LoopsProject\\LoopsProject\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\randa\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net6.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user