Question: How do i get the - 2 5 % as shown in the example / sample run. Please look at my code and tell me
How do i get the as shown in the examplesample run.
Please look at my code and tell me what I need to change or do Thanks!
INSTRUCTIONS:
Note that it costs dollars per credit hour in addition to $
charged for health and id services. Students with gpa of or higher
receive a discount of when the total payments exceed $
My Code:
private double calculateTotalPayment
double totalPayment ;
for Integer crn : listOfCrns
totalPayment ;
totalPayment ; Health & id fees
if totalPayment && gpa
totalPayment ; discount
return totalPayment;
public void printFeeInvoice
System.out.printlnVALENCE COLLEGE";
System.out.printlnORLANDO FL ;
System.out.println;
System.out.println;
System.out.printlnFee Invoice Prepared For Student: ;
System.out.println studentId studentName;
System.out.println;
System.out.println Credit Hour $;
System.out.printfssss
CRNCRPREFIX", CRHOURS", "AMOUNT";
double totalPayment ;
for Integer crn : listOfCrns
String prefix getPrefixcrn;
int creditHours getCreditHourscrn;
double amount creditHours ;
totalPayment amount;
System.out.printfdsd$f
crn prefix, creditHours, amount;
System.out.printlntttHealth & id fees $ ;
System.out.println;
System.out.printfs$f
tttTotal Payments", totalPayment ;
VALENCE COLLEGE
ORLANDO FL
Fee Invoice Prepared for Student:
DANIEL TAZI
Credit Hour $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
