0% found this document useful (0 votes)
31 views28 pages

Record Lab Programs - 2022-23

The document contains 20 programs written by a student named Shazia Sadikhali for their Computer Science practical evaluation. It includes programs to check if a number is prime, compute factorials, find patterns, and other basic math and string programs.

Uploaded by

Shazia Sadhikali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views28 pages

Record Lab Programs - 2022-23

The document contains 20 programs written by a student named Shazia Sadikhali for their Computer Science practical evaluation. It includes programs to check if a number is prime, compute factorials, find patterns, and other basic math and string programs.

Uploaded by

Shazia Sadhikali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

CENTRAL BOARD OF SECONDARY EDUCATION

GLOBAL INDIAN INTERNATIONAL SCHOOL


ABU DHABI

COMPUTER SCIENCE
CLASS 11
TERM-1 SESSION 2022-23

NAME OF THE STUDENT: Shazia Sadikhali

SUBJECT TEACHER NAME: Priya Sajith

ROLL NO:
ACKNOWLEDGEMENT

I wish to express my deep sense of gratitude and


indebtedness to our learned teacher Ms Priya Sajith, IT
teacher, for her invaluable help, advice and guidance
in the preparation of this project

I am also greatly indebted to our principal Dr Heena


Rachh, and school authorities for providing me with the
facilities and requisite laboratory conditions for making
this practical file.

I also extend my thanks to a number of teachers, my


classmates and friends who helped me to complete this
practical file successfully.

[Shazia sadikhali]

2
CERTIFICATE

This is to certify that Shazia Sadikhali student of 11A grade has


completed the practical file during the academic year 2022-23
towards partial fulfillment of credit for the COMPUTER
SCIENCE practical evaluation of 2022-23 and submitted
satisfactory report, as compiled in the following pages, under
my supervision.

Total number of practical certified are : 20.

Internal Examiner External Examiner


Signature Signature

Date: School Seal: Principal’s Signature

3
CONTENTS

Sl.No Program Name Date


Write a program to given two integers x and n, compute 𝑥n
1

Write a program to input three numbers and display the largest /


2
smallest number.

3 Write a program to check if year is a leap year or not.

Write a program to input the value of x and n and print the sum of the
4
series:

x/1!+x2/2!+x3/3!+……+xn/n!

5 Write a program to input marks in 3 subjects and compute the


percentage and then calculate grade as per the following guidelines:

Grade Criteria
A Above 80%
B 70% to 80%
C 50% to 70%
D 40% to 50%
F Below 40%
Write a program to enter the price and quantity of an item purchased
6
by the customer and to compute and print the total amount ,discount
amount and net amount to be paid by the customer. The following is
the criteria for giving discounts on the items purchased.

4
• If total amount is upto 25000 then the discount of 5%
given
• If the total amount is between 25000 and 50000 then a
discount of 10% is given
• If the total amount payable is above 50000 then the
discount is 20%.
An electricity board charges according to the following rules
7
For first 100 units-Rs.2 per unit
For next 200 units –Rs.3 per unit
Beyond 300 units – Rs.4 per unit
All users will have to pay a meter charge of Rs.50. Write a
Python program to input the number of units consumed and
print the charges.

8 Write a program for calculating the total amount to be paid by a


client for hiring taxi in Uber for his trip. Service tax of 10% of total
amount payable.

Per day charges for taxi is as follows:

Category of car Category Code Amount in


AED
Uber SUV A 200 per day
Uber Comfort B 100 per day

UberXL C 70 per day

The program should accept the no of days and the category code and
compute and display the total amount, tax and net amount.

5
Write a menu driven program to determine
9
a. whether a number is a perfect number,
b. whether a number is an Armstrong number

Write a menu driven program to determine to generate the following


10
patterns using nested loop.

Pattern -1

**

***

****

*****

Pattern - 2

12345

1234

123

12

Write a program to check whether a number accepted at run time is


11 Prime or composite
Write a program to display the prime numbers up to a limit.
12

6
Write a program to display the terms of a Fibonacci series.
13

Write a program to Compute the greatest common divisor and least


14
common multiple of two integers.

Write a program to compute and display the factorial of a number


15 accepted at run time
Write a program to Count and display the number of vowels,
16 alphabets and digits, uppercase letters, lowercase letter, spaces and
other characters in the string.
Write a program to input a string and determine whether it is a
17
palindrome or not; convert the case of characters in the input string.

WAP to count the number of words in a string


18

WAP to find a substring from a string


19

Write a program to display the words starting with “a” (both cases)
20 from a sentence.

7
Program 1:

Source code:

o/p:

8
Program 2:

Source code:

o/p:

9
Program 3:

Source code:

o/p:

10
Program 4:

Source code:

o/p:

11
Program 5:

O/P:

12
PROGRAM 6:

o/p:

13
Program 7:

Output:

14
Program 8:

o/p:

15
Program 9:
(a):

o/p:

16
(b):

o/p:

17
Program 10:

O/P:

18
Program 11:

o/p:

19
Program 12:

o/p:

20
Program 13:

o/p:

21
Program 14:

o/p:

22
Program 15:

o/p:

23
Program 16:

o/p:

24
Program 17:

o/p:

25
Program 18:

o/p:

26
Program 19:

o/p:

27
Program 20:

o/p:

28

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy