0% found this document useful (0 votes)
2 views4 pages

Com Grap File

This document outlines a practical file for a Computer Graphics lab course (BCA 5th Sem) detailing various programming assignments and scripts to be completed by students. It includes tasks such as writing shell scripts, implementing algorithms for graphics, and using gawk for data manipulation. The assignments cover a range of topics from file handling to graphical animations.

Uploaded by

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

Com Grap File

This document outlines a practical file for a Computer Graphics lab course (BCA 5th Sem) detailing various programming assignments and scripts to be completed by students. It includes tasks such as writing shell scripts, implementing algorithms for graphics, and using gawk for data manipulation. The assignments cover a range of topics from file handling to graphical animations.

Uploaded by

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

PRACTICAL FILE

ON
Computer Graphics lab
BCA 5 Sem
th

Course code: BCA-373


Session: 2022-25

SUBMITTED TO: SUBMITTED BY:

Dr. Sumit Chauhan Name: Divya Bisht


Assistant Professor (IT) Roll No.: 00715102022
Course: BCA 5th sem
INDEX

S. No. List of Program Sign.


Write a shell script using ‘case’ statement. This offers following choices to
the user
i) sort file contents in ascending order.
ii) count the no. of lines
1 iii) converts the contents into capital letters
iv) Exit
According to the user’s choice, ask the file name and perform the desired
action.
Write a script which takes text files as command-line argument and converts
all the
2 lowercase letters to uppercase, and then stores the results in a file of the
same name but
with a ‘none’ extension.
Write a program to Line drawing algorithm (DDA & Bresenham’s
3 Algorithm)
4 Write a program to Circle algorithm by using Bresenham’s Algorithm
5 Write a program to Translation in 2D
6 Write a program to Relation in 2D
7 Write a program to Scaling in 2D
8 Write a program to Reflection in 2
9 Write a program to Shearing in 2D

10 Write a program to Cohen Sutherland’s Algorithm (Line clipping)

11 Write a program to draw flying balloons

12 Write a program to how Bouncing ball animation


Write a program to draw pie chart of family income and Expenditure
13
14 Write a program to show changing radius of circle

15 Show moving car animation

2.
3. Write a script which takes text files as command-line argument and converts all the
uppercase letters to lowercase, and then stores the results in a file of the same name but
with a “low” extension.
4. Assume you have a file of student’s result with name “mark.text” having information in
sequence as Name, Roll No., Subject1, subject2, subject3 and total marks i.e. total 6
columns. Write a gawk script to store Name and total marks in another file with name
“result”.
5. Write a shell script using ‘Case’ statement. Which offers following choices to the user
a. display file contents
b. count the no. of lines
c. converts the contents into capital letters
d. exit
According to the user’s choice, ask the file name and performs the desired action.
6. Take the input from the user & report whether it is file or a directory or something
else.
7. Write a script which reads your name, surname & year of birth as command line
arguments and gives the output like.
My name is : ………………
My Surname is : ………………
My YOD is : ………………

8. Write a script that takes a no. ‘n’ & a word as command line input. Then it prints the
word ‘n’ times.

9. Write a program to sort a list of N integers.


10. Write a script which displays the options as follows
i) Display time
ii) Display day, month & year
iii) Display day of week
According to user’s choice it displays the required output.
11. Write a shell program to print the factorial of an integer.
12. Write a shell program to print the Fibonacci series.
13. Write a shell program to construct a multiplication table from 1 to 10.
14. Write a shell program to print the reverse of a number.
15. Write a shell program to find out the HCF of 2 numbers.
16. Write a shell program to display the table of a number.
17. Write a gawk program to generate a bill of the goods that you have purchased from a
shop.
18. Assume that you have a file of student’s result with name “mark.text” having information
in sequence as Name, Roll No., Subject1, subject2, subject3 and total marks i.e. total 6
columns. Write a gawk script to search the name ABCD and show all the information
about that student.
19. Assume you have a file of student’s info with name “Stu_info “ having information in
sequence as Name, Father’s name, Address, City, Pin, Telephone, Email address i.e. total
7 columns. Write a gawk script to search the name ABCD and EFGH, show telephone
no. of ABCD and address of EFGH.
20. Assume you have a file of student’s info with name “Stu_info “ having information in
sequence as Name, Father’s name, Address, City, Pin, Telephone, Email address i.e. total
7 columns. Write a gawk script to search compare the Name = ABCD and show all the
information.
21. Assume you have a file of student’s result with name “mark.text” having information in
sequence as Name, Roll No., Subject1, subject2, subject3 i.e. total 5 columns. Write a
gawk script to search the name ABCD and show all the total of its marks.

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