Find Jobs
Hire Freelancers

Small Programs Using Stacks

$10-30 USD

Completed
Posted almost 5 years ago

$10-30 USD

Paid on delivery
----------------------------------------------------- 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
Project ID: 19853506

About the project

9 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
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 in 1 day
4.8 (202 reviews)
6.5
6.5
9 freelancers are bidding on average $21 USD for this job
User Avatar
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 in 7 days
5.0 (176 reviews)
5.5
5.5
User Avatar
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 in 1 day
5.0 (66 reviews)
5.1
5.1
User Avatar
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 in 1 day
4.7 (21 reviews)
4.9
4.9
User Avatar
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 in 1 day
5.0 (11 reviews)
3.9
3.9
User Avatar
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 in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
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 in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
South Plainfield, United States
5.0
4
Payment method verified
Member since May 23, 2019

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.