shri govind guru university, godhara
TRANSCRIPT
Shri Govind Guru University, Godhara
BCA Semster – 4
Course No.
Subject Credit Exam
BCA0E401 Fundamental of Accounting 2 Theory BCA0F401 E-Governance and its applications 2 Theory BCA0C401 Visual and Windows programming 4 Theory BCA0C402 Open Source Technologies 4 Theory BCA0C403 System Analysis & Design 4 Theory BCA0C404 Computer Oriented Numerical
Methods 4 Theory
BCA0C405 User Interface Design 4 Theory BCA0P401 VB.NET 2 Practicals BCA0P402 Open Source Operating System 2 Practicals TOTAL 28
Semester Course Instruction Hours/Week
Credit Exam Hours
Internal External Total Theory Practical
4 BCA0E401 2 2 3 100 --- --- 100 4 BCA0F401 2 2 3 100 --- --- 100 4 BCA0C401 4 4 3 30 70 --- 100 4 BCA0C402 4 4 3 30 70 --- 100 4 BCA0C403 4 4 3 30 70 --- 100 4 BCA0C404 4 4 3 30 70 --- 100 4 BCA0C405 4 4 3 30 --- 70 100 4 BCA0P401 4 2 3 30 --- 70 100 4 BCA0P402 4 2 3 30 --- 70 100 TOTAL 32 28
Shri Govind Guru University, Godhara
BCA Semster – 4
BCA0E401 - Fundamentals of Accounting Unit-1.Introduction to accounting : Principle of double entry book keeping o Meaning, Importance & scope of accounting o Accountancy, accounting and book keeping o Distinction between book keeping and accounting o Branches of accounting o Double entry system of accounting o Accounting equation Generally accepted accounting principles: o Meaning of Generally accepted accounting principles o Basic assumptions and principle of accounting Unit-2. Journalizing, Posting • Journalizing, Posting, Balancing o Meaning & classification of account o Rules of debit and credit o Meaning and format of journal o Meaning of journalizing o Ledger and its format o Balancing Unit-3Subsidiary books o Meaning and types of cash book o Trade and cash discount o Three column cash book, purchase book,sales book, purchase return book & sales return book Unit-4Preparation of financial statements: o Meaning and utility of financial statements o Recognition of assets, liabilities, income and expense o Preparation of trading, profit & loss account and finalbalance sheet of trading company. Unit-5Computerized accounting o Overview of Financial accounting software (Tally, Ex.Microsoft Financial) Reference Books: Financial Accounting, By P.C. Tulisan, Pearson Education
(For unit 1 refer chapter 1, 2 & 5, Unit 2 refer chapter 6, 7 & 8, Unit 3 refer chapter 9) Cost Accounting, By M.Y. Khan & P.K.Jain, Tata Mc. Graw Hill
(For unit 4 refer chapter 1, 2, 3 & 4) Financial Accounting Theory And Practice, By Prassna Chandra, Tata Mc. Graw Hill Financial Managemant, By I M Pandey, Vikas Publishing House Cost Accounting, By Jawaharlal, Publisher: Tata Mc. Graw Hill Financial & Cost Accounting, By S.N. Maheshwari, Sultanchand & Sons.
Shri Govind Guru University, Godhara
BCA Semster – 4
BCA0F401 - E-governance Syllabus Unit 1. Introduction
Introduction of E-governance E-Governance: Needs of E-Governance Evolution of E-Governance Object of e-governance Scope of E-Governance Objectives of E-Governance Application of E-Governance
Unit 2. Models of E-Governance
Introduction; Model of Digital Governance: Broadcasting/ Wilder Dissemination Model Critical Flow Model Comparative Analysis Model Interactive-service Model/Government-to-Citizen-to-Government Model (G2C2G)
Unit 3. E-Governance Infrastructure
E-readiness: Digital System Infrastructure, Legal Infrastructural Preparedness, Institutional Infrastructural Preparedness, Human Infrastructural Preparedness, Technological Infrastructural Preparedness;
Unit 4. Data Warehousing and Data Mining in Government Introduction
Data Warehouses Data Mining Characteristics of data warehouse. Phases of data mining Case study
Reference Book: E- Governance Concepts and Case Studies by C S R Prabhu, PHI India pvt. ltd.
Shri Govind Guru University, Godhara
BCA Semster – 4
BCA0C401 - Visual and Windows programming
Unit:-1An Introduction to Visual Basic.NET and Program Design
Introduction What is Microsoft Visual Basic.NET?Programming and Application Development Application Types Windows Applications
Web Applications Console Applications Windows Service Web Services
Components Object-oriented Programming and object-oriented design Objects Rapid application development What is .Net? The Common Language Runtime The VB.NET Integrated Development Environment Exploring the VB.NET Integrated Development Environment
Menu bar and Toolbars Status Bar Windows The components of a VB.NET Solution
Building an application in the VB.Net Environment Working with Form
Changing the size of a form Using the property window Object box Properties List Toolbar Description Pane
Setting Properties Name Start Position Title(Text) Form border style Back color Fore color Enabled Window state Control box Icon
Common Properties of Control
Shri Govind Guru University, Godhara
BCA Semster – 4
Textbox Control Setting Properties
Name Border style Text Text align Auto size Max length Multi line Read only Word wrap Location: X Location: Y Height Width Tab stop Methods Cut Copy Paste Clear Focus Select Select all Show
Label o Setting Properties
Name Flat style Image Image align Text Location: X Location: Y Height Width
Numeric up down o Setting properties
Name Border style Text align Up down align Value
Shri Govind Guru University, Godhara
BCA Semster – 4
Interceptarrowkeys Decimal places Increment Maximum Minimum Thousands Separator Location: X Location: Y Height Width
Button o Setting Properties Name Flat style Image Image align Text align
Textbox and Numeric up down control methods Assignment statement Comment statements
Unit:-2 Working with Variables, Constants, Data types and Expressions Group box o Setting properties
Name Flatstyle Text Gridsize: width Gridsize: height Tabindex Sizing and aligning controls Setting a default button on a form and locking controls
Radio button o Setting properties
Name Check align Checked Flatstyle Image Image align Text Auto check
Shri Govind Guru University, Godhara
BCA Semster – 4
Tabindex Declaring constants and variables o Data types o Declaring constants o Option strict statement o Declaring global variable o Declaring Local variable o Converting data types Numeric Expressions and operator precedence o Arithmetic operators o Forming valid numeric expressions o Evaluating of numeric expressions o Using parentheses in numeric expressions o Construction of error free numeric expressions
Unit:-3 : Decision Making and Other Controls
Introduction Combo box Control Setting Properties
Name Dropdown style Text Dropdown width Integral height Maxdropdownitems Maxlength Sorted Selected Index Items
oMethods Add() Remove() Remove At() Clear() Count() Contains() Insert() Copyto()
Listbox control
Shri Govind Guru University, Godhara
BCA Semster – 4
Setting properties Name Items Columwidth Itemheight Items Selection mode Sorted _ multicolumn
Decision making control structures If…then…else statement The nested If…then…else structure Select case statement
Check box control o Setting properties
Name Appearance Checkalign Checked Checkstate Flatstyle Image Imagealign Text Autocheck
Unit:-4
Using Menus, Common Dialogs, Procedures, Functions andArrays Creating menus on a menu bar Setting properties
Name Checked Defaultitem Enabled Radicheck Shortcut Text Creating access keys
Status Bar o Setting properties
Panels
Shri Govind Guru University, Godhara
BCA Semster – 4
Sizing grip Showpanels Statusbar panel properties Alignment Autosize Borderstyle Icon Minwidt
Picturebox o Setting properties
Image Sizemode Picquestion Stretchimage Top, bottom, left, right Common dialog controls Open filedialog control Save filedialog control Font dialog control
setting properties Allowscriptchange Font Scripts only Show apply
Arrays The dim statement for arrays Dynamic dimensions Declaring arrays Array methods
Function procedures Declaring a function procedure Returning a value and existing a function procedure
Reference Books: Murach's Beginning Visual Basic .NET By Anne Prince BPB Publication Mastering Visual Basic.Net By Evangelos Petroutsos, BPB Publication
Shri Govind Guru University, Godhara
BCA Semster – 4
BCA0C402 - Open Source Operating System
UNIT: 1 IntroductionToLinuxandGettingStartedwithUbuntu • IntroductiontoLinux
oWhatisLinux? oTheageof Linux oTheproblemswithWindows oThebenefitsof Linux
UNIT: 2 SecuringcomputerusingUbuntuandpersonalizingUbuntu
• SecuringComputer oWindowssecurityvs. LinuxSecurity oRootandordinaryusers oPersonalizingUbuntu oChangingthelookandfeel
Alteringthetheme Changingindividualthemecomponents Changingthewallpaper
oConfiguringinputdevices Configuringmouseoptions Changingkeyboardsettingsandshortcuts
oPersonalizinglogindetails oChangingloginpicture
• PersonalizingUbuntu oAddingandremovingdesktopitems oAddingshortcut
Creatingashortcut Creatingalink
oAddingandremovingmenus Addingall menustoapanel Addingtheapplicationsmenutoapanel, Deletingamenu
oSettingpowersavingfeatures
UNIT: 3ManagingFile • Understandingfilesystemconcept
oDrivereferences oCasesensitivity oFileaccessandstorage oUsingNautilus
Menubar Toolbar Locationbar Zoomcontrols Viewasicons/list Placespane
Shri Govind Guru University, Godhara
BCA Semster – 4
oLaunchingfilesandrunningprograms oAccessingremovablestoragedevices
Ejectingmediafromdrives oIntroducingtheBashShell
oWhatistheBashShell? oGettingstartedwithshell
Runningprograms Runningtheshellviaavirtualconsole Gettinghelp
oWorkingwithfiles Listingfiles Copyingfiles Movingfiles Deletingfiles Changingandcreatingdirectories
• UnderstandingLinuxfilesandusers
oReal filesandvirtualfiles oUsersandfilepermissions
Viewingpermissions Alteringpermissions
oThefilesystemexplained oMounting
Usingthemountcommand MountingaDrivemanually Removingamountedsystem
oFileSearches Usingthefind command Usingthelocatecommand
oUsingwhere iscommand
UNIT: 4 WorkingwithTextfiles,controllingthesystem,Multimedia • Viewingthetextfiles
oUsingthecatcommand oUsingthelesscommand oUsingtheheadandtailcommands oUsingacommandlinetext editor
Understandingvi modes Usingvi to edit thefile Creatinganewtext fileusingvi
oSearchingthroughfiles Usinggrepto findtext Usingregularexpressions
oComparingtext files
Shri Govind Guru University, Godhara
BCA Semster – 4
oViewingtheprocesses oControllingprocesses
Killingprocesses Controllingzombieprocesses Usingother commandsto controlprocesses
oControllingjobs oPipinganddirectingoutput
Pipingtheoutputsofcommands Redirectingoutput ReferenceBooks:
BeginningwithUbuntuLinux(FirstEdition2007) ByKeirThomas, ApressPublications Unix: ConceptsandApplications(FourthEdition) BySumitabhaDas, TataMcGrawHill UnixShellProgramming ByYashvantP Kanetkar, BPBPublications TheOfficialUbuntuBook ByBenjaminMakoHill, PearsonPublications
Shri Govind Guru University, Godhara
BCA Semster – 4 Syllabus
BCA0C403 - System Analysis and Design
UNIT-1: Introduction System Analysis and Design
Software Development Models
Waterfall Model The Incremental Model The Spiral Model
Overview Feasibility Study
Operational Feasibility Technical Feasibility Economic Feasibility Schedule Feasibility
Requirement Modeling / Fact-finding techniques
Interview Document review
Data and Process Modeling
Data Flow Diagram: Concepts, Symbols, Rules, Construction of DFD for any Case Study
Data Dictionary: Concepts, Rules, Construction of Data Dictionary for any Case Study
UNIT-2: Object Oriented Analysis & Design Structures
Object-Oriented Modeling:
Analysis Model Architecture Model Component Design Model
Object-Oriented Approach:
Object-Oriented Analysis Object-Oriented Design
The Constituents of OOAD:
Objects and Classes Links and Association Generalization and Specialization Aggregation and Composition
Pillars of Object-Oriented Analysis and Design
Abstraction Encapsulation
Shri Govind Guru University, Godhara
BCA Semster – 4 Syllabus
Inheritance Polymorphism Coupling Cohesion Components Interfaces
The Language of OOAD – Unified Modeling Language:
UML Diagrams
UNIT-3: Use Case Diagram, Class Diagram and Object Diagram:-
Introduction Scope of Use-Case Diagram Benefits of Use-Case Diagram Elements of Use-Case Diagram:
o Actors o Use-Cases o Relationship between Actor and Use Case o Relationship between Use-Cases o Relationship between Actors o Guidelines for design of Use-Case Diagram o Draw the Use-Case diagram for any Case study
Class Diagram: o Analysis and Design version of Class Diagram o Elements of Class Diagram o Guidelines for design of Class Diagram
Object Diagram o Elements of Object Diagram:
Objects Links
Guidelines for design of Object Diagram Draw the Class and Object Diagram for any Case Study
UNIT-4: Sequence Diagram, Activity Diagram &State Chart Diagram.
Sequence Diagram: o Introduction o Elements of Sequence Diagram:
Life Lines Messages Activation Guards Combined Fragments
Shri Govind Guru University, Godhara
BCA Semster – 4 Syllabus
Guidelines for design of Sequence Diagram Draw the Sequence Diagram for any case study
Activity Diagram:
Introduction Elements of Activity Diagram:
o Initial State o Final State o Action / Activity o Transitions o Decision o Synchronization, Fork and Join o Swimlanes o Object and Object Flow
Guidelines for design of Sequence Diagram Draw the Sequence Diagram for any case study
State Chart Diagram:
Introduction Elements of State Chart Diagram:
o Initial State o Final State o State o Transitions
Guidelines for design of State Chart Diagram Draw the State Chart Diagram for any case study
Reference Books:
1. Magnifying Object-Oriented Analysis and Design by Arpita Gopal and Netra Patil, PHI
2. System Analysis and Design Methods by Gary B. Shelly, Thomas J. Cashman, Harry J. Rosenblatt, Cengage Learling
Shri Govind Guru University, Godhara
BCA Semster – 4 Syllabus
BCA0C404 - Computer Oriented Numerical Methods
Unit-1: Errors in Computation
• Introduction • Significant Digits and Floating-Point Representation • Floating point Arithmetic
Addition Operation Subtraction Operation Multiplication Operation Division Operation
• Errors in Computation • Absolute and Relative Errors • Calculation of Absolute and Relative Errors
2 Numerical Methods for Nonlinear and Transcendental Equations
• Introduction • Graphical Method • Tabulation Method • Iteration Methods
Bisection Method False Position Method Newton–Raphson Method • Numerical Integration • Introduction • General Quadrature Formula (GQF) • Trapezodial Rule • Simpson’s 1/3 rule
3 Practical Demo should be given for Iteration Method in C/C++Interpolation
Introduction Lagrange Interpolation Method Methods Based on Finite Differences Forward Differences and the Forward Difference Table Newton’s Forward Interpolation Formula Backward Differences and the Backward Difference Table Newton’s Backward Interpolation Formula Divided Differences and the Divided Difference Table for Unequally Spaced Points Newton’s Divided Difference Interpolation Formula
Shri Govind Guru University, Godhara
BCA Semster – 4 Syllabus
4 Curve Fitting
Introduction Straight Line Fit Using the LSF Method Reverse Straight Line Fit Polynomial Fit by the LSF Method Power Function Fit Using the LSF Method
Reference Books:
Numerical Analysis with Algorithms and Computer Programs in C++ By Ajay Wadhwa, PHI Learning Private Limited
Computer Oriented Numerical Methods, By R.S.Salaria, Khanna Book Publishing Co. Ltd. Numerical Methods for Scientists and Engineers (Third Edition), By K. Sankara Rao,
Publication: PHI Learning Private Limited
Shri Govind Guru University, Godhara
BCA Semster – 4 Syllabus
BCA0C405 - USER INTERFACE DESIGN
UNIT–I INTRODUCTION
Introduction – Importance – Human computer interface – Characteristics of GUI – Direct
manipulation graphical system – Web user interface – Popularity – Characteristics &
Principles.
UNIT II - USER INTERFACE DESIGN PROCESS
User interface design process – Obstacles – Usability – Human characteristics in design –
Human interaction speed – Business functions – Requirements analysis – Direct – Indirect
methods – Basic business functions – Design standards – System Timings – Human
consideration in screen design – Structures of menus – Functions of menus – Contents of menu
– Formatting – Phrasing the menu – Selecting menu choice – Navigating menus – Graphical
Menus.
UNIT III – WINDOWS
Windows: Characteristics – Components – Presentation styles – types – Managements –
Organizations – Operations – Web systems- device- based controls: Characteristics – Screen-
based controls: Operate control – Text boxes – Selection control – Combination control –
Custom control – Presentation control.
Reference book:
Design the User Interface by Ben Sheiderman, Pearson Education The essential of User Interface Design by Alan Cooper, Wiley Dream Tech Ltd. The essential guide to User Interface Design by Wilbert O Galitz
Shri Govind Guru University, Godhara
BCA Semster – 4 Syllabus
BCA0P401 - VB.NET (Practical)
UNIT Building an simple application in the vb.net environment
with form, textbox, label, numeric up down and button
1 Create a form with one textbox, one label and one button. Enter your name in textbox. On clicking of button, your name must be displaed into the label.
2 Create a form with three buttons red, green and blue. On the click of red button back color of the form will be changed to red and son.
3 Create a form, such that while running the application the form should always be shown in the middle of the screen.
4 Design on interface of simple calculator.
5 Design a form with numeric up down control. It shows only even numbers between 1 to 50.
1
6 Write a program to create a color pallet. Take three numeric up down for Red, Green and Blue color and one label. And According to the scrollbar values , the color of the label should be changed.
7 Change the icon of the form.
8 Create an application to load the image in the label.
9 Create an application with one textbox and three buttons (left, right, center). On clicking left button, alignment of
textbox should be changed to left and respectively.
10 Create an application which shows a number like 11,120 in
numeric up down.
Working with Variables, Constants, Data types and Expressions
1 Design a form that has three textboxes and radio button that calculate simple interest and compound interest.
2 Design an application which will have 2 radio buttons. One will convert the temperature from Celsius to Fahrenheit and another will Convert Fahrenheit to Celsius. Show the appropriate output depending on the user’s selection. (Use radio button to take user choice’s and use textbox to enter the value).
3 Create a loan calculator using Pmt function.
4 Take two textbox controls. Enter first name and last name in
Shri Govind Guru University, Godhara
BCA Semster – 4 Syllabus
respective textboxes and on clicking a button ,concatenate first and last name and display it on label.
5 Create an interface which allows the users to select shapes of his/her choice using radio buttons. Take parameters of that shape using textboxes and calculate the area of that particular shape.
6
Create an Employee Entry form which will include employee’s name, address, skills (take radio button for skills) and gender (take radio button for gender). On clicking submit Button should display inputted data on a label with proper Formatting.
2
7 Write a program to convert integer value into double(real).
8
Write a program to calculate the area of a circle and use pi value as constant.
9
Design and develop a project to convert an English Measurement given in Miles,Yards, Feet and Inches to a metric measurement in kilometers, meters and centimeters. Use the following formula to change the English Measurement to inches. Total inches = 63360*miles + 36*yards + 12*feets + inches Use the following formula to determine equivalent meters. Meters = total inches / 39.37
10 Write a program to convert rupees value to dollar value.
Decision Making, Repetition and multiple forms
1 Enter 5 numbers find out highest and second highest. For the highest no check it is prime or not and for second highest Calculate its Fibonacci series.
2 Create an application with a textbox in which user can enter a sentence then display
1) Number of vowels
2) Number of spaces
3) Number of digits
4) Number of special symbols
When user press “analysis” button
3 Take one textbox. Enter paragraph with multiple lines and
find out the no. of vowels and no. of digits from the given paragraph.
4 Write a program which will accept a string from user. And
Shri Govind Guru University, Godhara
BCA Semster – 4 Syllabus
then reverse the string without using inbuilt functions for string reverse. Then check whether the string is palindrome or not. Find the no of words in string. Also find out how many words starts from “a” character.
3 5 Design a form having two text boxes, combo box and a label. Make the validation so that user can enter only numbers in both textboxes, if user has entered both numerical values then make the combo box visible. The combo box has
options like ‘ADD’, ‘SUB’,’MUL’ and ‘DIV’. According to
user’s choice
From combo result will display in label.
6
Design a form which calculate the Annual salary with income tax
facilities. If monthly salary entered then calculate annual salary. Calculate the income tax as per below conditions.
Rs.0 - Rs.50000 - No tax Rs.50000 - Rs.60000 - 10% of annual income
Rs.60000 - Rs.150000 - 20% of annual income More than Rs.150000 - 30% of annual income
Also print net annual salary income after the deduction of tax in label.
7 Restrict a textbox to input only the digits.
8 Create a form with two drop down lists (combo boxes) one
for country name and another for President / Head of the
country. When the user selects a country name from combo box, corresponding President/Head name should be displayed in another combo box.
9 Design a form to accept a text from the user and then put two
text boxes to input word to find and replace. If the user clicks on find button, show index of the first occurrence of the word given in find textbox. If user clicks replace button, found
word should be replaced with the word given for replacement.
10 Write a program to transfer an item from First Listbox to
Second Listbox and from Second Listbox to First.
11 Build a calculator with all the arithmetic functions.
12 Print multiplication table into listbox. For multiplication take
value using Numeric up down.
Using menus, common dialogs, procedures, functions andarrays
1Design a form having subroutine of function with belowoperations Button1: Find out the avg. of four values.
Shri Govind Guru University, Godhara
BCA Semster – 4 Syllabus
Button2: Find out the max. of the values Button3: Find out the min. of the values
2 Create an application which provides four textboxes for accepting numbers and three option buttons to select two,three or four. Design a function adds to find addition of numbers selected using option buttons. 3Take two picture boxes on form which overlaps each other. It we click on first picture it will hide itself and shows second one and if we click on second one it will do the same. 4Accept a no from user and perform the following operations Using user defined sub routines or functions
. i. Factorial of the number ii. Odd/even
5Create MDI form. It must have File menu with option open, Close and Exit. It should also have window menu to arrange the child forms like Tile Horizontal, Tile Vertical, Cascade and Arrange Icons. 6Find out whether the number is a prime or not, using function. 7.Create MDI form. It must have File menu with option Open, Close and Exit and one picture box. Allow users to open any picture using open dialog box,and that picture should be displayed in the picture box. 8Create a text editor application. It should performs operation like cut, copy, paste and change its font and color of the selected text . 9Create a function to sort an array’s elements. 10Write a program to find minimum and maximum values from a given array.
SHRI GOVIND GURU UNIVERSITY, GODHARA
BCA Semester - 4
Page 23 of 26
BCA0P402 - Praticals Open Source Operating system Practical
1 Checktheoutputofthefollowingcommands:date,ls,who,cal,ps, wc,cat,uname,
pwd,mkdir,rmdir,cd,cp,rm, mv,diff, chmod,grep,sed, head, tail,cut,paste, sort, find,man
2 Writeascripttofindthecomplete pathforanyfile
3 Writeashellscripttoexecutefollowingcommands 1. Sort fileabc.txtand savethissortedfile inxyz.txt 2. Giveanexample of :Toexecute commandstogetherwithoutaffectingresult of
eachother. 3. Howtoprint“thisis
athree –line 1. Text message”
4. Whichcommanddisplayversionof theUNIX? 5. Howwouldugetonlinehelp of catcommand?
4 Writeashellscripttoexecutefollowingcommands 1. Howwouldudisplaythehiddenfiles? 2. Howdeletedirectorywithfiles? 3. Howwouldusercando interactivecopying? 4. Howwouldusercando interactivedeletionoffiles? 5. Explaintwofunctionalityof “mv”commandwithexample?
5 Writeashellscripttoexecutefollowingcommands 1. Createafilecalledtext andstorename,ageandaddressinit. 2. Displaythecontentsof thefiletext onthescreen. 3. Delete thedirectoriesmydirandnewdiratone shot. 4. Sort anumericfile? 5. Changethepermissionsforthefilenewtextto666.
6 Writeshellscriptthatacceptfilenameanddisplays last modificationtimeiffileexists, Otherwisedisplayappropriatemessage.
7 Writeashellscripttodisplaythe loginnamesthat beginwith‘s’.
8 Writeashellscriptto removethezerosizedfilefromthecurrentdirectory
9 Writeashellscripttodisplaythenameof all theexecutablefilefromthecurrent Directory.
10 Writeashellscriptthatwilldisplaywelcomemessageaccordingtotime
11 Writeashellscripttofind numberof ordinaryfilesanddirectoryfiles.
12 Writeashellscriptthat takesafilenamefromthecommandlineandchecks whether thefile isanordinaryfileornot. If it isanordinaryfile thenitshoulddisplaythecontentsof thefile. If it isnotanordinaryfile thenscriptshoulddisplaythemessage:
“Filedoesnotexistorisnotordinary,cannotdisplay.“
SHRI GOVIND GURU UNIVERSITY, GODHARA
BCA Semester - 4
Page 24 of 26
13 Writeashellscriptthat takesafilenamefromtheuserandcheckswhetherit isa directoryfileor not. If it isadirectory,then thescriptshoulddisplaythecontentsof
thedirectory. If it isnotadirectoryfile thenscriptshoulddisplaythe message: “File
isnotadirectoryfile“
14 Writeashellscriptthat takesafilenameasanargumentandchecksifthefile existsandisexecutable. If thefile isexecutablethentheshellscriptshoulddisplaythemessage:
“Fileexists”
If thefiledoesnotexistsandisnotexecutablethenthescriptshould displaythemessage:“Filedoesnotexistorisnotexecutable.”
15 Writeashellscriptthatdisplaysallsubdirectoriesincurrentworkingdirectory.
16 Writeashellscriptthatcalculatesthenumberof ordinaryanddirectoryfiles inyour currentworkingdirectory.
17 Writeashellscriptthataccepts2filenamesandchecksifbothexists; ifbothexistthen appendthecontentofthesecondfile intothefirstfile.
18 Writeashellscriptthat takesthenameof twofilesasargumentsandperformsthe following:
i.Displaysthemessage: “Displayingthecontents offile :( firstargument)” anddisplaysthecontentspagewise.
ii.Copiesthecontentsof thefirstargumenttosecondargument. iii. Finallydisplaysthemessage:
“Filecopiedsuccessfully.”
19 Writeashellscripttodisplaythefollowingmenuandactsaccordingly: i.Calendarof thecurrentmonthand year. ii.Display“GoodMorning/GoodAfternoon/GoodEvening”accordingtothe
currentlogintime. iii.Username,Usershomedirectory. iv.Terminalname,Terminaltype. v.Machinename. vi.No.of userswhoarecurrentlyloggedin; Listof userswhoarecurrently
loggedin.
20 Writeashellscriptthat displaysthefollowingmenuandactsaccordingly 1. Concatenatestwostrings 2.Renamesafile 3.Deletesafile. 4. Copythefile tospecificlocation
21 Writeashellscripttochange thesuffixofallyour *.txtfilesto.dat.
SHRI GOVIND GURU UNIVERSITY, GODHARA
BCA Semester - 4
Page 25 of 26
22 Writeashellscripttoaccept adirectory-nameanddisplayitscontents.If inputisnot giventhenHOMEdirectory'scontentsshouldbe listed. (Makeuse ofcommandline argument)
23 Writeashellscripttogetallfiles of home directoryandrenamethemif their names startwithc.
Newname=oldname111
24 Writeashellscriptthat takestwofilenameasarguments.It shouldcheckwhetherthe contentsoftwofilesaresameor not,iftheyaresamethen secondfileshouldbe deleted.
25 Writeashellscriptthatacceptstwodirectorynamesfromthecommandlineandcopies all thefilesof one directorytoanother.Thescriptshoulddothefollowing
If thesource directorydoes notexist, flashaerror message If destinationdirectorydoesnotexistcreate it Oncebothexistcopyall thefilesfromsourcedirectoryto
destinationdirectory.
26 Writeashellscriptthat displaysthefollowingmenu Listhome directory Date Print workingdirectory Usersloggedin
Readtheproperchoice.Executecorrespondingcommand.Checkforinvalidchoice.
27 Writeashellscriptthat displaysallhiddenfilesincurrentdirectory.
28 WriteashellscriptthatCombinetwofilesinthethirdfilehorizontallyandvertically.
29 Writeashellscripttodeleteallthespacesfromagivenfile.
30 Writeashellscripttofindagivendatefall onaweekdayoraweekend.
31 Writeashellscripttosearchforagivenwordin allthefiles givenastheargumentson thecommandline.
32 Writeashellscriptthat displaylast modifiedfileinthecurrentdirectory.
33 Writeascripttodisplaythepermissionsoftheparticularfile.
34 Writeashellscripttodisplaythecalendarinthefollowingmanner: i.Displaythecalendarof monthsm1andm2by‘CALm1,m2’commandfile. ii.Displaythecalendarof the monthsfromm1tom2 by‘CALm1-m2’commandfile.
35 Writeashellscripttodisplaythefollowingmenuforaparticularfile: i.Displayall thewordsof afile inascendingorder. ii.Displayafile indescendingorder. iii.Toggleallthecharactersinthefile. iv.Displaytype of thefile.
36 Writeashellscripttocheckwhetherthenameduseriscurrentlyloggedinor not.
SHRI GOVIND GURU UNIVERSITY, GODHARA
BCA Semester - 4
Page 26 of 26
37 Writeashellscripttodisplaythefollowingmenuforaparticularfile: i.Displayall thewordsofafileinascendingorder. ii.Displayafile indescendingorder. iii.Displayafile in reerseorder. iv.Toggleall thecharactersinthefile v.Displaytype ofthefile.
38 Writeashellscripttofind total no. Ofusersandfindsouthowmanyof themare currentlyloggedin.
39 Writeashellscriptthat displaysthedirectoryinformationinthefollowingformat- Filename Size Date Protection Owner
40 Writeashellscripttodisplayfive largestfilesfromthecurrentdirectory
41 Writeashellscriptthat togglescontentsofthefile
42 Writeashellscriptthat reportwhetheryourfriendhascurrentlyloggedinor not. If he hasloggedinthentheshellscriptshouldsendamessagetohisterminalsuggestinga dinnertonight.If youdohavewritepermissiontohisterminalor ifhehasn’tloggedin thensuchamessageshouldbemailedtohimaboutyourdinnerproposal.
43 Writeashellscriptfortheperformingthewriteandmail.
44 Writeashellscripttoaccept anycharacterusingcommandlineandlistall thefiles startingwiththatcharacterinthecurrentdirectory.
45 Createafilecalledstudentcontainingroll-no,nameandmarks. a. Displaythecontentsof thefilesortedby marksindescendingorder b. Displaythenamesof studentsinalphabeticalorderignoringthecase. c. Displaystudentsaccordingtotheirrollnos. d. Sort fileaccordingtothesecondfieldandsave it tofile‘names’. e. Displaythe list of studentswhoscoredbetween70and80.