Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2012, 01:41 PM
Registered User
 
Join Date: Oct 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help Create Employee Class Code

Hello Coders I am requesting help making some code. USing the visual C#2010 deitel fourth ed. i need to apply the application code using console application. Then create a new project called employee class. Here is what i need help with

"Create a class called employee that includes three pieces of information as either instance variables or automatic properties. first name(type string), a last name(type string) and monthly salary(decimal) . your class should have a constructor that initailzes the three values. provide a property with a get and set acessor for any instance variables. if the monthly salary is negative , the set accessor should leave the instance variable unchanged. write a test app named employeetest that demostrates the class employee capablities. create two employee objects and display each object's yearly salry. then give employee a 10% raise and display each employe yearly salary again
 
Old October 12th, 2012, 02:11 PM
Registered User
 
Join Date: Oct 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

bump page up
 
Old October 12th, 2012, 04:03 PM
Registered User
 
Join Date: Oct 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

BUMP PAGE UP
 
Old October 14th, 2012, 06:45 AM
Registered User
 
Join Date: Oct 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The reason you aren't getting any responses may be that your question isn't making very much sense. I'm sorry if English is not your first language, but perhaps you could rephrase some things:

1. USing the visual C#2010 deitel fourth ed.

This is a C++ forum. You may be in the wrong place. I don't understand the word "deitel".

2. i need to apply the application code using console application.

This statement isn't clear. Perhaps if you were to define what "the application code" refers to and which "console aplication" you need to use?

3. Then create a new project called employee class.

Are you creating a project or a class? From reading the description, it would appear you need to create a class. You can do this by right clicking on the project (not the solution, the project) in the solution explorer, clicking "ADD" in the context menu, and then selecting "class" from the flyout menu.

I hope this gives you some guidance on where and how to get some better help.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Novice in C# -Incrementing Employee Class GoBlue C# 4.0 aka C# 2010 General Discussion 2 May 1st, 2014 01:38 AM
Lesson 2 - can not create Class BubNorth BOOK: Java Programming 24-Hour Trainer by Yakov Fain 1 March 4th, 2012 09:44 PM
How to Create Forms Class in C#? Bill_Thompson C# 2005 0 April 18th, 2010 07:16 AM
Can I create a class from a variable? MAtkins General .NET 2 August 1st, 2005 11:57 AM
Cannot create a new class from VS 2k3 r_ganesh76 General .NET 0 November 3rd, 2004 05:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.