write some simple php/ java script code

Em Andamento

Write both PHP and JavaScript Code for the following .

1. Create a function called “generateEven” that will return array containing only even numbers between 1 and n. n is passed as a parameter to the function.

2. Write a function called “getSize” that accept an array and display the number of elements in an array. The function should accommodate both indexed and associative arrays.

3. Write a function called “addTo” that will add a value to an array based on the position

specified. The function will accept three parameters, the array of values, the value to be entered, and a string which identifies the position. The positions can be either front or back.

4. Write a function called enqueue, that will perform the enqueue operation on an array. The array and the value to be enqueued are supplied as parameters.

5. Write a function called dequeue that will perform the dequeue operations on an array. The function will accept the array as a parameter and return the resulting value.

6. Write a function called addToObj that will accept three parameters, an object, the index location and the value. The function will add the index and its respective value to the object. The function will return the resulting object.

JavaScript:

Develop a function called “simulateBanking” that will emulate a bank with the following features using only HTML and JavaScript:

7. The user will have two buttons add and remove that will add and remove customers from the queue.

8. The add button will prompt the user to enter the name of the customer who entered the bank. The add will ensure that the customer name is at least 5 characters long.

9. The remove button will remove the next person in line for the queue. The program will confirm with the user to remove the next customer. [hint]

10. After each of the operations above display the current state of the queue on the browser. [We recommend creating an div with an id, and list each customer as an element in a list]

Habilidades: CSS, HTML, Javascript, PHP

Ver mais: write a simple php script, java web php net html, script edit simple php, write simple php script, script java css php, write program java script design simple calculator, php write html, image upload script java demo php, php write html text file, php write html form file, simple php newsletter html, simple php spider html parser, php write html file, php write html script, php script write html file, simple php contact form using smtp, tinymce php write html, simple php pop3 read script, php zip code script tutorial, simple php addition script, simple script import data php, simple php mysql script users, sign upsign login simple php script, simple php replace script, simple php code sign form

ID do Projeto: #11736960

Premiar a:

DemonDeveloper

We are team of excellent developers. We have 2 year experience related to your project field. We can do your project and solve your all problems according to your requirements. We have read your description for project Mais

$30 USD em 1 dia
(25 Avaliações)
4.3

8 freelancers estão ofertando em média $90 para este trabalho

sharwan47

Hello, I am a passionate, qualified and experienced Web developer and having more than 5 years of experience in developing websites, web portals, web applications and mobile sites through PHP, Wordpress, Joomla, Dru Mais

$222 USD em 1 dia
(16 Comentários)
5.5
SHIHABSHARAR

Hello there !! I have read your requirements for the task and i'm interested in your project . If you want to discuss further about the requirement in more details it would be really helpful for me to understand. In Mais

$80 USD in 0 dias
(38 Comentários)
5.3
Programmer59

Hello Sir..! I read your description I can complete your project on time and within your budget I am fully confident about your project. I will receive your best wishes. I am waiting your response thanks you so much Mais

$50 USD em 1 dia
(11 Comentários)
3.5
$70 USD em 1 dia
(2 Comentários)
2.3
Amitjn55

Hi there, We are ready to write yourJava/PHP script code and We are interested in working with you !!! Please feel free to contact us anytime to discuss your project. We look forward to working with you soon. Mais

$15 USD in 3 dias
(1 Comentário)
0.4
AnushMani

Hello Friend, My Understanding About Your Project: ============================== I have gone through your job description that I understand the requirement and ready to provide you the same. Below are my some Dev Mais

$222 USD in 3 dias
(0 Comentários)
0.0
$30 USD in 2 dias
(0 Comentários)
0.0