Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help programing this code. (Convert USD into GBP) Write a program that reads a number of USD (US dollars), converts it to GBP (British

image text in transcribedNeed help programing this code.

(Convert USD into GBP) Write a program that reads a number of USD (US dollars), converts it to GBP (British Pounds), and displays the result. Use the exchange rate of 1.38 GBP for 1 USD. INPUT and PROMPTS.The program prompts for the number of USD with the message "Enter the number of USD: ". OUTPUT The output is of the form " x USD is y GBP" where x is the number of USD read in and y is the number of GBP computed by the program. CLASS NAMES. Your Program Class should be called USDToGBP SAMPLE RUN \#1: java USDToGBP Enter the number of USD: 1 d 1.60 USD is 0.85GPB

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

More Books

Students also viewed these Databases questions

Question

Comment should this MNE have a global LGBT policy? Why/ why not?

Answered: 1 week ago