Em Andamento

JavaScript Simple Code

I need to implement the following 2 javascript codes:

1. Implementation of a list of names :

Create an html file ( with Javascript) to implement the following :

a) An [url removed, login to view] page that contains 4 buttons with the following labels :

- Insert name

- Delete name

- Sort names

- View name

b) When the user presses the button "Insert name" will get a window where you enter a name. When the user presses OK the name will be recorded at the end of a list type array. If the name is already in the list then you will receive an error message and will not be registered in the name list -array.

c) When the user presses the button "Delete name" will get a window where you enter a name. When the user presses OK will be found the name in the list and will be deleted. If the name does not exist it will display an error message .

d) When the user presses the button "Sort names" then ordered that the names registered in list -array.

e) When the user presses the button "View names" then you will see a new window -browser where to display the names of the list in a list.

• Caution : The user has the right to use these actions (ie , to press the button) multiple times .

2. Write function in JavaScript which will implement the following actions:

a. It takes as input a string.

b. Will examine whether the string contains spaces . Even if it contains a space or is itself an empty string then it will print "Invalid String!".

c. It divides the string in two and they will print the two strings with just two spaces between them.

d. It executes the step (c) recursively until all printed characters of string with gaps within 2 to one another.

The function should be implemented with recursion.

Note: if the string has an odd number of characters (ie , 1,3,5 , ... ), then the middle will cling to the second string ( particularly if the string S has n characters , where n is an odd number , then divide the S will give two strings A and B , wherein A includes the first ((n-1) / 2) of characters S and B will have the remaining ) .

Execution Example ( with _ symbolized gaps in performance below ) :

Input string: Christodoulos

christodoulos

christ __ odoulos

chr_ _ist_ _odo_ _ulos

c_ _hr_ _i_ _st_ _o_ _do_ _ul_ _os

c_ _h_ _r_ _i_ _s_ _t_ _o_ _d_ _o_ _u_ _l_ _o_ _s

Habilidades: HTML, Javascript

Ver mais: html javascript code simple, when to use recursion, string b, sort array c, simple recursion example, simple recursion, recursively, recursion function, printed names, performance press, get right code, codes in javascript, get a code, html 5 codes, page javascript simple, javascript write display, insert javascript html, string html, simple print function, javascript multiple page, html code error, list view html, function recursion, javascript user type, print labels browser

Acerca do Empregador:
( 1 comentário ) Thessaloniki, Turkey

ID do Projeto: #5129340

Premiar a:

urmate

Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks

$25 USD em 1 dia
(13 Avaliações)
3.9

9 freelancers estão ofertando em média $33 para este trabalho

dustafo

I can get this done for you right away.

$50 USD em 1 dia
(38 Comentários)
5.1
it2051229

Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my HTML and JavaScript skills. I am focused mostly on doing computer science homework here in [url removed, login to view] a Mais

$30 USD in 0 dias
(47 Comentários)
4.9
salienttemplates

Hi I am ready to do this project.i have experience in graphic and web design.i provide you W3C validated, cross browser,hand coded xhtml/html5/css/css3/javascript [url removed, login to view] quality work. waiting for your reply Mais

$33 USD em 1 dia
(26 Comentários)
4.8
jayshreeganeshha

Hi i am software developer working from 3 years in c#.Net,javascript,jquery,html and sql. I have gone through your requirement and clearly understood [url removed, login to view] check my profile and discuss with me, i hope you would Mais

$20 USD em 1 dia
(7 Comentários)
3.4
Meagan26

Hello, I have read through your project and I am incredibly interested in taking on your project. I am an experienced developer with a diploma in the field of web develment. I have been working in the field of web d Mais

$60 USD in 3 dias
(3 Comentários)
3.0
datapoolvn

A proposal has not yet been provided

$34 USD em 1 dia
(3 Comentários)
1.5
ivanolive

A proposal has not yet been provided

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

hi, i Can do it please send me a message and i will start working now :) i hope to accept me to do this job thanks

$11 USD in 3 dias
(0 Comentários)
0.0