Welcome to AssignmentCache!

Visual Basic 2010 How to Program Deitel Exercise 9.7 Employee Class

Availability: In stock

$12.00

Quick Overview

Visual Basic 2010 How to Program Deitel Exercise 9.7 Employee Class


(Employee Class) Create a class called Employee that includes three pieces of information as instance variables-a first name (type String), a last name (type String) and a monthly salary (type Integer). Your class should have a constructor that initializes the three instance variables. Provide a property for each instance variable. The property for the monthly salary should ensure that its value remains positive-if an attempt is made to assign a negative value, throw an exception. Write an application that demonstrates class Employee's capabilities. Create two Employee objects and display each object's yearly salary. Then give each Employee a 10% raise and display each Employee's yearly salary again.

Visual Basic 2010 How to Program Deitel Exercise 9.7 Employee Class

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

  • Visual Basic 2010 How to Program Deitel Exercise 9.7 Employee Class
$12.00

Details

Visual Basic 2010 How to Program Deitel Exercise 9.7 Employee Class

(Employee Class) Create a class called Employee that includes three pieces of information as instance variables-a first name (type String), a last name (type String) and a monthly salary (type Integer). Your class should have a constructor that initializes the three instance variables. Provide a property for each instance variable. The property for the monthly salary should ensure that its value remains positive-if an attempt is made to assign a negative value, throw an exception. Write an application that demonstrates class Employee's capabilities. Create two Employee objects and display each object's yearly salary. Then give each Employee a 10% raise and display each Employee's yearly salary again.

Additional Information

Special Price $10.00

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.

[profiler]
Memory usage: real: 18350080, emalloc: 18027672
Code ProfilerTimeCntEmallocRealMem