Question: public static void main ( String args [ ] ) { int credits 1 ; int credits 2 ; final double RATE = 7 5

public static void main(String args[])
{
int credits1;
int credits2;
final double RATE =75.84;
Scanner input = new Scanner(System.in);
System.out.print("Enter credits for first student >>");
credits1= inpput.nextInt();
System.out.print(Enter credits for second student >>");
credits2= inpput.nextInt();
computeTuitionBill(credits1, RATE, 1);
computeTuitionBill(credits2, RATE);
}
public static void computeTuitionBill(int c, double r, int student)
{
System.out.println("Total due for student #"+ student +
" is $"+ r * c));
}
}How to Use the Code Editor
Select the "Run Code" button to execute the program.
Select the "Calculate Grade" button to generate a score based on the completed tasks.
Continue to modify, run, and calculate your code until you are happy with the grade.
Select the "Submit" button to turn in the assignment to your instructor.
Instructions
An example of the program is shown below:
Enter credits for first student 18
Enter credits for second student 30
Total due for student #1 is $1365.1200000000001
Total due for student #2 is $2275.2000000000003
Task 1: The DebugThree4 class compiles without error.
Task 2: The computeTuitionBi11() method computes and displays the correct tuition bill.
Task 3: The DebugThree4 program accepts user input and displays the correct output.
Your current grade is: 0%
 public static void main(String args[]) { int credits1; int credits2; final

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!