You are on page 1of 4

1. Write A Program To display ATM Transaction for 4 Users .

The ATM Transaction Are


Deposit:
1. Withdrawal: The user should only be allowed to withdraw money up to some
overdraft Limit
2. Transfer : The user should only be allowed to Transfer money up to some
overdraft Limit
3. Mini Statement
4. Change ATM Pin Number

Note:

 Please Take ATM PIN As User Input and Validate It and Fetch All Details like
Account Number and Name after a Successful validation Of ATM Pin Number
 (Display Mini Statement with date and Time using datetime.datetime.now()
Method)
 Take Multiple User Data As Sample.

2. Write a Program to Manage Records of 10 Citizens Based on Following User inputs


1. Name
2. Email
3. Date of Birth
4. Vaccinated (Single or Double Dose).
Classify data on Basis of Vaccination Dose and Calculated Age and do Following
Operations.
1. If age is in Between 30 to 40 and vaccinated with First or Second Then Risk Level
Of infection 20%.
2. If age is in Between 40 to 50 and vaccinated With First or Second Dose Then Risk
Level is 40%.
3. If age is in Between 50 To 60 and vaccinated With First or Second Dose Then Risk
Level 60%.Display Summarized output based on fully vaccinated and Partial
Vaccinated and Count Number of citizens who belongs to Different Risk Level Based
on percentage For example Risk level of infection is 20%: Citizen Count 10.Finally
Display Count of Fully Vaccinated Citizens.

3. Using books, the Web, or any other resource, find out what a logic gate is, and, in
particular, what a half adder is. An output of the work should be a table showing the
inputs and outputs for a half adder. Implement a half adder as a few lines of Python
code. Write a test program that shows that your implementation works as expected
For 3 input. You should be able to test that your code works for all possible input
values.
4. Create a program for storing 2 weeks’ worth of rainfall data. Use a list to store each
day’s value, entered by the user. When an entire 2 week has been input, display the
days with the minimum and maximum rainfall. Perform Following task On data

1. Displays the mean and standard deviation of the values in Table Format.
2. Calculate categorized Performance of rain Based on Following Condition
 If Rain is Greater than 10% and less than 15% Then it can categorized
as Normal monsoon
 If Rain is Excess +20% and Less Than 30% Then it can categorized as
Average Monsoon
 If Rain is Excess +30% and Less Than 50% Then it can categorized Very
Good Monsoon.
 If Rain is Excess +50% then it can categorized Flood Monsoon.

5. Write a program which uses the Stack class. Your program should begin by printing a
menu to the user:
1. Add new data to stack
3. Print stack
4. Remove datum from stack
5. Exit
You should allow the user to enter 1, 2, 3 or 4 to select their desired action and
you should write code to implement the four possible options.
Extend Your Program to use a Queue as the data Structure used to store data in.
menu = """
1. Add new data to the queue.
2. Print queue.
3. Remove datum from the queue.
4. Exit.
6. Create a class called Number and two subclasses Binary and Roman for dealing with
different sorts of number representation. The constructors to Binary and Roman should take
a string argument so that you can use them like this:

b = Binary ( ’11010101’)
r = Roman ( ’MCMLXXVIII’ )

In your Number class you need to have methods that are common to all types of number
representation:

1. You’ll want a private method called __to_int that returns an ordinary integer
representation of the calling object.
2. You’ll need to override the built-in method __str__ that returns a string
representation of the number which the calling object represents.
3. You’ll need to override the __int__ method that is used by calls to the int function
which converts its argument to an integer.
For the Binary class, you’ll need to convert between binary and decimal. For Roman
class you’ll need to convert between Romans to Decimal.

7. Write a program to store a list of contact names and telephone numbers, similar to the
contact lists you might find on a mobile phone. The data needs to be stored in a file so that
it is persistent – that is, the data available at the beginning of a new execution of the
program is the same as at the end of the previous execution. Extend the above program And
Do following operations
1. Add New Contact
2. If the new contact’s name is already in the File Display Message “This person is
already entered”.
3. If the telephone number is already in the File, the program should display “This
person’s telephone number is already in the database, This could be an error, if
same Name and phone number is present then program should display another
message “Add anyway?” If the user enters “Y”, the contact is added.
2. Check and Remove Duplicate Name and Numbers

You might also like