Find Jobs
Hire Freelancers

Small Programs Using Stacks

$10-30 USD

Finalizat
Data postării: aproape 5 ani în urmă

$10-30 USD

Plata la predare
----------------------------------------------------- PROGRAM 1: ----------------------------------------------------- For a given integer n > 1, the smallest integer d > 1 that divides n is a prime factor. We can find the prime factorization of n if we find d and then replace n by the quotient of n divided by d, repeating this until n becomes 1. Write a java program that uses a stack to print the prime factors of a positive integer in descending order. For example, for n = 3960, your program should produce 11 * 5 * 3 * 3 * 2 * 2 * 2 ----------------------------------------------------- PROGRAM 2: ----------------------------------------------------- A stack can be used to print numbers in other bases (multibase output). Examples: (Base8) 2810 = 3 * 81 + 4 * 80 = 348 (Base4) 7210 = 1 * 43 + 0 * 42 + 2 * 41 + 0 * 4 = 10204 (Base 2) 5310 = 1 * 25 + 1*24 + 0 * 23 + 1 * 22 + 0 * 21 + 1 * 20 = 1101012 Write a java program using stacks that takes 3 non-negative (base 10) long integer numbers and a base B (B is in the range 2–9) and writes the number to the screen as a base B number. The program prompts the user for 3 numbers and bases, and then outputs them. Use as input: 7210 Base 4 5310 Base 2 355310 Base 8 ------------------------------------------------ PROGRAM 3: _____________________________ A palindrome is a string that reads the same forward and backward, i.e., the letters are the same whether you read them from right to left or from left to right. Examples: radar  is a palindrome Able was I ere I saw Elba  is a palindrome good  not a palindrome Write a java program to read a line of text and tell if the line is a palindrome. Use a stack to read each non-blank character on a stack. Treat both upper-case and lower-case version of the letter as being the same character. - Provide these 5 sample outputs and tell if each is a palindrome or not. Too bad--I hid a boot Some men interpret eight memos "Go Hang a Salami! I'm a Lasagna Hog"
(title of a book on palindromes by Jon Agee, 1991) A man, a plan, a canal—Panama Gateman sees my name, garageman sees name tag
ID-ul proiectului: 19853506

Despre proiect

9 propuneri
Proiect la distanță
Activ: 5 ani în urmă

Vrei să câștigi bani?

Avantajele de a licita pe platforma Freelancer

Stabilește bugetul și intervalul temporal
Îți primești plata pentru serviciile prestate
Evidențiază-ți propunerea
Te înregistrezi și licitezi gratuit pentru proiecte
Acordat utilizatorului:
Avatarul utilizatorului
Hello. How are you today. I have read and understood this task. I have a lots of experience and very good knowledge of Data structures, Algorithms Design, Computer Architecture. And I'm expert in Java, C/C++ etc. I'm interested in this project. I'll wait for your good reply. Thanks.
$25 USD în 1 zi
4,8 (202 recenzii)
6,5
6,5
9 freelanceri plasează o ofertă medie de $21 USD pentru proiect
Avatarul utilizatorului
Dear Sir, I have gone through project description and interested taking it up. Posted bid amount is indicative and a more accurate I can give once more details are shared. Looking forward to hear from you. Thanks
$30 USD în 7 zile
5,0 (176 recenzii)
5,5
5,5
Avatarul utilizatorului
easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task , easy task ,
$25 USD în 1 zi
5,0 (66 recenzii)
5,1
5,1
Avatarul utilizatorului
Hello Sir/ Ma’am We are a group of Software Engineers (Programmers) having 10+ years of experience. Expert in JAVA, C, C++ , C# , Python, ANDROID,IOS, MATLAB, IONIC. Done 40+ projects here on FREELANCER.COM. Please check our profile for reference. The bid is negotiable and we can talk about the price. Thank you
$10 USD în 1 zi
4,7 (21 recenzii)
4,9
4,9
Avatarul utilizatorului
hi i do a lot of project. i will complete your project according to your requirement.i deliver you project as soon as possible. At the end i will give you also demo. thanks.
$10 USD în 1 zi
5,0 (11 recenzii)
3,9
3,9
Avatarul utilizatorului
Dear Client!! I'm an expert of programming. Thank you for your attention. I am a Programmer with 7 years of experience in full circle of software development. Specially interested in C/C++/C#. I am very interested in your project and wants to work with you. I can perform this project successfully. Please contact me.
$25 USD în 1 zi
0,0 (0 recenzii)
0,0
0,0
Avatarul utilizatorului
Hi there! Thanks for posting the job. I've read your project description and understood what you need. I am highly skilled and experienced in Web and C so I believe that I can help you with this project. I would like to discuss the project further with you. Thank you!
$15 USD în 1 zi
0,0 (0 recenzii)
0,0
0,0

Despre client

Steagul UNITED STATES
South Plainfield, United States
5,0
4
Metoda de plată a fost confirmată
Membru din mai 23, 2019

Verificarea clientului

Mulțumim! Ți-am trimis prin e-mail linkul pe care trebuie să-l accesezi pentru a revendica creditul gratuit.
A apărut o eroare la trimiterea e-mailului. Încearcă din nou.
Utilizatori înregistrați Totalul proiectelor postate
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Se încarcă previzualizarea
S-a oferit permisiunea de depistare a locației.
Ți-a expirat sesiunea pentru conectare sau te-ai deconectat. Conectează-te din nou.