Error Handling
GLweek3Branching/.vs/GLweek3Branching/v15/.suo
GLweek3Branching/.vs/GLweek3Branching/v15/Server/sqlite3/db.lock
GLweek3Branching/.vs/GLweek3Branching/v15/Server/sqlite3/storage.ide
GLweek3Branching/.vs/GLweek3Branching/v15/Server/sqlite3/storage.ide-shm
GLweek3Branching/.vs/GLweek3Branching/v15/Server/sqlite3/storage.ide-wal
GLweek3Branching/App.config
GLweek3Branching/bin/Debug/GLweek3Branching.exe
GLweek3Branching/bin/Debug/GLweek3Branching.exe.config
GLweek3Branching/bin/Debug/GLweek3Branching.pdb
GLweek3Branching/GLweek3Branching.csproj
Debug AnyCPU {628C8842-53DC-4D51-91E3-5E07B4455348} Exe GLweek3Branching GLweek3Branching v4.6.1 512 true AnyCPU true full false bin\Debug\ DEBUG;TRACE prompt 4 AnyCPU pdbonly true bin\Release\ TRACE prompt 4
GLweek3Branching/GLweek3Branching.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}") = "GLweek3Branching", "GLweek3Branching.csproj", "{628C8842-53DC-4D51-91E3-5E07B4455348}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {628C8842-53DC-4D51-91E3-5E07B4455348}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {628C8842-53DC-4D51-91E3-5E07B4455348}.Debug|Any CPU.Build.0 = Debug|Any CPU {628C8842-53DC-4D51-91E3-5E07B4455348}.Release|Any CPU.ActiveCfg = Release|Any CPU {628C8842-53DC-4D51-91E3-5E07B4455348}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {CE30ECE5-4962-4C96-B894-129A33287D08} EndGlobalSection EndGlobal
GLweek3Branching/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
GLweek3Branching/obj/Debug/GLweek3Branching.csproj.CoreCompileInputs.cache
d5fb5fe4641142e3481a78f1c598596a5fab17de
GLweek3Branching/obj/Debug/GLweek3Branching.csproj.FileListAbsolute.txt
C:\Users\Owner\source\repos\GLweek3Branching\bin\Debug\GLweek3Branching.exe.config C:\Users\Owner\source\repos\GLweek3Branching\bin\Debug\GLweek3Branching.exe C:\Users\Owner\source\repos\GLweek3Branching\bin\Debug\GLweek3Branching.pdb C:\Users\Owner\source\repos\GLweek3Branching\obj\Debug\GLweek3Branching.csprojAssemblyReference.cache C:\Users\Owner\source\repos\GLweek3Branching\obj\Debug\GLweek3Branching.csproj.CoreCompileInputs.cache C:\Users\Owner\source\repos\GLweek3Branching\obj\Debug\GLweek3Branching.exe C:\Users\Owner\source\repos\GLweek3Branching\obj\Debug\GLweek3Branching.pdb
GLweek3Branching/obj/Debug/GLweek3Branching.csprojAssemblyReference.cache
GLweek3Branching/obj/Debug/GLweek3Branching.exe
GLweek3Branching/obj/Debug/GLweek3Branching.pdb
GLweek3Branching/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
GLweek3Branching/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
GLweek3Branching/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
GLweek3Branching/Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleCompanyDisplay3 { class Program { static void Main(string[] args) { // declare variables with their types string coName, welcomeMsg; int year; double taxrate = 0.07; //create arrays to store data from inputs string[] developers = new string[3]; int[] zipcodes = new int[3]; double[] grosspay = new double[3]; double[] taxpaid = new double[3]; //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()); welcomeMsg = "Welcome we are professional Csharp developers"; //create a loop to take in all the names, zipcodes and grosspay for (int i = 0; i < 3; i++) { Console.Write("\nEnter the {0} software developer's name: ", i + 1); developers[i] = Console.ReadLine(); Console.Write("Enter the Year the ZIP Code: "); zipcodes[i] = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter the Year the monthly gross pay: "); grosspay[i] = Convert.ToDouble(Console.ReadLine()); taxpaid[i] = taxrate * grosspay[i]; } 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); //loop through the arrays to show each output for (int i = 0; i < 3; i++) { 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}\n\n", developers[i], zipcodes[i], grosspay[i].ToString("C2"), taxpaid[i].ToString("C2")); } Console.WriteLine("\n************************************************************"); /* Exit the console only when a key is pressed */ Console.ReadKey(); } } }
GLweek3Branching/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("GLweek3Branching")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("GLweek3Branching")] [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("628c8842-53dc-4d51-91e3-5e07b4455348")] // 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")]