word excel practical - mastermohsin.commastermohsin.com/xii/docs/xiipracticalguidelineue.docx ·...

21
XII- 2019 C Langua ge & Databa se Roll No________ _ Name______ __________ __________ __________ ________ XII-Practical of Board of Intermediate Education Karachi for the year 2019

Upload: hoangtuong

Post on 13-Aug-2019

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

Directions for XII practical file پریکٹیکل برائے / ہدایات

XII-2019

C Language

& Database

Roll No_________Name__________________________________________

__ XII-Practical of Board of Intermediate Education Karachi for the year 2019

Page 2: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

English اردو Complete your file as soon as possible at

make it certified before final exams. First page1 of your file will be the title

page as shown above. Second page 2 of your file will be the bio-

data page in which your attributes will be writing like your full name , father name, Class, Group, Roll No (College), Email, Contact, College name, Session 2018-2019 etc.

Third page3 will be your Certification page

Fourth page4 will be your file’s index(Table of content) page. It will show the name of all the practical you have done throughout your academic session at college 2018-2019

Fifth page5 and onwards pages like page6, page7….. page(n) will hold the contents of your Part-1 C-language practical and Part-2 Database practical.

قبل سے امتحانات کرکے مکمل جلد از جلد فائل اپنیکروالیں۔ یق تصد سے انچارج کے شعبہ اور انچارج کورسمیں تصویر اوپر جیسے گا ھو ورق سر ایک نمبر صفہ

ھے۔ ن آارہا ظرنمبر نام 2صفہ آاپکا جسمیں ھوگا متعلق سے کوائف آاپکے

- کا ، فون میل، ای نمبر، رول گروپ، کلاس، ولدیت، ، ) ھوگا۔ ) درج وغیرہ سیشن دور کا پڑھائی اور نام کا لج

نمبر ( 3صفہ ھوگا ) سرٹیفکیٹ سند تصدیقینمبر ( 4صفہ فہرست ) اس ھوگا۔ کاصفہ انڈیس فہرست

- نام کے پریٹیکل کے دونوں بیس ڈیٹا اور لینگویج سی میںھونگے۔ درج نمبر اورصفہ

نمبر -5صفہ ( لینگویج سی اول حصہ پر صفات اگلے اور کے ( ) بیس ڈیٹا دوئم حصہ پھر اور پریکتٹیکل کے

ھونگے۔( درج ترتیب بل پریکٹیکل

C-Language practical requirement: -پریکٹیکل لینکویج سیObjectFlow ChartAlgorithmCode/Programming( C-language Program list)Output (Result of the program)

) ( اوبجیکٹ مقصد کا پروگرامچارٹ فلو

اولگورتھمپروگرام لینگویج سی

) پٹ) آاؤٹ نتیجہ

Database practical requirement: بیس ڈیٹاObjectProcedureOutput

) ( اوبجیکٹ مقصد کا پروگرام) پروسیجر ) کار طریقہ

) پٹ) آاؤٹ نتیجہ

Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 2

Page 3: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

NAME ___________________________

FATHER NAME ___________________________

CLASS ___________________________

GROUP ___________________________

ROLL NO ___________________________

EMAIL ___________________________

CONTACT ___________________________

COLLEGE ___________________________

SESSION ___________________________

CertificateMohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 3

Page 4: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

This is to certify that Mr._______________________________ s/o

__________________________, holding Roll No._______________

of XII class, section ____________, has successfully completed all

the requirement of this practical file for the session 2018-19.

Course Instructor Head of the Department

TABLE OF CONTENTS

Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 4

Page 5: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

S.No. Practical Object Page No.

Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 5

Page 6: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

Part-1 C-Language Practical

Part-2 Database Practical

Part-1 C-Language

Practical No.1 to 15

Object

Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 6

Page 7: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

Flow ChartAlgorithmCoding/Programming (Printout list)Output

میں- سب ان یعنی ھونگے سے طرح اسی پریکٹیکل تمام کے تمام کے لینگویج سی

) اوبجیکٹ) ،مقصدچارٹ ،فلو، اولگورتھم

اور کوڈنگ پروگرامپٹ) ( آاؤٹ نتیجہ

ھونگے۔ موجود سب کے سب

) ( سئ – میں روشنی کی جس ھے۔ موجود سیمپل نمونہ کا پریٹیکل سی ایک -نیچےھیں۔ جاسکتے کیئے مکمل پریکٹیکل تمام کے لینگویج

Part-1 C-Language

Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 7

Page 8: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

Start

INPUT “Enter your number? ”, num

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

Sample Practical No.1

1-Object:

Draw flowchart and write an algorithm and source code to find the factorial of an inputted number using any iteration structure.

2-Flow Chart

Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 8

Page 9: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

3-Algorithm

Task: Draw an algorithm to find the factorial of an inputted number using any iteration structure. www.MasterMohsin.com

Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 9

Page 10: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

Step1: BEGINStep2:DECLARE counter,factorial,num AS long integerStep2: WRITE “Enter Number for Factorial? "Step3: READ numStep4: SET factorial=1Step5: SET counter=factorialStep7: FOR counter=factorial down to 2 STEP=-1Step8: SET factorial=factorial*counterStep9: NEXT counterStep10:WRITE “Factorial of”, num, “ = " ,factorialStep11:END

4-Coding/Programming (Printout list)

Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 10

Page 11: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

/* Sample Practical: Draw flowchart and write an algorithm and source code to find the factorial of an inputted number using any iteration structure. www.MasterMohsin.com */

#include <stdio.h>#include <conio.h> // pre-processor directives

void main(void) // main function.{ // body of main function.

long int counter,factorial,num; // variable declaration.

clrscr();printf("\nEnter Number for Factorial? ");scanf("%ld",&num);factorial=1;

for(counter=num;counter>1;counter--) // start of for-loop.{factorial*=counter; // it means factorial= (factorial*counter).} // end of for-loop.

printf("\n\t Factorial of %ld = %ld ",num,factorial);getch();} // end of body of main function.

5-Output of the above practicalFactorial of 6 = 720

Part-2 Databases

Practical No.1 to 7Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 11

Page 12: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

ObjectProcedureOutput

میں- سب ان یعنی ھونگے سے طرح اسی پریکٹیکل تمام کے تمام کے بیس ڈیٹا

) اوبجیکٹ) ،مقصدکا حصول کے (مقصد پروسیجر ) کار طریقہ

پٹ) ( آاؤٹ نتیجہ

ھونگے۔ موجود سب کے سب - ) ( - تمام کے بیس ڈیٹا میں روشنی کی جس ھے۔ موجود سیمپل نمونہ کا پریٹیکل بیس ڈیٹا ایک نیچے

ھیں۔ جاسکتے کیئے مکمل پریکٹیکل

Procedure in English Language کار طریقہ میں اردوزبانAssalam alykum, following procedure is for creating a database “MakgPractical” with the help of Mouse and Keyboard.

بیس یٹا ڈ طریقہ ذیل درجہ علیکم جی" فائل السلام کے اے ایم ھے۔ پریٹیکل" سے حوالے کے بنانے سے بورڈ کئ اور کوماؤس

بنانا بیس :ڈیٹا

Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 12

Page 13: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

Creating Database:1-Switch on your computer. Wait till the operation system “Windows” let you give access to interact with the computer.

2-With the help of mouse click “Start” Icon, generally present at bottom left side of the computer screen۔3-Use Mouse click “Search Bar”, type “Microsoft Office Access” in it with the help of computer keyboard to search and open MS-Access.

4-Point Mouse Cursor to Blank Database, it will be highlighted, then click it with mouse.

5- New panel at right hand side will be open, point your mouse cursor to the file name location, type new name “MakgPractical” there, then click “Create” button. Creating & Renaming Table:6-Another big new panel at right hand side will be open, point your mouse cursor to “Table1:Table” icon, it will be highlighted, then right click it, with the mouse. A “drop-down menu” will be open, click second option “ Design View” from it.7- Now “Save As” panel will be open, give new name “MakgTable1” in the text box to Save “Table1” as “MakgTable1”, then press “ok” Button.8-Type in the “Field Name” text value “MakgID”.

9- Use mouse to point the cell below “Data Type”, select there “Auto Number” from the available combo box option list.10- Use mouse to point the next cell present under “Description” heading, type the description whatever you want to write for your future reference or let it remain empty.

کھولیں۔ -1 بٹن کا کے کمپیوٹر تک یہاں کریں "انتطار اوپریٹنگ ونڈوز" کردے۔ فراہم موقعہ کا استعمال کے کمپیوٹر آاپکو سسٹم

جانب -2 بائیں نیچے موجود پر اسکرین کی کمپیوٹر " پھر کےاسٹارٹ" کریں۔ کلک سے کوماؤس آائکون

سے -3 مدد کی "ماؤس بار" اس سرچ سے بورڈ کئ پھر کریں کلک کو " بار" میں سرچ زبان انگریزی میں

" آفسایکسس" اس مائکروسافٹ کرکے ٹائپ تو جائے مل جب کریں تلاش ویئرکو ٖاافٹ سے س مدد کی کر ماؤس کلک

کھولیں۔ کےتو -4 جائے ویئرکھل سافٹ کو جب کرسر سے ڈ " ماؤس بلینک

" بیس تو یٹا جائے ھو نمایاں وہ جب جائیں۔ کر لے ماؤس پر سے مدد کریں کی کل$ک -

5- ) ( بیس ڈیٹا پر وباں گا۔ جائے کھل پینل نیا ایک طرف سیدھی دائیں ابمیں انگریزی نام نیا کا "فائل پریکٹیکل" جی کے اے کردیں۔ ایم ٹائپ

"پھر کریں۔ کریئٹ" کلک بٹن کا

دینا بناناوراسکونام :ٹیبل(۔ 6 ( / الٹی بائیں کے پینل گا۔اس جائے کھل پینل حصہ بڑا نیا ایک اب

ھو "1ٹیبل"جانب نمایاں وہ جب جائیں لے کرسر پر آائکون کے اور ایک وہاں کریں۔ کلک "جائےتواسکورائٹ مینیوں ڈراپڈاؤن"

اں و گا جائ ہکھل ۔ "ے ویو" ۔ ڈیزائن کریں کلک کو

7 " ۔اب پر سیوایز" وباں گا۔ جائے کھل نام ""1ٹیبل"پینل نیا ایم کو ٹیبل جی کے پھر " 1اے چاہیں۔ اگر دیں "دے کلک اوکے" بٹن کا

کردیں۔

"اب -8 نیم" میں فیلڈ خان ہک ""ے ڈی آائی جی کے اے ایم کریں۔ ٹائپ

بعد -9 "اسکے ٹائپ" نیچے ڈیٹا کے خانے "کے بوکس" کو کمبو اور کریں "کلک کردیں۔ اوٹونمبر" کلک سے میں لسٹ دستیاب کو

"پھر -10 ، ڈسکرپشن " آپ میں خانہ کے رہنمائی کی خود ﷽آپکی

کو خانہ اس ورنہ کردیں ٹائپ سمجھیں مناسب جو کیلئےچھوڑدیں۔ خالی

تینوں -11 ان "اب ڈیٹاٹائپاورڈسکرپشن" کے فییلڈنیم، ز فیلڈ کی باقی میں ایڈریس،فون،ڈیٹ " خانوں نیم،

" مارکس برتھ، طریقہ آف کے اوپر بھی سے 8پوائنٹ کیلئے

Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 13

Page 14: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

11- Repeat above steps till all the fields with data types and description are properly typed into the corresponding cell of Database Design Window. Always use “Text” data type for fields like [Name, Address, Contact, Email etc.], “AutoNumber” for automatic assignment of numbers. “Numeric” for fields on which calculation are performed, “Currency” for fields like [wages,salary], “Date” for fields which are supposed to store dates, “Hyperlink” for fields holding [websites / urls etc.], “OLE Object” for picture, photographs, “Yes/No” for status showing field, “Attachment” for external files, “Memo” for descriptive fields.”Lookup Wizard” for foreign fields from other tables of the database.12- Assign Primary key to the suitable field i.e “MakgID” which can be capable of identifying each record uniquely. If it is already assigned than no need to re-assign it.13-Save the Table 1s again to update changes.

14- If there is a need of creating more tables then follow from the above step 6 to step 13. Continue until all desired tables will be created.

Entering Records: 15-Now double click “MakgTable1” table to open it. Enter valid data into it. Use mouse to toggle b/w the fields of each record. Continue adding the record until you complete entering desired records. After it close & finish record entry.

16- Follow step no.15 to enter the records in other tables.

Queries Design17-With the help of mouse click “Create”, then point and left click “Query Design”.

18- “Show table” panel will be open,

کے 10پوائنٹ رھے خیال لیکن کرلیں۔ مکمل انٹری ھوئے دیکھتے کو تک " ٹائپ" " ڈیٹا نیم" ایڈریس، فیلڈ ، نام جیسے ھو۔ رکھتی مطابقت سے

" ۔ " ٹیکسٹ کیلئے وغیرہ کیلئے فون ان ھو کرنا کتاب حساب پر جن " / کرنسی" کیلئے نمبر متعلقہ سے تاریخ "۔ عدد ڈیٹ" کار خود ۔

"کیلئے کیلئے اوٹونمبر" لنک کے سائٹ ویب "- ۔ تصویرھائپرلنک" "کیلئے اوبجکٹ" ایی / اوایل کیلئے- نہیں "ہاں / نو" ۔یس

کیلئے فائل "بیرونی کیلئے اٹیچمنٹ" ڈسکپشن لمبے "اور ۔میمو"

"تمام -12 "ڈیٹاڈیفینیشن" اب بعد کے کرلینے کے مکمل اے ایم " ڈی ائی "کو جی - کی" سے پرائمری پہلے اگریہ بنادیں۔

" - کی" ضرروت پرائمری کی بنانے سے دوبارہ کو تواسی ھو ھوئی بنی نہیں۔

کو -13 ٹیبل اس بعد "اسکے / محفوظ" کرلیں۔ سیو

14- " کردہ " بیان اوپر کیلئے بنانے کو ٹیبل توھر ھو بنانا ٹیبل مزید اگر اببنانے ( ٹیبل ( پوائنٹس نکات دوہرائیں۔ 13سے 6ےک تک

بار اتنی گے بنے ٹیبل جتنے جائیں 13سے 6 یعنی رائیں دو نکات ہتک گے۔

کرنا اندراج کا :ریکارڈزٹیبل اب " -15 جی کے اے کریں " 1ایم کل$ک کوڈبل اورمطلوبہ

ک ٹیبل کرکے مکمل اینٹری کی "ریکارڈز / بند" کلوز و ۔کردیں

کیلئے -16 اندراج کے ریکارڈز میں ان تو ھوں ٹیبلز مزید اگر طرح اسینمبر نقطہ جائے 15بھی دوہرایہ بار ھی گا۔ اتنی

ڈیزائن :کیوئریبارسے -17 ٹول کے اوپر سے مدد کی "ماؤس کو کریئٹ"

پھر کریں۔ "کلک یزائن" ڈ کریں۔ کیوئری کلک کو

"اب -18 پینل" ٹیبل وباں شو گا۔ جائے کھل " جیسے "ٹیبل" ٹیبل مطلوبہ پھر ۔ کریں کلک کو اے ٹیب ایم

ٹیبل جی ( " 1کے ( ھوجائے۔ شامل ایڈ ٹیبل تاکہ کریں کلک ڈبل کو ھوں کرنا ٹیبلزشامل جو جو تو ھو کرنا شامل ٹیبل زیادہ سے ایک اگر

پھر تو چکیں ھو شامل ٹیبلز مطلوبہ جب کریں کلک پر "ان کراس" کردیں۔ بند کو پینل کرکے کلک کو بٹن

Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 14

Page 15: WORD EXCEL PRACTICAL - mastermohsin.commastermohsin.com/XII/Docs/XIIPracticalGuidelineUE.docx · Web viewXII (Practical Guideline 2019) C-Language & Database (Access) Mohsin Ahmed

XII (Practical Guideline 2019) www.MasterMohsin.com C-Language & Database (Access)

select ” Table” tab from “Table/Query/Both”. Point and double left click the desired tables from available list of tables, to add these tables then left click “cross/close” present on top-right hand side of the panel, to close it.

19- Select field name from the available list of combo-box, which you want to display or manipulate. Table name of that particular field will automatically be added after your selection of field. Mention the criteria if you want. Uncheck the” CheckBox” if you don’t want to display this field.20- Do repeat above step number 19 for each and every field, you want more to display or manipulate until you complete all desired field entries 21- Left click the “Cross/Close” button to close the Query Panel, left click “Yes” Button to save the Query1 with the new name “MohsinGhoriQuery1”, again left click “Ok” Button. You can save query with your desired name as well.22- Repeat from above step number 17 to 21 for Creating other queries, just remove the contents of criteria cell, as per your requirement i.e. remove the contents of first field “MakgID” and enter the contents “Federal-B Area” in the criteria cell of “Address” field.

Obtaining Query Results:23-Double click any query to display its result, if there is a need of passing any value then just type-in the value you want to pass into the panel that appears before you.

میں -19 خانہ کے فیلڈ "اب موجود کمبوبوکس" میں کا ٹیبل کریں۔ انتخاب کا فیلڈ مطلوبہ اپنی کیلئے ڈسپلے سے لسٹ

شرائط میں کرائٹیریہ پھر گا۔ آاجائے میں خانے کے ٹیبل بخود خود نامتو ھو کرنا نہیں ڈسپلے کو فیلڈ اس اگر چیک"لکھیں۔

کردیں۔ بوکس " چیک ان کو

نقطہ -20 بار 19یہی مطابق کے طلب اپنی کو عمل کردہ بیان میں جائے۔ ھو اندراج کا فیلڈز مطلوبہ کےتمام تک یہاں رھیں۔ کرتے بار

پھر -21 کرکے کلک کو بٹن کراس " اب کلک یس" کو بٹن نام " نیا کو کیوئری غوری کرکے کر" 1کیوئریمحسن دے

کے" " کردیں۔ او کلک بٹن

22 کرناھوتواوپر ۔ یزائن ڈ کو کیوئری نئی اگرمزید ڈ" اب کیوئری اپنی یزائن" دھرائیں۔ کو عمل کے تک یہاں لیکر سے سرخی شے

کیوئریز جتنی اور کرلیں۔ تبدیل کو کرائٹیریہ مطابق کے شرائط مطلوبہبنائیں۔ ھے بنانا

کرنا حاصل نتائج س ےکیوئری :کرکے -23 پوئنٹ کو کرسر پر اس ھو چلانا بھی کو کیوئری جس اب

جو تو ھو کرنا ویلیوپاس کوئی کو کیوئری اس اگر کردیں۔ کلک ڈبل / کرکے ٹائپ ویلیو وہ میں اس کھلےگا نیاپینل ونڈو " نئی بٹناوکے"

کردیں۔ کلک

Mohsin Ahmed Khan Ghori (Lecturer), www.MasterMohsin.com Page 15