Aggiunti file

This commit is contained in:
La Programmatrice Verde 2024-11-13 10:53:39 +01:00
parent 16e6a3817e
commit ca6771149b
37 changed files with 411 additions and 178 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,41 @@
{
"Version": 1,
"WorkspaceRootPath": "T:\\Verifica_Bassanetti\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{09FAE023-C791-463B-A6B9-92BFBD6E0E7F}|Verifica_Bassanetti.csproj|t:\\verifica_bassanetti\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{09FAE023-C791-463B-A6B9-92BFBD6E0E7F}|Verifica_Bassanetti.csproj|solutionrelative:program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Program.cs",
"DocumentMoniker": "T:\\Verifica_Bassanetti\\Program.cs",
"RelativeDocumentMoniker": "Program.cs",
"ToolTip": "T:\\Verifica_Bassanetti\\Program.cs",
"RelativeToolTip": "Program.cs",
"ViewState": "AgIAADAAAAAAAAAAAAAAAD0AAABPAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-11-13T07:18:15.868Z",
"EditorCaption": ""
}
]
}
]
}
]
}

View File

@ -0,0 +1,37 @@
{
"Version": 1,
"WorkspaceRootPath": "T:\\Verifica_Bassanetti\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{09FAE023-C791-463B-A6B9-92BFBD6E0E7F}|Verifica_Bassanetti.csproj|t:\\verifica_bassanetti\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{09FAE023-C791-463B-A6B9-92BFBD6E0E7F}|Verifica_Bassanetti.csproj|solutionrelative:program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Program.cs",
"DocumentMoniker": "T:\\Verifica_Bassanetti\\Program.cs",
"RelativeDocumentMoniker": "Program.cs",
"ToolTip": "T:\\Verifica_Bassanetti\\Program.cs",
"RelativeToolTip": "Program.cs",
"ViewState": "AgIAADAAAAAAAAAAAAAAACIAAAAUAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-11-13T07:18:15.868Z",
"EditorCaption": ""
}
]
}
]
}
]
}

View File

@ -1,9 +1,64 @@
namespace Verifica_Bassanetti; // See https://aka.ms/new-console-template for more information
using System.Runtime.Versioning;
//dichiarazione e inizializzazione variabili
int exit;
uint input, max, min, media, somma, i, pari;
const int breakValue = -1;
max = 0;
input = 0;
min = 4294967295; //valore massimo che un uint può assumere
exit = 0;
somma = 0;
i = 0;
pari = 0;
class Program while (exit != breakValue)
{ {
static void Main(string[] args) //input e input sanitization
do
{ {
Console.WriteLine("Hello, World!"); Console.Write("Inserisci un numero (-1 per terminare): ");
exit = Convert.ToInt32(Console.ReadLine());
if (exit != breakValue) //condizione per evitare di conteggiare -1 come valore
{
if (exit < breakValue)
{
Console.WriteLine("Il numero inserito non può essere minore di -1");
}
else
{
input = Convert.ToUInt32(exit);
}
}
}
while (exit < breakValue);
//inizio calcolo
if (exit != breakValue)
{
// calcolo numero maggiore
if (input > max){
max = input;
}
// calcolo numero minore
if (input < min){
min = input;
}
//calcolo media
somma = input + somma;
i++;
//conteggio numeri pari
if (input % 2 == 0){
pari++;
}
} }
} }
// calcolo finale media
media = somma / i;
//output finale
Console.WriteLine("Risultato:");
Console.WriteLine("La media vale " +media".");
Console.WriteLine("Il totale dei numeri inseriti è " +pari".");
Console.WriteLine("Il numero massimo è " +max + " e il numero minimo è " +min".");

View File

@ -1,15 +1,25 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17 # Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59 VisualStudioVersion = 17.11.35222.181
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Verifica_Bassanetti", "Verifica_Bassanetti.csproj", { Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Verifica_Bassanetti", "Verifica_Bassanetti.csproj", "{09FAE023-C791-463B-A6B9-92BFBD6E0E7F}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{09FAE023-C791-463B-A6B9-92BFBD6E0E7F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{09FAE023-C791-463B-A6B9-92BFBD6E0E7F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{09FAE023-C791-463B-A6B9-92BFBD6E0E7F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{09FAE023-C791-463B-A6B9-92BFBD6E0E7F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3551979C-EA26-4994-80A2-BA0195AC89B9}
EndGlobalSection
EndGlobal EndGlobal

View File

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

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net8.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

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

View File

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
// Versione runtime:4.0.30319.42000
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Verifica_Bassanetti")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Verifica_Bassanetti")]
[assembly: System.Reflection.AssemblyTitleAttribute("Verifica_Bassanetti")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generato dalla classe WriteCodeFragment di MSBuild.

View File

@ -0,0 +1 @@
e748a9d2406d2ae667e808421068d1b0309e0771830d19fdbf0f00d0a4268119

View File

@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Verifica_Bassanetti
build_property.ProjectDir = T:\Verifica_Bassanetti\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =

View File

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

Binary file not shown.

View File

@ -0,0 +1 @@
7b27a044af9d613b5db314963b99f29edf8b02c6a2c9405ea9002bf0af95d56c

View File

@ -0,0 +1,14 @@
T:\Verifica_Bassanetti\obj\Debug\net8.0\Verifica_Bassanetti.GeneratedMSBuildEditorConfig.editorconfig
T:\Verifica_Bassanetti\obj\Debug\net8.0\Verifica_Bassanetti.AssemblyInfoInputs.cache
T:\Verifica_Bassanetti\obj\Debug\net8.0\Verifica_Bassanetti.AssemblyInfo.cs
T:\Verifica_Bassanetti\obj\Debug\net8.0\Verifica_Bassanetti.csproj.CoreCompileInputs.cache
T:\Verifica_Bassanetti\bin\Debug\net8.0\Verifica_Bassanetti.exe
T:\Verifica_Bassanetti\bin\Debug\net8.0\Verifica_Bassanetti.deps.json
T:\Verifica_Bassanetti\bin\Debug\net8.0\Verifica_Bassanetti.runtimeconfig.json
T:\Verifica_Bassanetti\bin\Debug\net8.0\Verifica_Bassanetti.dll
T:\Verifica_Bassanetti\bin\Debug\net8.0\Verifica_Bassanetti.pdb
T:\Verifica_Bassanetti\obj\Debug\net8.0\Verifica_Bassanetti.dll
T:\Verifica_Bassanetti\obj\Debug\net8.0\refint\Verifica_Bassanetti.dll
T:\Verifica_Bassanetti\obj\Debug\net8.0\Verifica_Bassanetti.pdb
T:\Verifica_Bassanetti\obj\Debug\net8.0\Verifica_Bassanetti.genruntimeconfig.cache
T:\Verifica_Bassanetti\obj\Debug\net8.0\ref\Verifica_Bassanetti.dll

Binary file not shown.

View File

@ -0,0 +1 @@
0b1502c82bcdd0f0e4c5811b4109e322aa28d9fe0d2cab66be45a7a9da4f18b4

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,72 +1,68 @@
{ {
"format": 1, "format": 1,
"restore": { "restore": {
"/home/BrainTheBest5/git/Verifica_Bassanetti/Verifica_Bassanetti.csproj": {} "T:\\Verifica_Bassanetti\\Verifica_Bassanetti.csproj": {}
}, },
"projects": { "projects": {
"/home/BrainTheBest5/git/Verifica_Bassanetti/Verifica_Bassanetti.csproj": { "T:\\Verifica_Bassanetti\\Verifica_Bassanetti.csproj": {
"version": "1.0.0", "version": "1.0.0",
"restore": { "restore": {
"projectUniqueName": "/home/BrainTheBest5/git/Verifica_Bassanetti/Verifica_Bassanetti.csproj", "projectUniqueName": "T:\\Verifica_Bassanetti\\Verifica_Bassanetti.csproj",
"projectName": "Verifica_Bassanetti", "projectName": "Verifica_Bassanetti",
"projectPath": "/home/BrainTheBest5/git/Verifica_Bassanetti/Verifica_Bassanetti.csproj", "projectPath": "T:\\Verifica_Bassanetti\\Verifica_Bassanetti.csproj",
"packagesPath": "/home/BrainTheBest5/.nuget/packages/", "packagesPath": "C:\\Users\\alunno\\.nuget\\packages\\",
"outputPath": "/home/BrainTheBest5/git/Verifica_Bassanetti/obj/", "outputPath": "T:\\Verifica_Bassanetti\\obj\\",
"projectStyle": "PackageReference", "projectStyle": "PackageReference",
"configFilePaths": [ "configFilePaths": [
"/home/BrainTheBest5/.nuget/NuGet/NuGet.Config" "C:\\Users\\alunno\\AppData\\Roaming\\NuGet\\NuGet.Config",
], "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
"originalTargetFrameworks": [ ],
"net8.0" "originalTargetFrameworks": [
], "net8.0"
"sources": { ],
"https://api.nuget.org/v3/index.json": {} "sources": {
}, "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"frameworks": { "https://api.nuget.org/v3/index.json": {}
"net8.0": { },
"targetAlias": "net8.0", "frameworks": {
"projectReferences": {} "net8.0": {
} "targetAlias": "net8.0",
}, "projectReferences": {}
"warningProperties": { }
"warnAsError": [ },
"NU1605" "warningProperties": {
] "warnAsError": [
}, "NU1605"
"restoreAuditProperties": { ]
"enableAudit": "true", },
"auditLevel": "low", "restoreAuditProperties": {
"auditMode": "direct" "enableAudit": "true",
} "auditLevel": "low",
}, "auditMode": "direct"
"frameworks": { }
"net8.0": { },
"targetAlias": "net8.0", "frameworks": {
"imports": [ "net8.0": {
"net461", "targetAlias": "net8.0",
"net462", "imports": [
"net47", "net461",
"net471", "net462",
"net472", "net47",
"net48", "net471",
"net481" "net472",
], "net48",
"assetTargetFallback": true, "net481"
"warn": true, ],
"downloadDependencies": [ "assetTargetFallback": true,
{ "warn": true,
"name": "Microsoft.AspNetCore.App.Ref", "frameworkReferences": {
"version": "[8.0.10, 8.0.10]" "Microsoft.NETCore.App": {
} "privateAssets": "all"
], }
"frameworkReferences": { },
"Microsoft.NETCore.App": { "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
"privateAssets": "all" }
} }
}, }
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.403/PortableRuntimeIdentifierGraph.json" }
}
}
}
}
} }

View File

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/BrainTheBest5/.nuget/packages/</NuGetPackageRoot> <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/BrainTheBest5/.nuget/packages/</NuGetPackageFolders> <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\alunno\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.1</NuGetToolVersion> <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.0</NuGetToolVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/BrainTheBest5/.nuget/packages/" /> <SourceRoot Include="C:\Users\alunno\.nuget\packages\" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" /> <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@ -1,77 +1,73 @@
{ {
"version": 3, "version": 3,
"targets": { "targets": {
"net8.0": {} "net8.0": {}
}, },
"libraries": {}, "libraries": {},
"projectFileDependencyGroups": { "projectFileDependencyGroups": {
"net8.0": [] "net8.0": []
}, },
"packageFolders": { "packageFolders": {
"/home/BrainTheBest5/.nuget/packages/": {} "C:\\Users\\alunno\\.nuget\\packages\\": {}
}, },
"project": { "project": {
"version": "1.0.0", "version": "1.0.0",
"restore": { "restore": {
"projectUniqueName": "/home/BrainTheBest5/git/Verifica_Bassanetti/Verifica_Bassanetti.csproj", "projectUniqueName": "T:\\Verifica_Bassanetti\\Verifica_Bassanetti.csproj",
"projectName": "Verifica_Bassanetti", "projectName": "Verifica_Bassanetti",
"projectPath": "/home/BrainTheBest5/git/Verifica_Bassanetti/Verifica_Bassanetti.csproj", "projectPath": "T:\\Verifica_Bassanetti\\Verifica_Bassanetti.csproj",
"packagesPath": "/home/BrainTheBest5/.nuget/packages/", "packagesPath": "C:\\Users\\alunno\\.nuget\\packages\\",
"outputPath": "/home/BrainTheBest5/git/Verifica_Bassanetti/obj/", "outputPath": "T:\\Verifica_Bassanetti\\obj\\",
"projectStyle": "PackageReference", "projectStyle": "PackageReference",
"configFilePaths": [ "configFilePaths": [
"/home/BrainTheBest5/.nuget/NuGet/NuGet.Config" "C:\\Users\\alunno\\AppData\\Roaming\\NuGet\\NuGet.Config",
], "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
"originalTargetFrameworks": [ ],
"net8.0" "originalTargetFrameworks": [
], "net8.0"
"sources": { ],
"https://api.nuget.org/v3/index.json": {} "sources": {
}, "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"frameworks": { "https://api.nuget.org/v3/index.json": {}
"net8.0": { },
"targetAlias": "net8.0", "frameworks": {
"projectReferences": {} "net8.0": {
} "targetAlias": "net8.0",
}, "projectReferences": {}
"warningProperties": { }
"warnAsError": [ },
"NU1605" "warningProperties": {
] "warnAsError": [
}, "NU1605"
"restoreAuditProperties": { ]
"enableAudit": "true", },
"auditLevel": "low", "restoreAuditProperties": {
"auditMode": "direct" "enableAudit": "true",
} "auditLevel": "low",
}, "auditMode": "direct"
"frameworks": { }
"net8.0": { },
"targetAlias": "net8.0", "frameworks": {
"imports": [ "net8.0": {
"net461", "targetAlias": "net8.0",
"net462", "imports": [
"net47", "net461",
"net471", "net462",
"net472", "net47",
"net48", "net471",
"net481" "net472",
], "net48",
"assetTargetFallback": true, "net481"
"warn": true, ],
"downloadDependencies": [ "assetTargetFallback": true,
{ "warn": true,
"name": "Microsoft.AspNetCore.App.Ref", "frameworkReferences": {
"version": "[8.0.10, 8.0.10]" "Microsoft.NETCore.App": {
} "privateAssets": "all"
], }
"frameworkReferences": { },
"Microsoft.NETCore.App": { "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
"privateAssets": "all" }
} }
}, }
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.403/PortableRuntimeIdentifierGraph.json"
}
}
}
} }

View File

@ -1,10 +1,8 @@
{ {
"version": 2, "version": 2,
"dgSpecHash": "J/6c/QsGu6Y=", "dgSpecHash": "D5Vh/0vbgUU=",
"success": true, "success": true,
"projectFilePath": "/home/BrainTheBest5/git/Verifica_Bassanetti/Verifica_Bassanetti.csproj", "projectFilePath": "T:\\Verifica_Bassanetti\\Verifica_Bassanetti.csproj",
"expectedPackageFiles": [ "expectedPackageFiles": [],
"/home/BrainTheBest5/.nuget/packages/microsoft.aspnetcore.app.ref/8.0.10/microsoft.aspnetcore.app.ref.8.0.10.nupkg.sha512" "logs": []
],
"logs": []
} }