Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

develop a program that will assist a person traveling outside of the U.S. Using jGRASP, write a Java program named LastnameFirstname.java , using your last

  1. develop a program that will assist a person traveling outside of the U.S.
  2. Using jGRASP, write a Java program named LastnameFirstname.java, using your last name and your first name, that does the following:
    • Askthe user for their name. Address them by name and welcome them to the city/country (pick whichever country you want).
    • Ask the user what 3 items they want to buy.
    • Ask the user what the price is for each item.
    • Add up the total for the items. Present the total of all items in both US Dollars and the country's currency.
      • Output the answer so it's accurate to two digits after the decimal and displays at least 6 digits total
      • Note: You'll need to google the conversion rate to convert between US Dollars and the other currency.
    • Say goodbye to the user.
    • Important: Please remember that you (the programmer) are getting input from the user (someone who uses your program). You do not have any control over what they will input, so they can input anything they want for the items and the prices. Your program should reflect the user's input. Note that in the Example Output below, the user's input is denoted by orange font (same as jGrasp, as shown in the lecture videos).
  3. Your program MUST:
    • Use at least 1constant
    • Use at least 3 variables
    • Print the contents of every variable in your program used for getting input from the user
    • Include comments that explain what you are doing in your code
    • Adhere to the Java coding standard
  4. KEEP IT BASIC! The program should not use code/concepts we have not yet covered. You must demonstrate that you have mastered the concepts covered in class.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Algorithm Design And Applications

Authors: Michael T. Goodrich, Roberto Tamassia

1st Edition

1118335910, 978-1118335918

More Books

Students also viewed these Algorithms questions

Question

What is an insurable interest? Why is it important?

Answered: 1 week ago

Question

6. Name and describe three order-picking systems.

Answered: 1 week ago

Question

1. What are four objectives of warehouse operation?

Answered: 1 week ago

Question

3. What are cube utilization and accessibility?

Answered: 1 week ago