Algorithm in Java.

Consider the following problems, design the algorithms that would solve them, and then implement the algorithm in Java.

You are free to choose between writing pseudo-code or drawing flowcharts. Make sure to include screenshots of your running programs. You can take screenshots using PrintScreen of the console window in which you run the program. Put your algorithm and the screenshots together in a Word document.

Don't use plagiarized sources. Get Your Custom Essay on
Algorithm in Java.
GET AN ESSAY WRITTEN FOR YOU FROM AS LOW AS $13/PAGE
Order Essay

Problem 1:

Write a program that prompts the user for a measurement in meters, and then converts it in to miles, feet, and inches.

Problem 2:

Write a program that reads in an integer, and breaks it into a sequence of individual digits. Display each digit on a separate line.

For example, the input 16384 is displayed as

1

6

3

8

4

You may assume that the input has no more than five digits and is not negative.

Problem 3:

Write a program that asks the user to input:

  • The number of gallons of gas in the tank
  • The fuel efficiency in miles per gallon
  • The price of gas per gallon

Then print the cost per 100 miles and how far the car can go with the gas in the car.

Problem 4:

Write a program that asks the user to enter the name of his or her favorite city. use a String variable to store the input. The program should display the following:

  • The number of characters in the city name
  • the name of the city in all uppercase letters
  • the name of the city in all lower case letters
  • the first character in the name of the city

Problem 5:

Read a word from the user and display the string with the letters shifted to the right by two positions and with the letters shifted to the left by two positions in the string. Save all of the three strings in separate variables and display all three of them at the end of the program.

Submission:

You are required to submit the following files for this assignment by clicking the Submit Assignment button above. Make sure all of the following required files have been attached before you submit the assignment.

  • You should create one Java file for each problem and save them all in one folder. Compress the folder as a .zip file and submit it here. Please name your .zip file as P3-Last Name-First Nam.zip. For example, P3-Smith-John.zip.
  • A Word document containing the algorithms and the screenshots of the running programs for all of the five problems. Please name your Word document as P3-Last Name-First Name.docx or .doc. For example, P3-Smith-John.docx.

This needs to include everything

.5 Algorithms

. 5 Java Programs

. 5 Screenshots

Grand Paper Writers
Order NOW For A 10% Discount!
Pages (550 words)
Approximate price: -

Our Advantages

Plagiarism Free Papers

All papers are written by the best professional writers to ensure 100% originality. We always provide plagiarism reports whenever we deliver completed papers.

Free Revisions

All papers by Grand Paper Writers are completed and submitted on time. This timely delivery of papers gives you time to go through the paper before the official deadline.

Title-page

As an additional service, we will provide a title page that precedes the contents of your paper. Here, you will provide your personal details.

Bibliography

We also ensure that we provide an extra page for the references or bibliographies following referencing rules.

Originality & Security

At Grandpaperwriters.com, we guarantee students for the provision of security and original work. All your personal information is handled with confidentiality and is not shared with third parties. Additionally, we ensure that we provide original content with accompanying plagiarism reports to show originality.

24/7 Customer Support

Our customer support team is always available 24/7 to provide instant responses to any queries raised by students.

Try it now!

Calculate the price of your order

We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

Grandpaperwriters.com has the best professional essay writers for quality services.

Pricing

Flexible Pricing

Here, a Grandpaperwriters.com, we do not compromise on the time of our clients. We always deliver all completed papers on or before the deadlines.

Communication

Admission Help & Client-Writer Contact

Grandpaperwriters.com provides an interactive portal where students can communicate directly to their writers.

Deadlines

Paper Submission

Here, a Grandpaperwriters.com, we do not compromise on the time of our clients. We always deliver all completed papers on or before the deadlines.

Reviews

Customer Feedback

Grandpaperwriters.com appreciates feedback from our clients to help us improve the delivery of essay writing services. As such, we are constantly changing our policies to ensure maximum customer and writer satisfaction.