Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

public class displayAccounts { public static void main(String[] args) { System.out.print(displayAccounts(david, 101, 120, 151, 115, .035)); } public static void displayAccounts(String name, int ckAccount, double

public class displayAccounts { public static void main(String[] args) { System.out.print(displayAccounts("david", 101, 120, 151, 115, .035)); }

public static void displayAccounts(String name, int ckAccount, double ckdeposit, int svAccount, double svdeposit, double interestRate) { return ("%-10s%-10s%-10s ", "Checking Acct:" + ckAccount, " Savings Acct:" + svAccount, " Estimated Savings balance in 1 Year"); return ("%-10s%-10s%-10s ", "deposit: "+ ckdeposit , " deposit:" + svdeposit," " + interestRate); // Return result }

im trying to get a table to print from the main method, this is what i have so far. Anyone know to make this work for java?

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_2

Step: 3

blur-text-image_3

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

Build It For The Real World A Database Workbook

Authors: Wilson, Susan, Hoferek, Mary J.

1st Edition

0073197599, 9780073197593

More Books

Students also viewed these Databases questions

Question

Discuss the challenges in scanning the environment.

Answered: 1 week ago

Question

=+applying to all or most employers and employees?

Answered: 1 week ago

Question

=+associated with political parties and if so, which ones? Are

Answered: 1 week ago