Question

In: Computer Science

A full-time student pays $8,000 per semester. It has been announced that the tuition will increase...

A full-time student pays $8,000 per semester. It has been announced that the tuition will increase by 3 percent each year for the next three years. Write a program with a loop that displays the projected semester tuition amount for the next three years. Also, provide the option to the student to calculate the tuition for another three years using the same percent increase. Please remember, if the student decides to calculate the tuition for another three years the starting tuition will be calculated tuition value for the end of the 3-year period.

CALCULATE USING PYTHON PROGRAMMING LANGUAGE. PLEASE INCLUDE NOTES AS WELL.

Solutions

Expert Solution

# Python program to calculate semester fee                                                         

def tutionFee(fee, rate):
    """
        function for calculate tution fee 
        @Param: fee and interest rate    
        Return: fee after one year
    """
    # return calculate tution fee
    return (fee * (1 + rate /100))    

def main(currentFee, rate):
    """
        function to call tution fee and display result
        @Param: current fee and interest rate    
        Return:  
    """
    # initialize variable
    count = 0
    initial = currentFee

    # display initial fee
    print("Initial fee: ",currentFee)
    print("")

    # calculate yearwise semester fee upto 9 years
    while count < 3:
        # for last three years fee will be
        # calculated as per initial fee
        if count == 2:
            currentFee = initial
        # display three years semester fees
        for i in range(1, 4):
            # get current fee
            currentFee = tutionFee(currentFee, rate)
            # display fee
            print("Projected Semester fee after",\
                  count * 3 + i,"year: ",round(currentFee, 2))
        # incerement
        count = count + 1
        # new line
        print("")
        # take choice only two times
        if count <= 2:
            # take choice if to continue
            choice = input("Do you want calculate tution fee for another 3 years (Y/N): ")
            if not(str(choice) == 'Y' or str(choice) == 'y'):
                # new line
                print("")
                break
            
            
    
# driver code
if __name__ == "__main__":
    """
    Call main() function
    """
    currentFee = 8000
    rate = 3
    # pass current fee
    main(currentFee, rate)

___________________________________________________________________

___________________________________________________________________

Initial fee:  8000

Projected Semester fee after 1 year:  8240.0
Projected Semester fee after 2 year:  8487.2
Projected Semester fee after 3 year:  8741.82

Do you want calculate tution fee for another 3 years (Y/N): Y
Projected Semester fee after 4 year:  9004.07
Projected Semester fee after 5 year:  9274.19
Projected Semester fee after 6 year:  9552.42

Do you want calculate tution fee for another 3 years (Y/N): Y
Projected Semester fee after 7 year:  8240.0
Projected Semester fee after 8 year:  8487.2
Projected Semester fee after 9 year:  8741.82

___________________________________________________________________

Note: If you have queries or confusion regarding this question, please leave a comment. I would be happy to help you. If you find it to be useful, please upvote.


Related Solutions

At one college, the tuition for a full-time student is $8,000 per semester. It has been...
At one college, the tuition for a full-time student is $8,000 per semester. It has been announced that the tuition will increase by 3 percent each year for the next 5 years. Write a program with a loop that displays the projected semester tuition amount for the next 5 years. The program should print out the result in the form In 1 year, the tuition will be $8002.3. In 2 years, the tuition will be $8103.2. In 3 years, …...
10. Tuition Increase At one college, the tuition for a full-time student is $8000 per semester....
10. Tuition Increase At one college, the tuition for a full-time student is $8000 per semester. It has1 been announced that the tuition will increase by 3 percent each year for the next 5 years. Write a program with a loop that displays the projected semester tuition amount for the next 5 years.
Using Python 3 In 2017, the tuition for a full time student in a university is...
Using Python 3 In 2017, the tuition for a full time student in a university is $6,450 per year. The tuition will be going up for the next 7 years at a rate of 3.5% per year. Write your program using a loop that displays the projected year tuition for the next 7 years. You should display the actual year (2018, 2019, through 2024) and the tuition amount per year.
Student tuition at Boehring University is $160 per semester credit hour. The state supplements school revenue...
Student tuition at Boehring University is $160 per semester credit hour. The state supplements school revenue by $100 per semester credit hour. Average class size for a typical 3 -credit course is 50 students. Labor costs are $4 comma 500 per class, materials costs are $18 per student per class, and overhead costs are $24 comma 000 per class. The multifactor productivity ratio currently is 1.33 and the labor productivity ratio is $174.11 per hour if the instructors work on...
At the beginning of the semester, the amount of time a student waits in line at...
At the beginning of the semester, the amount of time a student waits in line at the campus cafeteria is normally distributed with a mean of five minutes and a standard deviation of 1.5 minutes. If you randomly select 81 students, what is the probability that they have a mean waiting time between 4.7 and 5.8 minutes? Group of answer choices .9641 .718 .0359 .282
Use the student dataset for this question. students are considered “full-time” students if they are enrolled in 12 or more credits in a given semester.
Use the student dataset for this question. students are considered “full-time” students if they are enrolled in 12 or more credits in a given semester.  What percent of respondents in the student dataset are “full-time” students? Consider your result to part (a) as the best estimate for the probability of any randomly selected student being full-time. Based on that response, what is the probability that in a class of 20 students they will all be full-time?   Credits 13 12...
A student is eligible to apply for graduation in a semester if the student has completed...
A student is eligible to apply for graduation in a semester if the student has completed 120 or more credits and currently registered in the senior project class. Your job is to write a C++ program to determine whether a student can apply for graduation or not. The program should ask questions to the user on the screen and determine and output "Yes, you can apply for graduation" or "No, you cannot apply for graduation yet". Make sure to test...
Question 1 A university claims that the average cost of books per student, per semester is...
Question 1 A university claims that the average cost of books per student, per semester is $300. A group of students believes that the actual mean is higher than this. They take a random sample of 100 students and calculate the sample mean to be $345 with a standard deviation of $200. a)         Perform a z-test to see if the students are correct, that the true mean is greater than $300 using α = 0.05. Specify the hypotheses, test statistic, decision...
You are 30 years old and are considering full-time study for an MBA degree. Tuition and...
You are 30 years old and are considering full-time study for an MBA degree. Tuition and other direct costs will be $20,000 per year for two years. In addition, you will have to give up a job with a salary of $40,000 per year. However, if you go on for two more years of graduate study, you can increase your earnings to $45,000 per year. Assume a real interest rate of 4% per year and ignore taxes. Also assume that...
Cannady’s, Inc. has announced that its next annualdividend has been set at $2.75 per share....
Cannady’s, Inc. has announced that its next annual dividend has been set at $2.75 per share. The company also announced that future dividends will be increasing at a constant rate of 4.5 percent. If you require a 10.5 percent rate of return, how much are you willing to pay to purchase one share of Canady’s stock?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT