Csp0506 - Python Programming Updated
Csp0506 - Python Programming Updated
A. COURSE OUTCOMES
B. ASSESSMENT TOOLS
S. Course Specific Assessment Tools CO’s Mapped BL
N
o.
1 Two Midterm Exams – 30 marks each. CO1-CO5 1-5
End Term Exam 40 marks of subjective
question.
2 Application Based Activity CO3,CO4,CO5 3-
5
3 ABCA-Assignment/seminar/Poster/Quiz CO1,CO2, CO3,CO4 2-4
E. Reference Books:
S. Author Title Publisher
No
.
1 Megnus Lie Hetland Beginning Python Apress.
from Novice to
Professional
2 Mark Lutz Programming Python rd
2 Edition,
O'Reilly
Media, Inc
3 Dusty Philips Python 3 Object Packt Publishing;
Oriented Programming July 2019
PBL.
Given the type of food, quantity (no. of plates) and the distance in
kms from the restaurant to the delivery point, write a python
program to calculate the final bill amount to be paid by a customer.
The below information must be used to check the validity of the
data provided by the customer:
● Type of food must be ‘V’ for vegetarian and ‘N’ for
non- vegetarian.
● Distance in kms must be greater than 0.
● Quantity ordered should be minimum 1.
If any of the input is invalid, the bill amount should be considered as-
1.
3. The Metro Bank provides various types of loans such as car loans,
business loans and house loans to its account holders. Write a
python program to implement the following requirements:
● Initialize the following variables with appropriate input
values:account_number, account_balance, salary,
loan_type, loan_amount_expected and
customer_emi_expected.
● The account number should be of 4 digits and its first
digit should be 1.
● The customer should have a minimum balance of
Rupees 1 Lakh in the account.
● If the above rules are valid, determine the eligible loan amount
and the EMI that the bank can provide to its customers based
on
their salary and the loan type they expect to avail.
● The bank would provide the loan, only if the loan amount and the number of EMI’s re
the customer is less than or equal to the loan amount and the number of EMI’s dec
bank respectively.
Display appropriate error messages for all invalid data. If all the business rules are satisfied ,t
account number, eligible and requested loan amount and EMI’s.
Test your code by providing different values for the input variables.