Find Jobs
Hire Freelancers

Javascript

$10-30 USD

Anulowano
Opublikowano prawie 9 lat temu

$10-30 USD

Płatne przy odbiorze
Assignment 1. In Javascript we are going to create a Class called Chain. If you need a little primer on creating objects and classes in Javascript see [login to view URL] - if you know your object oriented code this will be relatively straightforward. Your Chain will be made up of Links. Each link will have an id, a value (String) and a pointer to the next link ( NextLink ) - which is simply a pointer to the id of the next link in the Chain. Please note that this is a very inefficient representation of the Chain. Here is a simple Javascript code definition of a Link for you to use. [login to view URL] You will make a Chain consisting of 5 links. You will also create a print function for the chain that will print the links in link order. You may need to create some functions to support this functionality. Assignment 2. Implement a Stack computer in Javascript (you will turn in a link to your program in JSFiddle). This is a simple computer that keeps a stack, when a number is entered it goes onto the top of the stack. When an operation is entered, the previous 2 numbers are operated on by the operation. For example 2 [enter] 2 5 [enter] 5 2 * [enter] * 5 2 -> collapses to 10 would leave at 10 at the top of the stack. The program should use a simple input box, either a text field or prompt and display the contents of the Stack. Question: What kind of structure and algorithm is needed to make a game like this? Assignment 3 You are going to create a List. You will then fill it with numbers consecutively numbered from 2 to n where n is entered by the user. Create a second List - this one should be a Queue - it is empty. Once you have the first List filled we are going to use a technique called Sieve of Eratosthenes which uses first queue to fill the second queue. You will need to look at the algorithm for this [login to view URL] Here is the simple method to do this - L1 is the first list, Q1 is the Queue. 1. Go to 1st element in L1 (which will be 2). 2. Because it exists - Push this into Q1 and remove it from L1 3. Iterate through each element of L1 and if the value is divisible by 2 remove it. 4. When done go back to the beginning of the list (the value will be 3 the second time around) 5. Print Iteration 1, Value of L1 (all elements) and Q1 (all elements) 6. Repeat steps 2-5 with this new element - repeat until L1 is empty. Sample output with input 10 Iteration 0: L1 = 2 3 4 5 6 7 8 9 10, Q1 = , Iteration 1: L1 = 3 5 7 9, Q1 = 2 Iteration 2: L1 = 5 7, Q1 = 2 3 Iteration 3: L1 = 7, Q1 = 2 3 5 Iteration 4: L1 = , Q1 = 2 3 5 7
Identyfikator projektu: 8026190

Informację o projekcie

8 ofert
Zdalny projekt
Aktywny 9 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
8 freelancerzy składają oferty o średniej wysokości $30 USD dla tej pracy
Awatar Użytkownika
I have 3 years experience in web programming I can provide you the solution inbox me for more details.
$30 USD w 5 dni
5,0 (104 opinii)
6,2
6,2
Awatar Użytkownika
A proposal has not yet been provided
$30 USD w 1 dzień
5,0 (10 opinii)
5,0
5,0
Awatar Użytkownika
Hello, I would like to help you with this Javascript project :) Please let me know if you want to work together! :)
$25 USD w 1 dzień
5,0 (56 opinii)
4,7
4,7
Awatar Użytkownika
hii, hiring us will give you the following benefits.. - 365 days of support - 24 X 7 availabilty - professionally quaalified team - guaranteed satisfaction - ontime and within budget project completion - free support and maintenance assistance depending on the project - affordable milestone payment system - anytime changes are welcome during development or coding please check the links to see our works We are a registered partnership based web development company in kochi with professionally qualified team of developers, designers, programmers with 9 years of experience. we offer post implementation support and bug fixes free for six months ensuring quality and excellence to the products we develop. guaranteed satisfaction is another major highlight. we work on a milestone basis to ensure client satisfaction. we also ensure money back guarantee for failure of project delivery. we excel in technologies like php, php5, html, html5, seo, codeigniter, mysql,ajax, jquery, javascript, wordpress and so on... to know more about us visit our portfolio Give us the project and we can convert your needs to reality within no time.
$66 USD w 1 dzień
5,0 (30 opinii)
4,6
4,6
Awatar Użytkownika
Hi, I'm expert in JAVASCRIPT and I can help you to do this task. Please contact me via private message box. Thank you so much
$22 USD w 1 dzień
5,0 (10 opinii)
4,0
4,0
Awatar Użytkownika
Dear,Sir. I've read your job description and understood your requirements. As I am a HTML5/CSS3,PHP,javascript and jQuery expert, I am very interested in your project. I've many experiences and strong skills for 7 years. If you award me, I am able to start the project right now and will devote my full time for you. And also, I will provide good result full matched with your requirements. Looking forward to hearing from you soon. Best regards Zhang
$15 USD w 1 dzień
5,0 (6 opinii)
3,0
3,0

O kliencie

Flaga UNITED STATES
port orange, United States
5,0
21
Zweryfikowana metoda płatności
Członek od lip 2, 2015

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.