First Commit

This commit is contained in:
nikurasu 2022-01-22 23:56:25 +01:00
commit 7e0dda5664
30 changed files with 372 additions and 0 deletions

View file

@ -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

View file

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

View file

@ -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>

16
ClassTestExerise2B.sln Normal file
View file

@ -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

View file

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

View file

@ -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.");
}
}
}

View file

@ -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": ""
}
}
}

View file

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

View file

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

View file

@ -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"
}
}
}
}
}

View file

@ -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>

View file

@ -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" />

View file

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

View file

@ -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.

View file

@ -0,0 +1 @@
4fb2708ab8eca3af621330242bedda304ba2f419

View file

@ -0,0 +1 @@
80a64be508772a52519784a955fcee3ff7377164

View file

@ -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

View file

@ -0,0 +1 @@
86c8e15dd33445635927cfaf398408205fd11473

View file

@ -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"
}
}
}
}

View file

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

View file

@ -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"}}

View file

@ -0,0 +1 @@
16428884698658892