Onieal - HW2/.vs/HW2/v16/.suo Onieal - HW2/.vs/ProjectSettings.json { "CurrentProjectSetting": null } Onieal - HW2/.vs/slnx.sqlite Onieal - HW2/.vs/VSWorkspaceState.json { "ExpandedNodes": [ "",...

1 answer below »
I have errors on my program that I need help fixing.


Onieal - HW2/.vs/HW2/v16/.suo Onieal - HW2/.vs/ProjectSettings.json { "CurrentProjectSetting": null } Onieal - HW2/.vs/slnx.sqlite Onieal - HW2/.vs/VSWorkspaceState.json { "ExpandedNodes": [ "", "\\EmployeeClass" ], "SelectedNode": "\\EmployeeClass\\EmployeeClass.sln", "PreviewInSolutionExplorer": false } Onieal - HW2/EmployeeClass/.vs/EmployeeClass/v14/.suo Onieal - HW2/EmployeeClass/.vs/EmployeeClass/v16/.suo Onieal - HW2/EmployeeClass/EmployeeClass.sln Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EmployeeClass", "EmployeeClass\EmployeeClass.csproj", "{6197FC3C-3ED3-4B22-90FC-4655B6969CF3}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {6197FC3C-3ED3-4B22-90FC-4655B6969CF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6197FC3C-3ED3-4B22-90FC-4655B6969CF3}.Debug|Any CPU.Build.0 = Debug|Any CPU {6197FC3C-3ED3-4B22-90FC-4655B6969CF3}.Release|Any CPU.ActiveCfg = Release|Any CPU {6197FC3C-3ED3-4B22-90FC-4655B6969CF3}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal Onieal - HW2/EmployeeClass/EmployeeClass/bin/Debug/EmployeeClass.exe Onieal - HW2/EmployeeClass/EmployeeClass/bin/Debug/EmployeeClass.pdb Onieal - HW2/EmployeeClass/EmployeeClass/Employee.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EmployeeClassTest { public class Employee { private int m_EmployeeID; private string m_SSNumber; private string m_FirstName; private string m_LastName; private string m_BirthDate; private int m_Age; private string m_Address; private string m_Phone; private string m_Email; private string m_JobTitle; private static int m_Count = 0; // Default Constructor public Employee() { this.m_EmployeeID = 0; this.m_SSNumber = ""; this.m_FirstName = ""; this.m_LastName = ""; this.m_BirthDate = "00/00/0000"; this.m_Age = 0; this.m_Address = ""; this.m_Phone = ""; this.m_Email = ""; this.m_JobTitle = ""; //Increment Static Private Data m_Count by 1 m_Count++; } public Employee(int _employeeID,string _SSNumber, string _firstName, string _larstName, string _birthDate, string _address, string _phone, string _email, string _jobTitle) { this.EmployeeID = _employeeID; this.SNumber = _SSNumber; this.FirstName = _firstName; this.LastName = _larstName; this.BirthDate = _birthDate; this.Address = _address; this.Phone = _phone; this.Email = _email; this.JobTitle = _jobTitle; //Increment Static Private Data m_Count by 1 m_Count++; } // Destructor Method ~Employee() { } // Displays all data members to the screen except the static m_Count. public void Print() { Console.WriteLine("Employee information:"); Console.WriteLine("Employee ID = {0}", this.m_EmployeeID); Console.WriteLine("First Name = {0}", this.m_FirstName); Console.WriteLine("Last Name = {0}", this.m_LastName); Console.WriteLine("Social Security = {0}", this.m_SSNumber); Console.WriteLine("Date of Birth = {0}", this.m_BirthDate); Console.WriteLine("Address = {0}", this.m_Address); Console.WriteLine("Age = {0}", this.m_Age); Console.WriteLine("Email = {0}", this.m_Email); Console.WriteLine("Job Title = {0}\n", this.m_JobTitle); } public int EmployeeID { get { return this.m_EmployeeID; } set { this.m_EmployeeID = value; } } public string SNumber { get { return this.m_SSNumber; } set { this.m_SSNumber = value; } } public string FirstName { get { return this.m_FirstName; } set { this.m_FirstName = value; } } public string LastName { get { return this.m_LastName; } set { this.m_LastName = value; } } public string BirthDate { get { return this.m_BirthDate; } set { this.m_BirthDate = value; this.m_Age = (int)(((DateTime.Today - DateTime.Parse(m_BirthDate)).Days) / 365); } } public int Age { get { return this.m_Age; } set { this.m_Age = value; } } public string Address { get { return this.m_Address; } set { this.m_Address = value; } } public string Phone { get { return this.m_Phone; } set { this.m_Phone = value; } } public string Email { get { return this.m_Email; } set { this.m_Email = value; } } public string JobTitle { get { return this.m_JobTitle; } set { this.m_JobTitle = value; } } } } Onieal - HW2/EmployeeClass/EmployeeClass/EmployeeClass.csproj Debug AnyCPU {6197FC3C-3ED3-4B22-90FC-4655B6969CF3} Exe Properties EmployeeClass EmployeeClass v4.0 512 AnyCPU true full false bin\Debug\ DEBUG;TRACE prompt 4 AnyCPU pdbonly true bin\Release\ TRACE prompt 4
Answered Same DayApr 12, 2021

Answer To: Onieal - HW2/.vs/HW2/v16/.suo Onieal - HW2/.vs/ProjectSettings.json { "CurrentProjectSetting": null...

G Revanth answered on Apr 13 2021
149 Votes
onieal-hw2-v1azwnyk/Onieal - HW2/.vs/HW2/v16/.suo
onieal-hw2-v1azwnyk/Onieal - HW2/.vs/ProjectSettings.json
{
"CurrentProjectSetting": null
}
onieal-hw2-v1azwnyk/Onieal - HW2/.vs/slnx.sqlite
onieal-hw2-v1azwnyk/Onieal - HW2/.vs/VSWorkspaceState.json
{
"ExpandedNodes": [
"",
"\\EmployeeClass"
],
"SelectedNode": "\\EmployeeClass\\EmployeeClass.sln",
"PreviewInSolutionExplorer": false
}
onieal-hw2-v1azwnyk/Onieal - HW2/Account class.png
onieal-hw2-v1azwnyk/Onieal - HW2/Employee class.png
onieal-hw2-v1azwnyk/Onieal - HW2/EmployeeClass/.vs/EmployeeClass/v14/.suo
onieal-hw2-v1azwnyk/Onieal - HW2/EmployeeClass/.vs/EmployeeClass/v16/.suo
onieal-hw2-v1azwnyk/Onieal
- HW2/EmployeeClass/EmployeeClass.sln
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EmployeeClass", "EmployeeClass\EmployeeClass.csproj", "{6197FC3C-3ED3-4B22-90FC-4655B6969CF3}"
EndProject
Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
        Debug|Any CPU = Debug|Any CPU
        Release|Any CPU = Release|Any CPU
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
        {6197FC3C-3ED3-4B22-90FC-4655B6969CF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
        {6197FC3C-3ED3-4B22-90FC-4655B6969CF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
        {6197FC3C-3ED3-4B22-90FC-4655B6969CF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
        {6197FC3C-3ED3-4B22-90FC-4655B6969CF3}.Release|Any CPU.Build.0 = Release|Any CPU
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
        HideSolutionNode = FALSE
    EndGlobalSection
EndGlobal
onieal-hw2-v1azwnyk/Onieal - HW2/EmployeeClass/EmployeeClass/bin/Debug/EmployeeClass.exe
onieal-hw2-v1azwnyk/Onieal - HW2/EmployeeClass/EmployeeClass/bin/Debug/EmployeeClass.pdb
onieal-hw2-v1azwnyk/Onieal - HW2/EmployeeClass/EmployeeClass/Employee.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EmployeeClassTest
{
public class Employee
{
private int m_EmployeeID;
private string m_SSNumber;
private string m_FirstName;
private string m_LastName;
private string m_BirthDate;
private int m_Age;
private string m_Address;
private string m_Phone;
private string m_Email;
private string m_JobTitle;
private static int m_Count = 0;
// Default Constructor
public Employee()
{
this.m_EmployeeID = 0;
this.m_SSNumber = "";
this.m_FirstName = "";
this.m_LastName = "";
this.m_BirthDate = "00/00/0000";
this.m_Age = 0;
this.m_Address = "";
this.m_Phone = "";
this.m_Email = "";
this.m_JobTitle = "";
//Increment Static Private Data m_Count by 1
m_Count++;
}
public Employee(int _employeeID, string _SSNumber, string _firstName, string _larstName, string _birthDate, string _address, string _phone, string _email, string _jobTitle)
{
this.EmployeeID = _employeeID;
this.SNumber = _SSNumber;
this.FirstName = _firstName;
this.LastName = _larstName;
this.BirthDate = _birthDate;
this.Address = _address;
this.Phone = _phone;
this.Email = _email;
this.JobTitle = _jobTitle;
//Increment Static Private Data m_Count by 1
m_Count++;

}
// Destructor Method
~Employee() {
}
// Displays all data members to the screen except the static m_Count.
public void Print() {
Console.WriteLine("Employee information:");
Console.WriteLine("Employee ID = {0}", this.m_EmployeeID);
Console.WriteLine("First Name = {0}", this.m_FirstName);
Console.WriteLine("Last Name = {0}", this.m_LastName);
Console.WriteLine("Social Security = {0}", this.m_SSNumber);
Console.WriteLine("Date of Birth = {0}", this.m_BirthDate);
Console.WriteLine("Address = {0}", this.m_Address);
Console.WriteLine("Age = {0}", this.m_Age);
Console.WriteLine("Email = {0}", this.m_Email);
Console.WriteLine("Job Title = {0}\n", this.m_JobTitle);
}
public int EmployeeID
{
get { return this.m_EmployeeID; }
set { this.m_EmployeeID = value; }
}
public string SNumber
{
get { return this.m_SSNumber; }
set { this.m_SSNumber = value; }
}
public string FirstName
{
get { return this.m_FirstName; }
set { this.m_FirstName = value; }
}
public string LastName
{
get { return this.m_LastName; }
set { this.m_LastName = value; }
}
public string BirthDate
{
get { return this.m_BirthDate; }
set {
this.m_BirthDate = value;
this.m_Age = (int)(((DateTime.Today - DateTime.Parse(m_BirthDate)).Days) / 365);
}
}
public int Age
{
get { return this.m_Age; }

}
public string Address
{
get { return this.m_Address; }
set { this.m_Address = value; }
}
public string Phone
{
get { return this.m_Phone; }
set { this.m_Phone = value; }
}
public string Email
{
get { return this.m_Email; }
set { this.m_Email = value; }
}
public string JobTitle
{
get { return this.m_JobTitle; }
set { this.m_JobTitle = value; }
}
}
}
onieal-hw2-v1azwnyk/Onieal - HW2/EmployeeClass/EmployeeClass/EmployeeClass.csproj



Debug
AnyCPU
{6197FC3C-3ED3-4B22-90FC-4655B6969CF3}
Exe
Properties
EmployeeClass
EmployeeClass
v4.0
512


AnyCPU
true
full
false
bin\Debug\
DEBUG;TRACE
prompt
4


AnyCPU
pdbonly
true
bin\Release\
TRACE
prompt
4

















onieal-hw2-v1azwnyk/Onieal - HW2/EmployeeClass/EmployeeClass/EmployeeClassTest.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EmployeeClassTest
{
class EmployeeClassTest
{
static void Main(string[] args)
{
//‐ Create an object based on the Employee Class...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here