New Year
This commit is contained in:
parent
905305ef0d
commit
c00065c1bc
25
Emne 3/BankAppMarie/BankAppMarie/BankAppMarie.sln
Normal file
25
Emne 3/BankAppMarie/BankAppMarie/BankAppMarie.sln
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.5.002.0
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BankAppMarie", "BankAppMarie.csproj", "{383D335D-3A2B-4BBB-B5EB-FD782B3A82F7}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{383D335D-3A2B-4BBB-B5EB-FD782B3A82F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{383D335D-3A2B-4BBB-B5EB-FD782B3A82F7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{383D335D-3A2B-4BBB-B5EB-FD782B3A82F7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{383D335D-3A2B-4BBB-B5EB-FD782B3A82F7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {690A91AA-DB43-417F-9B86-4B1CAF1DBAE7}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
16
Emne 3/Debug1/Debug1.sln
Normal file
16
Emne 3/Debug1/Debug1.sln
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Debug1", "Debug1\Debug1.csproj", "{9A30B79C-FF6E-40AC-AE3C-BB49F525540F}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{9A30B79C-FF6E-40AC-AE3C-BB49F525540F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{9A30B79C-FF6E-40AC-AE3C-BB49F525540F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{9A30B79C-FF6E-40AC-AE3C-BB49F525540F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{9A30B79C-FF6E-40AC-AE3C-BB49F525540F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
10
Emne 3/Debug1/Debug1/Debug1.csproj
Normal file
10
Emne 3/Debug1/Debug1/Debug1.csproj
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
21
Emne 3/Debug1/Debug1/Program.cs
Normal file
21
Emne 3/Debug1/Debug1/Program.cs
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
var range = 250;
|
||||||
|
|
||||||
|
var counts = new int[range];
|
||||||
|
string text = "something";
|
||||||
|
while (!string.IsNullOrWhiteSpace(text))
|
||||||
|
{
|
||||||
|
text = Console.ReadLine();
|
||||||
|
foreach (var character in text ?? string.Empty )
|
||||||
|
{
|
||||||
|
counts[(int)character]++;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var i = 0; i < range; i++)
|
||||||
|
{
|
||||||
|
if (counts[i] > 0)
|
||||||
|
{
|
||||||
|
var character = (char)i;
|
||||||
|
Console.WriteLine(character + " - " + counts[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nissens_liste_og_hans_hjelpere", "Nissens_liste_og_hans_hjelpere\Nissens_liste_og_hans_hjelpere.csproj", "{1D5ED140-C581-4EB2-B688-DBE24D9A9A6D}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{1D5ED140-C581-4EB2-B688-DBE24D9A9A6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{1D5ED140-C581-4EB2-B688-DBE24D9A9A6D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{1D5ED140-C581-4EB2-B688-DBE24D9A9A6D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{1D5ED140-C581-4EB2-B688-DBE24D9A9A6D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
|
@ -0,0 +1,10 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
|
@ -0,0 +1,3 @@
|
||||||
|
// See https://aka.ms/new-console-template for more information
|
||||||
|
|
||||||
|
Console.WriteLine("Hello, World!");
|
26
Emne 3/StudentAdmin/.vscode/launch.json
vendored
Normal file
26
Emne 3/StudentAdmin/.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
// Use IntelliSense to find out which attributes exist for C# debugging
|
||||||
|
// Use hover for the description of the existing attributes
|
||||||
|
// For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md
|
||||||
|
"name": ".NET Core Launch (console)",
|
||||||
|
"type": "coreclr",
|
||||||
|
"request": "launch",
|
||||||
|
"preLaunchTask": "build",
|
||||||
|
// If you have changed target frameworks, make sure to update the program path.
|
||||||
|
"program": "${workspaceFolder}/StudentAdmin/bin/Debug/net8.0/StudentAdmin.dll",
|
||||||
|
"args": [],
|
||||||
|
"cwd": "${workspaceFolder}/StudentAdmin",
|
||||||
|
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
|
||||||
|
"console": "internalConsole",
|
||||||
|
"stopAtEntry": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": ".NET Core Attach",
|
||||||
|
"type": "coreclr",
|
||||||
|
"request": "attach"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
41
Emne 3/StudentAdmin/.vscode/tasks.json
vendored
Normal file
41
Emne 3/StudentAdmin/.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "build",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"build",
|
||||||
|
"${workspaceFolder}/StudentAdmin.sln",
|
||||||
|
"/property:GenerateFullPaths=true",
|
||||||
|
"/consoleloggerparameters:NoSummary;ForceNoAlign"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "publish",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"publish",
|
||||||
|
"${workspaceFolder}/StudentAdmin.sln",
|
||||||
|
"/property:GenerateFullPaths=true",
|
||||||
|
"/consoleloggerparameters:NoSummary;ForceNoAlign"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "watch",
|
||||||
|
"command": "dotnet",
|
||||||
|
"type": "process",
|
||||||
|
"args": [
|
||||||
|
"watch",
|
||||||
|
"run",
|
||||||
|
"--project",
|
||||||
|
"${workspaceFolder}/StudentAdmin.sln"
|
||||||
|
],
|
||||||
|
"problemMatcher": "$msCompile"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -1,3 +1 @@
|
||||||
// See https://aka.ms/new-console-template for more information
|
|
||||||
|
|
||||||
Console.WriteLine("Hello, World!");
|
|
0
Emne 3/init
Normal file
0
Emne 3/init
Normal file
3
oppgaver/uke7/gjenkjenn_epost/script.js
Normal file
3
oppgaver/uke7/gjenkjenn_epost/script.js
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
function isSeven(sentence){
|
||||||
|
console.log
|
||||||
|
}
|
Loading…
Reference in a new issue