Question

10. a. Design a program for Hunterville College. The current tuition is $20,000 per year, and tuition is expected to increase

0 0
Add a comment Improve this question Transcribed image text
Answer #1

- X 2 Hunterville - sortings Class Edit Tools Options Hunterville X Paste Find... Close Source Code - Compile Undo Cut Copy p- X 7 Bluel: Terminal Window - sortings Options 1 year tuition fee is :20000.0 2 year tuition fee is :20600.0 3 year tuition

source code:

public class Hunterville
{
    public static void main(String...args)
    {
        double totalfee_peryear=20000;   //current tuitionfee
      
        for(int i=1;i<=10;i++)
        {
         
            System.out.println(i+" year tuition fee is :"+totalfee_peryear);   
            totalfee_peryear=totalfee_peryear+(totalfee_peryear* 0.03);          //calculating 3% percent
        }
    }
}

if you have any doubts ask me..i am happy to help you...

Add a comment
Know the answer?
Add Answer to:
10. a. Design a program for Hunterville College. The current tuition is $20,000 per year, and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT