d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Got A Vb Task | Need Done > Paying Fg - All Info Inside
Add Reply New Topic New Poll
Member
Posts: 3,936
Joined: Apr 29 2011
Gold: 1,473.50
Apr 9 2013 11:15pm
simple program that calculates salary based on user input, couple functions/arrays and layout

anyone interested in earning easy fg PM me - Paying 1K

(have lots of fg stored, that i'll grab as soon as someone is willing to do the task)

This post was edited by lotsofhats on Apr 9 2013 11:17pm
Member
Posts: 2,757
Joined: Nov 26 2007
Gold: 1,214.81
Apr 10 2013 07:56am
i'll do it. send me details
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Apr 10 2013 12:48pm
i can also do this
Member
Posts: 3,936
Joined: Apr 29 2011
Gold: 1,473.50
Apr 10 2013 06:39pm
VB Task:

Program Specification
Clive’s Car Yard requires you to design, code, document and test a program which calculates the salary of each of the four sales staff. All staff receive a base salary of $400 a week plus a bonus of 1.5% of their total sales amount. For instance, if Tim Cook’s total sales is $30,000, then his bonus would be $450, giving him a salary of $850.
The program needs to allow the salesperson to select their name and then enter the total sales amount for the week.
The manager by clicking on the display totals button and entering in the correct password, can view the total sales and salaries. The highest salary is calculated and displayed to the manager. The program terminates when the manager has checked the totals.
The program will therefore need to do the following:
1. Display a friendly user interface
2. use a listbox for selecting the salesperson’s name. The sales staff are:
• John King
• David Smith
• Tim Cook
• You (Use your own name)

- use a textbox for entry of total sales amount
- use a label for display of Sales Total and salary for each salesperson and the highest salary.
- have buttons for:
a. Add a Sale - Adding the total sales figure for each sales person.
b. Display Totals - Display of totals – only manager can run this so must be password protected. The program will check the manager enters the correct password and then displays the Total Sales Amount and Salary for each salesperson. The program will also display who earned the highest salary and the amount. It will then terminate.

The program will need to:
1. Store each Salesperson’s name and total sales in an array.
2. Have a function for checking the password before displaying totals.
3. Calculate the salary for each salesperson (400 + 1.5% * Total Sales)
4. Calculate the highest salary amount and who it is for

You will need to submit:
1. An electronic copy of your pseudocode for
• Checking password is correct – allow 3 attempts only
• Calculating salary for each person
• Calculating highest salary and name of person
2. Test data and expected results – use Excel for generating this.
3. An electronic copy of your working project – ensure that you have documented your code (added comments).
4. Screen captures of your test results – use print screen and paste into the Excel document that has your expected results.




JavaScript Task:
"You are required to create a Limerick Generator using a client side script and embed it within a webpage."
The Limerick Generator needs a list of words from the user. You are to create a form that will quiz the user for these words. After all the words have been collected, a button should turn those words into a funny Limerick.

For example:
The user dialog might ask you to answer the following questions:

Name of your character: Bill
Two words that rhyme with your character’s name: kill, thrill
Pick your character’s body type (from a list of words): fat
Pick something your character is often seen doing: eating
Name your character’s occupation: butcher
What is the past tense of a task your character might do at work: chopped
Pick a past tense verb(from a list of words): sat
Pick a direction(from a list of words): down
Pick a facial expression that rhymes with your direction(from a list of words): frown

After the user clicks the ‘generate’ button, the following text appears:

There was a fat butcher called Bill
Who cooked more than he wanted to kill
One day he sat down
And said with a frown
That his eating was more than a thrill.

The user can then change their answer a new limerick can be easily generated.

Use jQuery, HTML + CSS to make your scripting and form look neat, presentable and attractive.. TEST the Generator before emailing your final html. Errors need to be avoided to achieve a passing mark.




lmk who can do what, open to negotiations, need done asap (1-2 days?)
paying in either RSGP, FG or $$
Member
Posts: 2,757
Joined: Nov 26 2007
Gold: 1,214.81
Apr 11 2013 08:26am
Let me know if I need to change anything and pm me if you want me to email you the full project.

SalaryCalculator.vb
Code
Public Class SalaryCalculator
   Dim employeeList As New List(Of Employee)
   Private Sub SalaryCalculator_Load(sender As Object, e As EventArgs) Handles MyBase.Load
       employeeList.Add(New Employee("John King"))
       employeeList.Add(New Employee("David Smith"))
       employeeList.Add(New Employee("Tim Cook"))
       employeeList.Add(New Employee("lotsofhats"))

       For Each emp As Employee In employeeList
           lstEmployees.Items.Add(emp)
       Next
       lstEmployees.DisplayMember = "Name"
       lblShowTotal.Text = "Totals hidden"
       lblSalary.Visible = False

   End Sub

   Private Sub lstEmployees_SelectedIndexChanged(sender As Object, e As EventArgs) Handles lstEmployees.SelectedIndexChanged
       lblSalary.Text = lstEmployees.SelectedItem.salary
   End Sub

   Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click
       lstEmployees.SelectedItem.salary += Double.Parse(txtAdd.Text) * 0.015
       lblSalary.Text = lstEmployees.SelectedItem.salary

       Dim highestEmployee As Employee = lstEmployees.Items.Item(0)

       For Each emp As Employee In employeeList
           If emp.salary > highestEmployee.salary Then
               highestEmployee = emp
           End If
       Next

       lblHighestSalary.Text = highestEmployee.name.ToString


   End Sub

   Private Sub btnShowTotal_Click(sender As Object, e As EventArgs) Handles btnShowTotal.Click
       If txtPassword.Text = "password" Then
           lblSalary.Visible = True
           lblShowTotal.Text = "Total:"
       End If

   End Sub
End Class


Employee.vb
Code
Public Class Employee
   Public Property name As String
   Public Property salary As Double

   Public Sub New(_name As String)
       name = _name
       salary = 400
   End Sub

End Class


This post was edited by labatymo on Apr 11 2013 08:27am
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll