CIS247_WK2_Lab - Week 2 iLAB Exercise Basic Employee Information Program Screenshot Source Code Program.cs using using using using using System

CIS247_WK2_Lab - Week 2 iLAB Exercise Basic Employee...

This preview shows page 1 - 3 out of 6 pages.

Week 2 iLAB Exercise Basic Employee Information Program Screenshot Source Code Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CIS247_WK2_EmployeeInformation { class Program { static void Main( string [] args) { ApplicationUtilities .DisplayApplicationInformation(); ApplicationUtilities .DisplayDivider( "Start Program" ); ApplicationUtilities .DisplayDivider( "Prompt for Employee Information and create the first employee" ); Page | 1 CIS247A – Oject Oriented Programming with LAB
Image of page 1
//Create the first employee object using the default Constructor Employee firstEmp = new Employee (); //gets the employee information from the console firstEmp.firstName = InputUtilities .getStringInputValue( "First name " ); //gets the Employee's First Name firstEmp.lastName = InputUtilities .GetInput( "Last name " ); //gets the Employee's Last Name firstEmp.gender = InputUtilities .getCharInputValue( "Gender " ); //gets the Employee's Gender firstEmp.dependents = InputUtilities .getIntegerInputValue( "# Dependents " ); //gets the # of Dependents of the Employee firstEmp.annualSalary = InputUtilities .getDoubleInputValue( "Annual Salary " ); //gets the Employee's Annual Salary //displays the first employee information Console .WriteLine(firstEmp.ToString()); ApplicationUtilities .PauseExecution(); //Create the second employee using the overloaded constructor Employee secondEmp = new
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 6 pages?

  • Fall '14
  • Return statement, Void type, public Employee, employee information

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture