This blog is made specially for students those who have selected Computer Application (165) as a subject in CBSE board exam. It includes chapter wise notes, videos, assignments, etc.
Search This Blog
Project in python
Source code
lslno=[]
lname=[]
leng=[]
lhnd=[]
lmth=[]
lsci=[]
lsst=[]
ltot=[]
lper=[]
lgrad=[]
val=1
def calculategrade():
str="y"
while str=="y":
slno=int(input("Enter the Sl. No.: "))
lslno.append(slno)
name=input("Enter the Name: ")
lname.append(name)
print("Please enter the marks of the subjects")
eng=int(input("English: "))
leng.append(eng)
hnd=int(input("Hindi: "))
lhnd.append(hnd)
mth=int(input("Maths: "))
lmth.append(mth)
sci=int(input("Science: "))
lsci.append(sci)
sst=int(input("Sst: "))
lsst.append(sst)
total=eng+hnd+mth+sci+sst
ltot.append(total)
per=(total/500)*100
lper.append(per)
if per>=60:
lgrad.append("A")
elif per>=45 and per<60:
lgrad.append("B")
elif per>=30 and per<45:
lgrad.append("C")
else:
lgrad.append("Fail")
str=input("Do you want to continue entering records (y/n): ")
def specifyrec():
recno=int(input("Enter serial no to print the record: "))
print("Sl. No.\t","Name\t","Hnd\t","Eng\t","Mth\t","Sci\t","Sst\t","Total\t","Percent","Grade")
print(lslno[recno-1],"\t",lname[recno-1],"\t",leng[recno-1],"\t",lhnd[recno-1],"\t",lmth[recno-1],"\t",lsci[recno-1],"\t",lsst[recno-1],"\t",ltot[recno-1],"\t",lper[recno-1],"\t",lgrad[recno-1])
def allrecord():
num=len(lslno)
print("Sl. No.\t","Name\t","Hnd\t","Eng\t","Mth\t","Sci\t","Sst\t","Total\t","Percent","Grade")
for item in range(0,num):
print(lslno[item],"\t",lname[item],"\t",leng[item],"\t",lhnd[item],"\t",lmth[item],"\t",lsci[item],"\t",lsst[item],"\t",ltot[item],"\t",lper[item],"\t",lgrad[item])
print("Enter your Choice")
print("1. Add student to list")
print("2. Show all the list")
print("3. Show specific data")
print("4. Exit")
val=int(input())
while val!=4:
if val==1:
calculategrade()
elif val==2:
allrecord()
elif val==3:
specifyrec()
print("Enter your Choice")
print("1. Add student to list")
print("2. Show all the list")
print("3. Show specific data")
print("4. Exit")
val=int(input())
Q & A of Chapter 1 Internet Basics A. Tick the correct options – 1. (b) TCP/IP 2. (a) Internet Service Provider 3. (a) URL 4. (b) HTTP 5. (a) Bridge 6. (a) home page 7. (d) All of these 8. (b) Domain Naming System 9. (b) Rules 10. (d) ARPANET B. Very Short Answer Type Questions – 1. In the URL http://www.myfirm.co.in/about.html , what do the following components depict? (a) http (b) in (a) Http represents a type of server and the protocol on the Internet (b) ‘in’ represents the domain extension of the website. 2. In the URL http://www.favmusic.com/contactus.html what does www.favmusic stand for? www.favmusic represents the domain name i.e. favmusic in www. 3. W...
Working with Queries, Forms and Reports Exercise Solution A. Tick the correct option – 1. (d) Datasheet View 2. (c) Three 3. (c) Four 4. (b) Datasheet View 5. (d) Filter 6. (b) Create B. Fill in the blanks – 1. Query 2. Form 3. Objects 4. Design 5. Report 6. Result C. State True or False – 1. T 2. F 3. T 4. T 5. F 6. T D. Answer the following questions – 1. What is Query? A query is a method of getting answers to questions on data. It is used to retrieve selective data satisfying specific criteria. 2. Differentiate between Form and Report. Forms allow you to add and update data in a table, one record at a time, while reports are an effective way to present data in printed format. You can customize the appearance of tabular data on a report. 3. How can you specify multiple conditions while designing a query? Specifying the condition in the Criteria row for more than one field will result in a query that will select only those records...
What are Escape Sequence characters? Give example. Escape Sequence is a character that contains a special meaning. Escape Sequence Description \n New line \\ Backslash \’ Single quotation \” Double quotation \a Bell \b Backspace \r Carriage return \t Horizontal tab \v Vertical tab
Comments
Post a Comment
Students you can ask your doubts in comment section