No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
1 Posted Topic
Re: [COLOR=#941edf]public[/COLOR][COLOR=#000000] [/COLOR][COLOR=#941edf]class[/COLOR][COLOR=#000000] DebugTwo4 [/COLOR][COLOR=#fa6400]// This program calculates tuition bills [/COLOR][COLOR=#000000]{ [/COLOR][COLOR=#941edf]public[/COLOR][COLOR=#000000] [/COLOR][COLOR=#941edf]static[/COLOR][COLOR=#000000] [/COLOR][COLOR=#941edf]void[/COLOR][COLOR=#000000] main(String args[]) { [/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000] myCredits = 15; [/COLOR][COLOR=#941edf]double[/COLOR][COLOR=#000000] yourCredits = 16.5; [/COLOR][COLOR=#941edf]double[/COLOR][COLOR=#000000] rate = 75.84; tuitionBill(myCredits,rate); tuitionBill(yourCredits,rate); } [/COLOR][COLOR=#941edf]public[/COLOR][COLOR=#000000] [/COLOR][COLOR=#941edf]static[/COLOR][COLOR=#000000] [/COLOR][COLOR=#941edf]void[/COLOR][COLOR=#000000] tuitionBill(c,r) { System.out.println([/COLOR][COLOR=#00cb00]"Total due "[/COLOR][COLOR=#000000] + (r*c)); } [/COLOR][COLOR=#941edf]public[/COLOR][COLOR=#000000] [/COLOR][COLOR=#941edf]static[/COLOR][COLOR=#000000] [/COLOR][COLOR=#941edf]void[/COLOR][COLOR=#000000] tuitionBill(c, r) { System.out.println([/COLOR][COLOR=#00cb00]"Total due … |