Skip to main content

Python Program To Find Final Fee Based On Scholarship Of Mumbai University To Each Student | Python Programming Practice

If you want python program to find final fee based on scholarship of Mumbai university to each student by accepting branch of study and score then you are at right place. As python is the future of the technology, we all want to become a master in this programming language. Let’s start the python programming practice.

Python Programming Practice

Here we are going to tell how you can write a simple program which finds final fee of each student by accepting branch of study and score. We will accept the branch of study, score and course fee as inputs for each student and by considering scholarship of Mumbai university we calculate the final fees to be paid by each student based on formulae given in the question. You will gain the concept of input / output statement and practice the control statements.

 

Example:

Enter the number of students: 4

 

For student 1:

Enter the branch of study: Arts

Enter the score: 49

Enter the course fee: 10000

Scholarship% = 5

Final Fee = 9500.0

 

For student 2:

Enter the branch of study: Engineering  

Enter the score: 92

Enter the course fee: 30000

Scholarship% = 50

Final Fee = 15000.0

 

For student 3:

Enter the branch of study: Arts

Enter the score: 95

Enter the course fee: 20000

Scholarship% = 50

Final Fee = 10000.0

 

For student 4:

Enter the branch of study: Engineering

Enter the score: 91

Enter the course fee: 10000

Scholarship% = 50

Final Fee = 5000.0

 

  • Mumbai University offering degree courses to students has decided to provide scholarship based on the following details:

Branch of study

Score (%)

Scholarship %

Arts

Score is at least 90

50

 

Arts

Score is an odd number

05

Engineering

Score is more than 85

50

Engineering

Score is divisible by 7

05

 

Remarks:

The student is eligible only for one scholarship % even if both the score conditions are valid for the given branch of study. In such cases, students are eligible for the highest scholarship% applicable among the two.

If there are N students who have joined the university, write a python-code to calculate and display the final fees to be paid by each student.

You may accept the branch of study, score and course fee as inputs for each student and calculate the final fees to be paid by each student based on formulae given below:

Scholarship amount=course fee * (scholarship%)

Final fee= course fee - scholarship amount

 

Program to find final fee:

#To find final fee of each student by accepting branch of study and score

scholarship= None
num = int(input("Enter the number of students: "))
for i in range(num):
    print(f"\nFor student{i+1}: ")
    branch = input("Enter the branch of study: ")
    score = int(input("Enter the score: "))
    course_fee = int(input("Enter the course fee: "))
    if branch=="Arts" or branch=="Engineering":
        if(branch=="Arts"):
            if (score>=90):
                scholarship = 50
                print("Scholarship% = ",scholarship)
            elif (score%2!=0):
                scholarship = 5
                print("Scholarship% = ",scholarship)
            else:
                scholarship = 0
                print("Not eligible")

        elif(branch=="Engineering"):
            if (score>85):
                scholarship = 50
                print("Scholarship% = ",scholarship)
            elif (score%7==0):
                scholarship = 5
                print("Scholarship% = ",scholarship)
            else:
                scholarship = 0
                print("Not eligible")


        Scholarship_amount = course_fee * (scholarship/100)
        Fianl_fee = course_fee - Scholarship_amount
        print("Final fee = ",Fianl_fee)
        
    else:
        print("Invalid branch of study")
        

 

Output:

Python Program To Find Final Fee Based On Scholarship Of Mumbai University To Each Student



Note: If you have any doubt regarding the program, you can mention them in the comment section.

  

Comments

Popular posts from this blog

Best Motorcycle Accident Lawyer

If you want to hire the best motorcycle accident lawyer and want to know the functions of the law practice , what are the key tools for experienced lawyers, and what to expect when hiring a motorcycle accident lawyer then you are at the right place, as we are going to cover all these points. Functions of the law practice The work of a motorcycle accident lawyer often depends on the facts and the events that led to the accident. It is important to remember that the bottom line is a lawsuit brought by those injured. A motorcycle accident attorney has many tools in his or her repertoire of legal tools to ensure that he or she meets his or her job objective. Some key tools for experienced lawyers are: Chambers’ law statement:   It is essentially a two-page brief using basic and specific legal terms with a suggestion of what each of the parties should be doing to minimize the likelihood of future injuries. This can be a useful tool for understanding what further actions the l...

Binary Trading

We let you know why we use data representation in binary trading and discuss three main ways that we can generate a binary dataset for binary trading. Simultaneously we will also discuss  the characteristics of natural  binary trading  algorithms and  talk about the characteristics of our AI algorithms. If we stop using symbols to represent binary data then we are pretty much to the fundamental character. What exactly constitutes binary data such as the capital salary of a guy which goes through our database because it contains this name or his place of birth? Does a response method in the UDF for answering these questions look like “not so much”? Well, that was because for us to answer questions like that then we would think differently of our data and related them to the characters of symbols but even then, we never needed data representation at first. So, what exactly is a binary dividend? It refers to two statements. Input: V. It's fundamental. We needed thi...