Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
40 views
16 pages
C Language Assignment
Uploaded by
ADITI NEGI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save C Language Assignment For Later
Download
Save
Save C Language Assignment For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
40 views
16 pages
C Language Assignment
Uploaded by
ADITI NEGI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save C Language Assignment For Later
Carousel Previous
Carousel Next
Download
Save
Save C Language Assignment For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 16
Search
Fullscreen
Assignmerct-) D whok one the Various Flowchart cyibolla? Explor With dolguem. Diow aabloachaad 1e, tnbus Howe monks, Hen Compute and cuAsbsoy He Percentage? Ang: Flowthart Symbols Can Ahow Ye blow ond Logic \pekween {otas and Concebts. ane Used tn walling 1 Some in fount and Some In advertising. Bosic Elowthart S symbols: \. The oval % fhe oval ot Pill Shope vreprusent the Stent lend, aes The Oval ot PU Ahape the_R Shape s- the Rectorgle Shabe the Rectangle Shope (4 Neprecsent & Process. (cs & engl ¢ Ahape - forall - A. fan elogtam Shape ‘- farallelossam Ahabe rep the Prput/outbt 4 Hy ‘uber ae, fi anal elo an Noa \P4. Diamand Shape'- Diamond Ahope ne pnesenks a decision. fo / Diamond Shope SF Ayrow shobes- Agnew Shebe supnesents a plow ob Hae Sequence. aoe tase Ane WwW ShapeGenenat Pnocedure %-().wWoute a Valid od gosuithm, ©. Use appropriate Symbols bet each Step ob Your al gosuthm, : @ Remember, every Aowchant betgs with a Start Sends with a Stop, O Adtee Completing the Visi, eran Finally Construction 6b hflowehost the above Steps, check & test ft with Some Qe , gourr Fowchark will be cee 82 What one the bitwise operatons? Explain how thwise openotos one difberrt rom othen oberoton? Explain witha Preben example to ue trade, Hne weirting ob oll We bitwise apencdons? Ans Bitwise gperotons 2 In Ci the folowing 6 op ehaikes on bitwise openatans. A» Qlbthwise AND) Tn Coe cH fakes two number ob opiands and does AVD en Quay bit 0b two numben then sesult of AMD rsd only 4 both tts oned. oA J Cbftue oR) & Ty Cm Ctt taker Lwo number oA opetonds and does oR & every bit 66 +wo number, the nesult ob RA 4 Oh any sb the two bits fad, 3. AUothwise XO) Tn cot cH takes tug numbers a ie operands and cloes Yor en every bit ob two number. the mesilt a4 vor Ps 4 3 Phe wo bits ore olifferenk, We ? U5 nedwin 05 3 outbut— O=5,b=9 a& bal olb=\3 a*%b= 2 was -6 b int main) Dong tnt decMam , sem 910; Tne Jel, t,4emb 5 han hixadecNumnlloo]; pyunkfl "Enter any deuimal number +o Convert seont ("éa" § decNum); ft to hexadecimal Mm; ")3 uae decNurns whihe (qyu0!=0) i fem = yuo % 165 44 (temp rat main () t bscivath ("xd \n" ole); point (“Zo\n", ole); punkh C1 o\n", 8); net wn 05 5 wtput ;- outbul | Jo Jo F G4 s- hak ane teb- down and bottam— ob dean a Sutin in Programming 2 4 Pinas. the Tof-Down Approach’- tn the top - down abbsieac = i a Combhex ol g.osuith m a bnoken down into Smaller f sogiments ellen Krows ot ‘modules’. These madules ae then twwh exbroken down rnto Smaller Frigg manks Unk they fan Do Lon, en be. bora, ments, Advantages*-+farh module of Code ts tobe Headed Separately. , Bovating a Problem down fnto Smaller Chunks makes H box %eouion to Understand, Aolve anol manage. “Teatig and dlebugging ane efticient and Casien, Drawbacks:- *Shectication fends to change Over Aime eae eae th. a top-down oppsioach, al decision Mode from the beigtnning 66 the Prroset olepend dined, t Prd inectt 7 : dn namic Poeogramrntng We top-down abbnoach [A Slow as Compared to” the bottom - uP abpnoach, of it Prvolves necursion, Battom -UP AppSioach = Contrary to the tob- down obboroach ; bottom - up Porog4a mening focus ex on od 2 algosuithn by beginning at the Very basic Level ond building UP os PF jou Adlentase:- + Tit Conditone ane easier fo Coeale, *obsewvalton of test nests % eouser, * Contains Less grtedundanc due to the Presence 06 He clata encapsulation and olata- hasreling, . Res obrLity of the Cocle. Daubacks*- + Tn the Bottom - up abbroach, we Salve i all Sob- Problima, which sreeytures crdlolitid. nal Colewations, "In the Bottom— uP Opp roach, Something Ph Pack: Cult fo jolente4y the ovenal/ Functionality ot the Systm tn He Pnebeat Stages.he é Tat - down Abbsoach Botlorn UP Abperoach gsr what ane the Kewonds inc? List the nules fox naming a Vasiable in c? Ans’ Key woods ahe wWohds thet have spewed ame = 1% Complies. In trandtahon Phos Band & an jolenkifier Cont have the Same Apelliig and Cases 04 C Keyword. Ex Codes $pinuuding
fot man) t St bet, C2185 char at='T 5 brinth (hora en Value 2 %cln", ot )3 lopdtbl’ Titeg et Vedue 2 ped\t xd\n"6,0)% netusn 0; 3Sus bus t- Chanacten Value % 7 Integer Value. It 18 Rules * “1A Vaniable Con have alphabets, cligits ond Under score. Variable name Con Start with ty atbhebet : ae UnderAcore only. Jt Conle Start with a digit. tee "5 allowed within the Vasuabse aw Vesiable name must not be ony gusenved word 6 Keyword. Bee Explain the difheunt Kinds ot Loos averilabs inc with exambles? Anse Loobing Statement In © execule, the Seanad SF op Chakemenks many Limes unt te Condi ton \becomes fake. A had en c Comat, two . | a bedy ao boob and Cantyiol Stotement. jwhitle Loob fn C1 A while Locp Px the most ee forward Looping Structures while Joop Cynon we Propramnmirg Pohgoont ty os follows? Sywkax t- whihe hs Condition) i Soke anks 5 i oO Exe FoLowtiy Program fllustnates while Loop Pn c Progeomming example. Hnclude Hiindode Hindle int mon O) lat numbers For (number n-1} number 1-104 number +4) [- Jo numbers i prcintd ("soal|n", number); 5 Juturn os 5 o ut | PD HO BR gy po EL ° 84+ Eyploin goto, brok and Coritinue Stote ments Pr Cc. WAP to Pyuint Table eb a Numbex Using Joto Statemunts. Ses fut Geka In ¢ Peyton, baat i Stofemunt fs Used With Condit -onal 3b Stotemunts, \DContinue Statement s- Jt 1% Sometimes desinabhe a to Skip Some Statements Paste Sie: deeki Le Such: Casa» .Covtioue . Stademehb: 3A Used. (roto Statement t- Inc Pac grammerg , goto State mew ts Ps Used bog cul tering the vesgumet sevens vf Poo yeam execution by thamfomrg Control te Some athen bart of the Psosiom. Ex* Progtam- Hfnclude # Includes Cowo. h> Void mainl ) ' nt J2V Chasen 5 Count; ai prints (Xan i)5 v/ dts 3h Li
You might also like
Programming Full Text Book
PDF
100% (2)
Programming Full Text Book
256 pages
C Language Notes-1
PDF
No ratings yet
C Language Notes-1
41 pages
Programming Keys
PDF
No ratings yet
Programming Keys
20 pages
PPS imp (1)
PDF
No ratings yet
PPS imp (1)
23 pages
Java Notes
PDF
No ratings yet
Java Notes
37 pages
Pps Record
PDF
No ratings yet
Pps Record
106 pages
C Programming
PDF
No ratings yet
C Programming
42 pages
C Programming Notes Part 1
PDF
No ratings yet
C Programming Notes Part 1
24 pages
New C BALU
PDF
No ratings yet
New C BALU
214 pages
C 1
PDF
No ratings yet
C 1
24 pages
C Program Notes
PDF
No ratings yet
C Program Notes
137 pages
Pps Mid Important Questions
PDF
No ratings yet
Pps Mid Important Questions
42 pages
Oodp Unit 1
PDF
No ratings yet
Oodp Unit 1
38 pages
Assignment
PDF
No ratings yet
Assignment
33 pages
C Language Notes
PDF
No ratings yet
C Language Notes
97 pages
C Programming Language
PDF
No ratings yet
C Programming Language
55 pages
Assignment 1 .pdf
PDF
No ratings yet
Assignment 1 .pdf
9 pages
C&Matlab Primer
PDF
No ratings yet
C&Matlab Primer
412 pages
Learn BASIC PDF
PDF
No ratings yet
Learn BASIC PDF
218 pages
CPS125 - Course Guide
PDF
No ratings yet
CPS125 - Course Guide
60 pages
1fp2023
PDF
No ratings yet
1fp2023
68 pages
Module 1
PDF
No ratings yet
Module 1
54 pages
UNIT-1_PSTC
PDF
No ratings yet
UNIT-1_PSTC
25 pages
Pps Practical
PDF
No ratings yet
Pps Practical
20 pages
C Programming PDF
PDF
No ratings yet
C Programming PDF
119 pages
C Programming and Data Structures Notes Sample Compressed
PDF
No ratings yet
C Programming and Data Structures Notes Sample Compressed
8 pages
C Programming and Data Structures Notes Sample Compressed
PDF
No ratings yet
C Programming and Data Structures Notes Sample Compressed
8 pages
Algorithm SC 2006
PDF
No ratings yet
Algorithm SC 2006
138 pages
Computer Programming 2024-2025
PDF
No ratings yet
Computer Programming 2024-2025
98 pages
Algo Notes S4
PDF
No ratings yet
Algo Notes S4
44 pages
New ?
PDF
No ratings yet
New ?
25 pages
DOC-20240919-WA0037. (1)
PDF
No ratings yet
DOC-20240919-WA0037. (1)
71 pages
Pds Practice Questions (2)
PDF
No ratings yet
Pds Practice Questions (2)
158 pages
An Introduction To Programming HP Graphing Calculators: Second Edition
PDF
No ratings yet
An Introduction To Programming HP Graphing Calculators: Second Edition
39 pages
Chemistry
PDF
No ratings yet
Chemistry
16 pages
Programming For Problem Solving Using C and C RBU
PDF
No ratings yet
Programming For Problem Solving Using C and C RBU
69 pages
Module 2 - Complete
PDF
No ratings yet
Module 2 - Complete
10 pages
Algorithm & Flowchart - Rudiments of Computer Science (XI)
PDF
No ratings yet
Algorithm & Flowchart - Rudiments of Computer Science (XI)
12 pages
CP by Triz
PDF
No ratings yet
CP by Triz
68 pages
Pages 1
PDF
No ratings yet
Pages 1
11 pages
Lab Manual PSP
PDF
No ratings yet
Lab Manual PSP
60 pages
Week 2-6
PDF
No ratings yet
Week 2-6
44 pages
Chapter 2 Ds
PDF
No ratings yet
Chapter 2 Ds
26 pages
all unit
PDF
No ratings yet
all unit
7 pages
1696675027246
PDF
No ratings yet
1696675027246
77 pages
c programing 1st unit introduction to programming
PDF
No ratings yet
c programing 1st unit introduction to programming
11 pages
Pds Practice Questions
PDF
No ratings yet
Pds Practice Questions
190 pages
Bhavya 4th February 2023 Notes
PDF
No ratings yet
Bhavya 4th February 2023 Notes
16 pages
Programming Fundamentals
PDF
No ratings yet
Programming Fundamentals
169 pages
Learning Python
PDF
100% (3)
Learning Python
210 pages
Mic Manual 14
PDF
No ratings yet
Mic Manual 14
9 pages
1. Flow Chart
PDF
No ratings yet
1. Flow Chart
12 pages
Introduction To Computer Science in C Sharp Release 2
PDF
No ratings yet
Introduction To Computer Science in C Sharp Release 2
252 pages
LP Assignment
PDF
No ratings yet
LP Assignment
10 pages
Afcat Half Mock
PDF
No ratings yet
Afcat Half Mock
40 pages
P&L&D
PDF
No ratings yet
P&L&D
20 pages
2nd Last Maths Sheet (Level - Basic)
PDF
No ratings yet
2nd Last Maths Sheet (Level - Basic)
20 pages
Top 100 CA Afcat & Cds Revision - 21 - 8
PDF
No ratings yet
Top 100 CA Afcat & Cds Revision - 21 - 8
16 pages
Aditis CDS2023
PDF
No ratings yet
Aditis CDS2023
2 pages
Reschedule of Timings For Academic Activities
PDF
No ratings yet
Reschedule of Timings For Academic Activities
9 pages
?2nd Last Sheet Solution ?
PDF
No ratings yet
?2nd Last Sheet Solution ?
6 pages
Afcat Half Mock?
PDF
No ratings yet
Afcat Half Mock?
19 pages
Abhijeet MCA Section A Roll 01
PDF
No ratings yet
Abhijeet MCA Section A Roll 01
48 pages
TMC-101/TMI-101: M. C. A./M. SC. (IT) (First Semester) MID Semester Examination, Nov., 2021
PDF
No ratings yet
TMC-101/TMI-101: M. C. A./M. SC. (IT) (First Semester) MID Semester Examination, Nov., 2021
15 pages
MA2208HAL439AAA0044
PDF
No ratings yet
MA2208HAL439AAA0044
5 pages
Term Work JAVA
PDF
No ratings yet
Term Work JAVA
50 pages
GUNNUBETE
PDF
No ratings yet
GUNNUBETE
41 pages
R Exporting Data From R 27-3-2020 (Part 2)
PDF
No ratings yet
R Exporting Data From R 27-3-2020 (Part 2)
9 pages
Database ADII
PDF
No ratings yet
Database ADII
32 pages
TMC 306
PDF
No ratings yet
TMC 306
2 pages
Anshuman Synopsiiss
PDF
No ratings yet
Anshuman Synopsiiss
11 pages
Research Paper
PDF
No ratings yet
Research Paper
8 pages
TMC 304
PDF
No ratings yet
TMC 304
2 pages
Aditi Java
PDF
No ratings yet
Aditi Java
50 pages
Project Synopsis Format
PDF
No ratings yet
Project Synopsis Format
16 pages
Indexes Ssssss Sssssssss Sssssssss
PDF
No ratings yet
Indexes Ssssss Sssssssss Sssssssss
2 pages
Anshuman Afcat 2023
PDF
No ratings yet
Anshuman Afcat 2023
3 pages
Aditi Negi
PDF
No ratings yet
Aditi Negi
1 page
Ds
PDF
No ratings yet
Ds
34 pages