First Commit

master
nikurasu 10 months ago
commit 7e0dda5664
  1. 13
      .idea/.idea.ClassTestExerise2B/.idea/.gitignore
  2. 8
      .idea/.idea.ClassTestExerise2B/.idea/indexLayout.xml
  3. 6
      .idea/.idea.ClassTestExerise2B/.idea/vcs.xml
  4. 16
      ClassTestExerise2B.sln
  5. 8
      ClassTestExerise2B/ClassTestExerise2B.csproj
  6. 91
      ClassTestExerise2B/Program.cs
  7. BIN
      ClassTestExerise2B/bin/Debug/netcoreapp3.1/ClassTestExerise2B
  8. 23
      ClassTestExerise2B/bin/Debug/netcoreapp3.1/ClassTestExerise2B.deps.json
  9. BIN
      ClassTestExerise2B/bin/Debug/netcoreapp3.1/ClassTestExerise2B.dll
  10. BIN
      ClassTestExerise2B/bin/Debug/netcoreapp3.1/ClassTestExerise2B.pdb
  11. 8
      ClassTestExerise2B/bin/Debug/netcoreapp3.1/ClassTestExerise2B.runtimeconfig.dev.json
  12. 9
      ClassTestExerise2B/bin/Debug/netcoreapp3.1/ClassTestExerise2B.runtimeconfig.json
  13. 58
      ClassTestExerise2B/obj/ClassTestExerise2B.csproj.nuget.dgspec.json
  14. 15
      ClassTestExerise2B/obj/ClassTestExerise2B.csproj.nuget.g.props
  15. 2
      ClassTestExerise2B/obj/ClassTestExerise2B.csproj.nuget.g.targets
  16. 4
      ClassTestExerise2B/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs
  17. BIN
      ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B
  18. 22
      ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.AssemblyInfo.cs
  19. 1
      ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.AssemblyInfoInputs.cache
  20. BIN
      ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.assets.cache
  21. 1
      ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.csproj.CoreCompileInputs.cache
  22. 13
      ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.csproj.FileListAbsolute.txt
  23. BIN
      ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.csprojAssemblyReference.cache
  24. BIN
      ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.dll
  25. 1
      ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.genruntimeconfig.cache
  26. BIN
      ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.pdb
  27. 63
      ClassTestExerise2B/obj/project.assets.json
  28. 8
      ClassTestExerise2B/obj/project.nuget.cache
  29. 1
      ClassTestExerise2B/obj/project.packagespec.json
  30. 1
      ClassTestExerise2B/obj/rider.project.restore.info

@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/projectSettingsUpdater.xml
/contentModel.xml
/.idea.ClassTestExerise2B.iml
/modules.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

@ -0,0 +1,16 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassTestExerise2B", "ClassTestExerise2B\ClassTestExerise2B.csproj", "{6C508BFE-7F99-494B-9EB0-6946F5E3DCEB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6C508BFE-7F99-494B-9EB0-6946F5E3DCEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6C508BFE-7F99-494B-9EB0-6946F5E3DCEB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6C508BFE-7F99-494B-9EB0-6946F5E3DCEB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6C508BFE-7F99-494B-9EB0-6946F5E3DCEB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
</Project>

@ -0,0 +1,91 @@
using System;
using System.Collections.Generic;
namespace ClassTestExerise2B
{
class Program
{
static void Main(string[] args)
{
int upperLimit;
int lowerLimit;
int randListLen;
int spaceBetween;
int counter;
int biggestUneven;
List<int> numberCount = new List<int>();
List<int> randList = new List<int>();
Random rand = new Random();
do
{
Console.WriteLine("Gib die untere Grenze des Zufallsarrays ein:");
lowerLimit = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Gib die obere Grenze des Zufallsarrays an:");
upperLimit = Convert.ToInt32(Console.ReadLine());
} while (lowerLimit > upperLimit);
Console.WriteLine("Gib die Länge des Zufallsarrays ein:");
randListLen = Convert.ToInt32(Console.ReadLine());
for (int number = 0; number < randListLen; number++)
{
randList.Add(rand.Next(lowerLimit,upperLimit));
}
foreach (int number in randList)
{
Console.Write(number + " ");
}
Console.WriteLine();
randList.Sort();
foreach (int number in randList)
{
Console.Write(number + " ");
}
Console.WriteLine();
upperLimit = randList[randListLen - 1];
lowerLimit = randList[0];
spaceBetween = upperLimit - lowerLimit;
Console.WriteLine("Unteres Limit:" + lowerLimit);
Console.WriteLine("Oberes Limit:" + upperLimit);
Console.WriteLine("Zahlenraum: " + spaceBetween);
for (int number = 0; number <= spaceBetween; number++)
{
counter = 0;
for (int randnumber = 0; randnumber < randListLen; randnumber++)
{
if (randList[randnumber] == number + lowerLimit)
{
counter++;
}
}
numberCount.Add(counter);
}
for (int number = 0; number <= spaceBetween; number++)
{
Console.Write(numberCount[number] + " ");
}
Console.WriteLine();
biggestUneven = lowerLimit;
for (int number = 0; number <= spaceBetween; number++)
{
if (numberCount[number] % 2 != 0 && numberCount[number] < biggestUneven)
{
biggestUneven = number + lowerLimit;
}
}
Console.WriteLine(biggestUneven + " ist die Zahl die am meisten ungerade oft vorkommt.");
}
}
}

@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v3.1",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v3.1": {
"ClassTestExerise2B/1.0.0": {
"runtime": {
"ClassTestExerise2B.dll": {}
}
}
}
},
"libraries": {
"ClassTestExerise2B/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

@ -0,0 +1,8 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"/home/yuzuki/.dotnet/store/|arch|/|tfm|",
"/home/yuzuki/.nuget/packages"
]
}
}

@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.0"
}
}
}

@ -0,0 +1,58 @@
{
"format": 1,
"restore": {
"/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/ClassTestExerise2B.csproj": {}
},
"projects": {
"/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/ClassTestExerise2B.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/ClassTestExerise2B.csproj",
"projectName": "ClassTestExerise2B",
"projectPath": "/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/ClassTestExerise2B.csproj",
"packagesPath": "/home/yuzuki/.nuget/packages/",
"outputPath": "/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/yuzuki/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/3.1.416/RuntimeIdentifierGraph.json"
}
}
}
}
}

@ -0,0 +1,15 @@
<?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)' == '' ">/home/yuzuki/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/yuzuki/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.0.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/yuzuki/.nuget/packages/" />
</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" />

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]

@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// 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("ClassTestExerise2B")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("ClassTestExerise2B")]
[assembly: System.Reflection.AssemblyTitleAttribute("ClassTestExerise2B")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.

@ -0,0 +1,13 @@
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/bin/Debug/netcoreapp3.1/ClassTestExerise2B
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/bin/Debug/netcoreapp3.1/ClassTestExerise2B.deps.json
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/bin/Debug/netcoreapp3.1/ClassTestExerise2B.runtimeconfig.json
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/bin/Debug/netcoreapp3.1/ClassTestExerise2B.runtimeconfig.dev.json
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/bin/Debug/netcoreapp3.1/ClassTestExerise2B.dll
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/bin/Debug/netcoreapp3.1/ClassTestExerise2B.pdb
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.csprojAssemblyReference.cache
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.AssemblyInfoInputs.cache
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.AssemblyInfo.cs
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.csproj.CoreCompileInputs.cache
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.dll
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.pdb
/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/obj/Debug/netcoreapp3.1/ClassTestExerise2B.genruntimeconfig.cache

@ -0,0 +1,63 @@
{
"version": 3,
"targets": {
".NETCoreApp,Version=v3.1": {}
},
"libraries": {},
"projectFileDependencyGroups": {
".NETCoreApp,Version=v3.1": []
},
"packageFolders": {
"/home/yuzuki/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/ClassTestExerise2B.csproj",
"projectName": "ClassTestExerise2B",
"projectPath": "/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/ClassTestExerise2B.csproj",
"packagesPath": "/home/yuzuki/.nuget/packages/",
"outputPath": "/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/yuzuki/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/3.1.416/RuntimeIdentifierGraph.json"
}
}
}
}

@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "ouCF5hLk5AVzqgD3y9JjX9CnuVy1lJU3MfLKWyBEiuJp3O+ffWI255ToiKx1joEjIyRrrIpwbZ0ugTbBrRhvfg==",
"success": true,
"projectFilePath": "/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/ClassTestExerise2B.csproj",
"expectedPackageFiles": [],
"logs": []
}

@ -0,0 +1 @@
"restore":{"projectUniqueName":"/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/ClassTestExerise2B.csproj","projectName":"ClassTestExerise2B","projectPath":"/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/ClassTestExerise2B.csproj","outputPath":"/home/yuzuki/RiderProjects/ClassTestExerise2B/ClassTestExerise2B/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["netcoreapp3.1"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"netcoreapp3.1":{"projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"netcoreapp3.1":{"imports":["net461","net462","net47","net471","net472","net48"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/share/dotnet/sdk/3.1.416/RuntimeIdentifierGraph.json"}}
Loading…
Cancel
Save