Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Java Write a program with a graphical interface that allows the user to convert

ID: 3688302 • Letter: J

Question

Java

Write a program with a graphical interface that allows the user to convert an amount of money between U.S. dollars (USD), euros (EUR), and British pounds (GBP).

The user interface must have the following elements: a text box to enter the amount to be converted, two combo boxes to allow the user to select the currencies, a button to make the conversion, and a label to show the result. (10 points, which includes the functionality and aesthetics) Display a warning if the user does not choose different currencies. Clear this warning after a successful conversation. (5 points) Use the following conversion rates:

1 EUR is equal to 1.42 USD.

1 GBP is equal to 1.64 USD.

1 GBP is equal to 1.13 EUR.

Explanation / Answer

code to convert EUR to USD

import java.util.Scanner;

public class rupeesconversion {

public static void main(float[] args) {

//Have the user to enter rupees

System.out.println("Enter rupees");

double rupees_r;

//Convert rupees to dollars.

if (rupees_r>1) {

double dollar = ruppes_r/45.2;

System.out.println("the converted value from rupees to dollars is:"dollar);

}

else

System.out.println("Try again");

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote