
Hi this is my first year for Java and my teacher has given some pratice/tutorial problems but I am cluess on what I am doing so I was wondering if anyone was willing to help me solve a couple of them so I could get an Idea of how they work. The 2 probelms are listed below I would appericate any help at all! Im using Eclipse by the way.
Practice 2)Write a program that prompts the user to enter the exchange rate from currency US dollars to Chinese RMB. Prompt the user to enter 0 to convert from US dollars to Chinese RMB and 1 vice versa. Prompt the user to enter the amount in US dollars or Chinese RMB to convert it to Chinese RMB or US dollars, respectively. Here are the sample runs: <Output> Enter the exchange rate from dollars to RMB: 6.81 Enter 0 to convert dollars to RMB and 1 vice versa: 0 Enter the dollar amount: 100 $100.0 is 681.0 Yuan <End Output> <Output> Enter the exchange rate from dollars to RMB: 6.81 Enter 0 to convert dollars to RMB and 1 vice versa: 1 Enter the RMB amount: 10000 10000.0 Yuan is $1468.43 <End Output> <Output> Enter the exchange rate from dollars to RMB: 6.81 Enter 0 to convert dollars to RMB and 1 vice versa: 5 Incorrect input <End Output>
Practice 3) Write a program that prompts the user to enter an integer. If the number is a multiple of 5, print HiFive. If the number is divisible by 2 or 3, print Georgia. Here are the sample runs: <Output> Enter an integer: 6 Georgia <End Output> <Output> Enter an integer: 15 HiFive Georgia <End Output> <Output> Enter an integer: 25 HiFive <End Output>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.