Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started