/    Sign up×
Community /Pin to ProfileBookmark

how to write script entered data and recall data

I just beginner student, I hv assignment to write as below question,

construct a class definition that can be used to represent an employee of a company. Each employere is defined by an integer ID numer,a floating-point pay rate,and the max. number oy hours the employee should work each week. The service provided by the class should be the ability to enter data for a new employee,the ability to change data for a new employee,and the ability to display the exixsting data for a new employee create a new calss with has main ()method so that the program can be executed the ask the user to enter data for three employees and display the entered date.For this purpose,youneed to”make use”the above class. Modify the program written above in and to include a menu that opffers user the following choice

1.add an employee
2.modify an employee data
3.delete an employee
4.exit this menu

thanks for advance

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@toicontienMar 17.2008 — You might find this article an interesting read: Object-Oriented Programming with JavaScript, Part I: Inheritance. It does cover some basics on OOP but I'm sure you can just breeze right past them. I like this article because if covers the main points of OOP with a focus on how it's done in JavaScript.
Copy linkTweet thisAlerts:
@KorMar 17.2008 — [B]Steven-temp[/B], your teacher uses the term [B][I]class[/I][/B] in a quite inappropriate way. Javascript has no classes. Javascript uses methods/functions/prototype to handle objects and objects' properties and properties' values. Javascript is a [I]prototype[/I] based language, not a [I]class[/I] based one. If you have previously learned a class based language it will be a little bit difficult to switch to a prototype one.

http://en.wikipedia.org/wiki/Prototype-based_programming
Copy linkTweet thisAlerts:
@Steven-tempauthorMar 17.2008 — Thank a lot information

But how do i started? where can fast way to know thsi code becuase I need submit my assignment in 2 days time
Copy linkTweet thisAlerts:
@toicontienMar 17.2008 — Do you have any lecture notes? Have you done any work already? Did you read the article I linked to above?
Copy linkTweet thisAlerts:
@KorMar 17.2008 — Thank a lot information

But how do i started? where can fast way to know thsi code becuase I need submit my assignment in 2 days time[/QUOTE]

But what have you done so far? Can we see your codes tryings? Even if it is wrong, is better for us to see how you think the code, so we might help you.
×

Success!

Help @Steven-temp spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...