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 $$