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

How to I creat a for loop in drjava that will create a table that will then gene

ID: 3538502 • Letter: H

Question

How to I creat a for loop in drjava that will create a table that will then generate values using a scanner? I am converting currency and I have three values - start, end, and doing it in increments - I am supposed to test with 1, 50, and 7 for these numbers. anyhelp would be appreciated! Thank you!

Explanation / Answer

public class Lab8 { public static void main(String[] args) { final int Max = 10; String a; char summary; int c = 0; Foreign[] Exchange = new Foreign[Max]; Scanner Keyboard = new Scanner(System.in); Foreign.opening(); do { Exchange[c] = new Foreign(); Exchange[c].getchoice(); Exchange[c].dollars(); Exchange[c].amount(); Exchange[c].vertical(); System.out.println(" " + Exchange[c]); c++; System.out.println(" " + "Please select 1 through 4, or 0 to quit" + >" "); c= Keyboard.nextInt(); } while (c != 0); System.out.print(" Would you like a summary of your conversions? (Y/N): "); a = Keyboard.nextLine(); summary = a.charAt(0); summary = Character.toUpperCase(summary); if (summary == 'Y') { System.out.println(" Country Rate Dollars Amount"); System.out.println("======== ======= ======= ========="); for (int i=0; i
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