#Chapter -7 Qno - 2
num=4;
while(num<10):
print("Number is %d"%num);
num=num+1;
Computer Science :: 11th/12th, Computer Engineering :: Degree/Diploma, Coding Concept ( C, C++ & JAVA Programming, JDBC Concept, DBMS - SQL Concept, Data Structure, Communication & Network Concept.
#Chapter -7 Qno - 2
num=4;
while(num<10):
print("Number is %d"%num);
num=num+1;
#To perform Arithmetic Operation +, -, *, / and %
n1=int(input("Enter first number "));
n2=int(input("Enter second number "));
a=n1+n2;
s=n1-n2;
m=n1*n2;
d=n1/n2;
r=n1%n2;
print("Addition = %d"%a);
print("Substraxction = %d"%s);
print("Multiplication = %d"%m);
print("Division = %d"%d);
print("Remainder = %d"%r);
Output
#To find area of circle //a=pi*r*r
r=int(input("Enter radius "));
a=3.14*r*r;
print("Radius = %f"%r);
print("Area of Circle = %f"%a);
Output
Enter radius 4
Radius = 4.000000
Area of Circle = 50.240000
#To find circumference of circle //c=2*pi*r
r=int(input("Enter radius "));
c=2*3.14*r;
print("Radius = %f"%r);
print("Circumference of Circle = %f"%c);
Output
#To find the simple interest si=p*r*t/100
p=int(input("Enter Principle "));
r=int(input("Enter Rate "));
t=int(input("Enter Time "));
si=p*r*t/100;
print("Principle = %f"%p);
print("Rate = %f"%r);
print("Time = %f"%t);
print("Simple Interest = %f"%si);
Output
Enter Principle 45000
Enter Rate 5
Enter Time 3
Principle = 45000.000000
Rate = 5.000000
Time = 3.000000
Simple Interest = 6750.000000
Answer:- a) .TXT
2) What is the name of electronic tool that facilitates the input, processing and output of information?
Answer:- b) Computer
3) What is referred to as the Brain of the Computer, responsible for calculation, movement and processing of information?
Answer:- a) CPU
4) What is the part of a computer that allows a user to input information?
Answer:- d) Input Device
5) What is the term for a small picture that represents a folder, program or other items on a computer?
Answer: b) Icons
6) What is the name of the computer's short term memory that is lost when the computer is turned off?
Answer:- c) RAM
7) What is the computer part that connects all other components enabling them to communicate and work together?
Answer:- d) Motherboard
8) What is the computer part called that stores programs and information on two or more disks within the computer?
Answer:- b) Hard drive
9) What is the name of the computer part that reads information from a disk?
Answer:- d) Disk drive
10) What is the term used for a world wide network of computer?
Answer:- Internet
#Chapter -7 Qno - 2 num=4; while(num<10): print("Number is %d"%num); num=num+1; Output Number is 4 Number is 5 Number ...