Branching in C#
GLConsoleDisplayMessage/.vs/GLConsoleDisplayMessage/v15/.suo
GLConsoleDisplayMessage/.vs/GLConsoleDisplayMessage/v15/Server/sqlite3/db.lock
GLConsoleDisplayMessage/.vs/GLConsoleDisplayMessage/v15/Server/sqlite3/storage.ide
GLConsoleDisplayMessage/.vs/GLConsoleDisplayMessage/v15/Server/sqlite3/storage.ide-shm
GLConsoleDisplayMessage/.vs/GLConsoleDisplayMessage/v15/Server/sqlite3/storage.ide-wal
GLConsoleDisplayMessage/App.config
GLConsoleDisplayMessage/bin/Debug/GLConsoleDisplayMessage.exe
GLConsoleDisplayMessage/bin/Debug/GLConsoleDisplayMessage.exe.config
GLConsoleDisplayMessage/bin/Debug/GLConsoleDisplayMessage.pdb
GLConsoleDisplayMessage/GLConsoleDisplayMessage.csproj
Debug AnyCPU {41DF089E-9F98-409D-84B7-076E1C55892D} Exe GLConsoleDisplayMessage GLConsoleDisplayMessage v4.6.1 512 true AnyCPU true full false bin\Debug\ DEBUG;TRACE prompt 4 AnyCPU pdbonly true bin\Release\ TRACE prompt 4
GLConsoleDisplayMessage/GLConsoleDisplayMessage.sln
Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.27703.2026 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GLConsoleDisplayMessage", "GLConsoleDisplayMessage.csproj", "{41DF089E-9F98-409D-84B7-076E1C55892D}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {41DF089E-9F98-409D-84B7-076E1C55892D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {41DF089E-9F98-409D-84B7-076E1C55892D}.Debug|Any CPU.Build.0 = Debug|Any CPU {41DF089E-9F98-409D-84B7-076E1C55892D}.Release|Any CPU.ActiveCfg = Release|Any CPU {41DF089E-9F98-409D-84B7-076E1C55892D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {61C7B323-6A2F-46F9-BFE6-0208EE499FFB} EndGlobalSection EndGlobal
GLConsoleDisplayMessage/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
GLConsoleDisplayMessage/obj/Debug/GLConsoleDisplayMessage.csproj.CoreCompileInputs.cache
d5fb5fe4641142e3481a78f1c598596a5fab17de
GLConsoleDisplayMessage/obj/Debug/GLConsoleDisplayMessage.csproj.FileListAbsolute.txt
C:\Users\Owner\source\repos\GLConsoleDisplayMessage\bin\Debug\GLConsoleDisplayMessage.exe.config C:\Users\Owner\source\repos\GLConsoleDisplayMessage\bin\Debug\GLConsoleDisplayMessage.exe C:\Users\Owner\source\repos\GLConsoleDisplayMessage\bin\Debug\GLConsoleDisplayMessage.pdb C:\Users\Owner\source\repos\GLConsoleDisplayMessage\obj\Debug\GLConsoleDisplayMessage.csprojAssemblyReference.cache C:\Users\Owner\source\repos\GLConsoleDisplayMessage\obj\Debug\GLConsoleDisplayMessage.csproj.CoreCompileInputs.cache C:\Users\Owner\source\repos\GLConsoleDisplayMessage\obj\Debug\GLConsoleDisplayMessage.exe C:\Users\Owner\source\repos\GLConsoleDisplayMessage\obj\Debug\GLConsoleDisplayMessage.pdb
GLConsoleDisplayMessage/obj/Debug/GLConsoleDisplayMessage.csprojAssemblyReference.cache
GLConsoleDisplayMessage/obj/Debug/GLConsoleDisplayMessage.exe
GLConsoleDisplayMessage/obj/Debug/GLConsoleDisplayMessage.pdb
GLConsoleDisplayMessage/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
GLConsoleDisplayMessage/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
GLConsoleDisplayMessage/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
GLConsoleDisplayMessage/Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GLConsoleDisplayMessage { class Program { static void Main(string[] args) { // declare variables with their types string coName, welcomeMsg, developer; int year, zipcode; double grosspay, taxrate = 0.07, taxpaid; //input company details Console.Write("Enter the Company Name: "); coName = Console.ReadLine(); Console.Write("Enter the Year the Company was formed: "); year = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter the software developer's name: "); developer = Console.ReadLine(); Console.Write("Enter the ZIP Code: "); zipcode = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter the monthly gross pay: "); grosspay = Convert.ToDouble(Console.ReadLine()); welcomeMsg = "Welcome we are professional Csharp developers"; Console.WriteLine("\n************************************************************"); /* * Output the details * Use tabs (/t) and line breaks (/n) to align them on console screen. */ Console.WriteLine("\n\t\t\t{0}\n\t{1}\n\t\t\tSince {2}\n\n", coName, welcomeMsg, year); taxpaid = taxrate * grosspay; Console.WriteLine("Software developer's name:\t{0}\nZIP code:\t\t\t{1}\nMonthly gross pay:\t\t{2}\nTax paid:\t\t\t{3}", developer, zipcode, grosspay.ToString("C2"), taxpaid.ToString("C2")); Console.WriteLine("\n************************************************************"); /* Exit the console only when a key is pressed */ Console.ReadKey(); } } }
GLConsoleDisplayMessage/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("GLConsoleDisplayMessage")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("GLConsoleDisplayMessage")] [assembly: AssemblyCopyright("Copyright © 2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("41df089e-9f98-409d-84b7-076e1c55892d")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]