This document contains a manual for programming fundamentals labs using the C language. It includes 15 chapters covering basic C concepts like variables, operators, conditional and loop structures, functions, arrays, pointers, file handling and graphics. Each chapter contains multiple programs as examples to demonstrate the relevant concepts. The programs cover a wide range of examples from simple "Hello World" to more complex concepts like file handling, structures and graphics.
Call pilot call center setup and operationkyawzay htet
This document provides instructions for setting up and operating a Nortel Networks call center using their Call Center and CallPilot software. It describes the different call center features, how to add agents and set up skillsets to route calls. The document also covers setting up and managing skillset mailboxes to handle calls not answered by agents.
DotNet & Sql Server Interview QuestionsNeeraj Kaushik
This document contains a table of contents listing 50 important topics for .NET interviews. The topics covered include what CLR does, common type system, common language specification, boxing and unboxing, variables, jump statements, nullable types, strings, indexers, iterators, secure strings, enumerated types, interfaces, app domains, threading, data assignment differences between value and reference types, cloning, assemblies, events vs delegates, object size, disposal patterns, data readers vs datasets, temporary tables, impersonation, and client-side form validation. The document provides a high-level overview of concepts that may be discussed during .NET interviews.
This document provides an overview and reference for the Yahoo! Web Analytics API. It describes the supported entities that can be accessed via the API, such as accounts, projects, campaigns, and reports. It also outlines the main operations that can be performed, including initializing a session with the login call, retrieving and updating account information, scheduling and accessing reports, and reconciliation features. The document provides details on the SOAP and XML-RPC implementations and includes examples of API calls and responses.
This document is Steven Edward Atkin's dissertation submitted to Florida Institute of Technology in partial fulfillment of the requirements for a Doctor of Philosophy in Computer Science. The dissertation proposes a new multi-layered architecture called Metacode for multilingual information processing. It analyzes existing character encoding schemes and algorithms like bidirectional reordering and character normalization, and argues they lack a coherent architectural framework. The dissertation then introduces abstractions and mechanisms to organize these elements into the Metacode architecture.
This document provides instructions for configuring AudioCodes session border controllers to connect to Microsoft Teams using Direct Routing. It describes prerequisites, configuring network interfaces, TLS certificates, media realms, SIP signaling interfaces, proxy sets, routing rules and more. The configuration is validated by making a test call. Syntax requirements for SIP messages are also outlined.
Coldwell Banker Elite Agents use MXIE phone system to handle their business and keep them in the loop. Here is a user manual for those agents to ensure they are getting the most out of this tool.
This document is an introduction to cybersecurity titled "Information Security Handbook for Network Beginners" published by Japan's National Center of Incident Readiness and Strategy for Cybersecurity (NISC). It aims to help beginners understand cyber attacks and provide basic steps to strengthen security. The handbook covers topics like common types of attacks, attackers and malware, examples of attacks, and social engineering. It also provides guidance on maintaining security through keeping systems updated, using strong passwords, making intrusions difficult and time-consuming, and protecting against social engineering. The handbook is meant to simplify complex topics for easier understanding while encouraging further reading on cybersecurity.
The document provides a complete description of the functionality in the emergency response system called INCASEIT. Some key points:
- INCASEIT allows organizations to create and store emergency response plans, coordinate response efforts, communicate with response team members, and log all activities during an emergency situation.
- It provides alerting functionality via SMS, text-to-speech voice calls, and email. Users can access the system through a web interface.
- The system guides users through the emergency response process, including starting a new emergency, selecting roles, communicating tasks, tracking issues and involved persons, and ultimately archiving an incident when complete.
- It also supports training exercises, messaging, media response, and custom
Call pilot call center setup and operationkyawzay htet
This document provides instructions for setting up and operating a Nortel Networks call center using their Call Center and CallPilot software. It describes the different call center features, how to add agents and set up skillsets to route calls. The document also covers setting up and managing skillset mailboxes to handle calls not answered by agents.
DotNet & Sql Server Interview QuestionsNeeraj Kaushik
This document contains a table of contents listing 50 important topics for .NET interviews. The topics covered include what CLR does, common type system, common language specification, boxing and unboxing, variables, jump statements, nullable types, strings, indexers, iterators, secure strings, enumerated types, interfaces, app domains, threading, data assignment differences between value and reference types, cloning, assemblies, events vs delegates, object size, disposal patterns, data readers vs datasets, temporary tables, impersonation, and client-side form validation. The document provides a high-level overview of concepts that may be discussed during .NET interviews.
This document provides an overview and reference for the Yahoo! Web Analytics API. It describes the supported entities that can be accessed via the API, such as accounts, projects, campaigns, and reports. It also outlines the main operations that can be performed, including initializing a session with the login call, retrieving and updating account information, scheduling and accessing reports, and reconciliation features. The document provides details on the SOAP and XML-RPC implementations and includes examples of API calls and responses.
This document is Steven Edward Atkin's dissertation submitted to Florida Institute of Technology in partial fulfillment of the requirements for a Doctor of Philosophy in Computer Science. The dissertation proposes a new multi-layered architecture called Metacode for multilingual information processing. It analyzes existing character encoding schemes and algorithms like bidirectional reordering and character normalization, and argues they lack a coherent architectural framework. The dissertation then introduces abstractions and mechanisms to organize these elements into the Metacode architecture.
This document provides instructions for configuring AudioCodes session border controllers to connect to Microsoft Teams using Direct Routing. It describes prerequisites, configuring network interfaces, TLS certificates, media realms, SIP signaling interfaces, proxy sets, routing rules and more. The configuration is validated by making a test call. Syntax requirements for SIP messages are also outlined.
Coldwell Banker Elite Agents use MXIE phone system to handle their business and keep them in the loop. Here is a user manual for those agents to ensure they are getting the most out of this tool.
This document is an introduction to cybersecurity titled "Information Security Handbook for Network Beginners" published by Japan's National Center of Incident Readiness and Strategy for Cybersecurity (NISC). It aims to help beginners understand cyber attacks and provide basic steps to strengthen security. The handbook covers topics like common types of attacks, attackers and malware, examples of attacks, and social engineering. It also provides guidance on maintaining security through keeping systems updated, using strong passwords, making intrusions difficult and time-consuming, and protecting against social engineering. The handbook is meant to simplify complex topics for easier understanding while encouraging further reading on cybersecurity.
The document provides a complete description of the functionality in the emergency response system called INCASEIT. Some key points:
- INCASEIT allows organizations to create and store emergency response plans, coordinate response efforts, communicate with response team members, and log all activities during an emergency situation.
- It provides alerting functionality via SMS, text-to-speech voice calls, and email. Users can access the system through a web interface.
- The system guides users through the emergency response process, including starting a new emergency, selecting roles, communicating tasks, tracking issues and involved persons, and ultimately archiving an incident when complete.
- It also supports training exercises, messaging, media response, and custom
This document discusses the Greasemonkey scripting tool. It covers getting started with Greasemonkey, creating a basic "Hello World" script, debugging scripts, common scripting patterns, case studies of existing scripts, and advanced topics. The chapters discuss installing and managing Greasemonkey and scripts, adding metadata to scripts, coding and editing scripts, debugging with the JavaScript console, DOM inspector, and other tools, executing scripts on domains and subdomains, testing for elements and attributes, inserting/removing content, styling elements, and more.
This document provides an administrator's guide for webMethods Broker version 8.2. It begins with title and copyright information and a table of contents. The document then covers topics including an overview of the Broker, its architecture and components, using My webMethods to administer Broker, and configuring the Broker Monitor.
지브라 iMZ320 모바일 프린터는 경량의 초소형 디자인으로 필요할 때 언제든 영수증과 청구서를 인쇄할 수 있어 업무 처리가 간소화하는 바코드프린터 입니다.
지브라 iMZ320 모바일 프린터는 스마트폰 또는 태블릿PC (애플 iOS, 안드로이드, Windows® Mobile 및 BlackBerry®) 플랫폼에 블루투스 연결을 지원합니다.
A Sidekick That Won't Weigh You Down
At ¾ of a pound (0.34 kg) or less, these lightweight printers can be worn a full shift without any burden or bother
Comfortably wear the printer via belt clip or shoulder strap for unobtrusive and convenient printing
Simple to Operate
Single push-button media access for simple reloading
Intuitive LEDs indicate on/off, error, and connectivity status
Economical Alternative
A simple, reliable and affordable printer alternative
Each iMZ printer comes standard with USB and Bluetooth connectivity, allowing you to communicate with mobile devices running on iOS, Windows® Mobile, Android and BlackBerry operating systems
Palm-Sized Printing Power
High-speed processor and extensive memory for printing complex barcodes, fonts and graphics
iMZ printers now come with an 802.11n option with dual-band support (2.4 GHz?802.11b/g/n and 5 GHz-802.11a/n) for those overcrowded wireless networks in retail environments where business operations need communication at the less-crowded 5 GHz band
Secure Bluetooth 2.0, 802.11a/b/g/n (optional) or USB (client) connectivity, Wi-Fi® and Cisco® CCX V4 ASD-certified
STANDARD FEATURES
Direct thermal printing of barcodes, text and graphics
203 dpi/8 dots per mm resolution
Print speed: Up to 4"/102 mm per second
CPCL and ZPL® programming languages
Resident fixed and scalable fonts
400MHz 32-bit ARM® processor with 128 MB RAM memory
128 MB Flash memory supports downloadable programs, receipt formats, fonts, and graphics
USB port
1.6Ahr Li-Ion battery
Built-in battery charger
Optical out-of-media sensing using fixed center-position sensor
Tear bar for easy receipt dispensing
Supports vertical and horizontal printing
Printer can be used in any orientation
Fixed media-roll width
Clamshell design for easy media loading
Printer Management: Mirror, SNMP, Web server (with customizable HTML pages), Wavelink Avalanche® [Future firmware update]
Four LEDs as user interface indicators
4'/1.2 m drop to concrete (multiple times)
Label odometer
Bluetooth 2.1
Security modes 1?4
Bluetooth printing from Apple devices (iOS5, iOS6)
IP42-rated for dust and water resistance (IP54 with durability-enhancing case)
Print Touch via NFC?One touch to pair and print via Bluetooth
PRINTER SPECIFICATIONS
Resolution : 203 dpi/8 dots per mm
Memory : 128 MB RAM; 128 MB Flash (standard)
Print width : 2.9"/73.7 mm
Print length : Maximum: Continuous
Print speed : Up to 4"/102 mm per second
Physical Characteristics
Width : 4.11"/104.4 mm
Height : 5.34"/135.6 mm
Depth : 2.26"/57.4 mm
Weight : 0.75 lbs/0.34 kg with battery with battery
>하이온아이티
주소 : 서울 금천구 가산디지털2로 165, 1304호 (백상스타타워2차)
대표번호 : 02-2038-0018 / 이메일 : hion@hionit.com
홈페이지 : http://hionsmart.com/
The document is a user guide for a ZTE Axon M phone. It provides instructions on basic phone set up and use, including installing SIM and memory cards, charging the battery, powering on/off, locking and unlocking the screen, using the touchscreen, understanding key functions, personalizing settings like ringtones and wallpapers, connecting to networks and devices via WiFi, Bluetooth, NFC, and USB. It also covers making phone calls, managing contacts, setting up email accounts, sending messages, and adjusting additional settings. The guide contains detailed explanations and steps for new users to get started with the essential functions of the phone.
This document provides a guide for administering the CallPilot telephone system. It discusses:
- CallPilot features like voicemail, auto attendant, and custom call routing.
- Setting up mailboxes, greetings, and the auto attendant.
- Configuring options like call routing, class of service, and line answering.
- Procedures for adding, changing, and deleting system components.
The guide aims to help administrators effectively set up and manage the CallPilot telephone system.
ZW3D2012 provides a new ribbon interface for an improved user experience. It offers faster graphics that are 2-3 times quicker. Data exchange has been enhanced with native STEP and SAT support. Direct editing has been upgraded for more reliable modeling. Frequently used functions like extrude and revolve are easier to use. The sketching environment is more efficient with new constraint types and improved constraints. 2D drafting is improved with view linkage and other updates. Overall, ZW3D2012 focuses on an easier and more efficient design experience.
Igo Primo Navigation Software User ManualWilliamS78
User manual for Igo primo navigation software, including all settings for igo primo, primo.exe. Download igo primo software from https://www.mygpsmaps.com/
This marketing proposal from Whim Independent Studios outlines social media strategies for two upcoming games, Antics and Selatria. Strategies include maintaining a presence on Facebook, Twitter, Pinterest, forums, Kickstarter, Tumblr, Wikipedia and Reddit to generate interest, share updates, build communities and drive traffic. Game descriptions are also provided to inform the public about the tower defense game Antics, where the player defends candy from bugs, and the RPG Selatria, where two continents are in conflict after one destroys a magical source of power.
This document provides a table of contents for a book on Visual C++ and MFC fundamentals. The table of contents lists 10 chapters that cover topics such as the Visual C++ environment, the MFC library, windows resources, messages and events, and the document/view architecture. It provides an outline of the sections in each chapter.
The document is a reference manual for the BASIC programming language. It describes the BASIC language elements, data types, variables, expressions, operators, commands, and functions. The manual provides details on the syntax and usage of these different components of the BASIC language to help programmers write and troubleshoot BASIC programs.
Openbravo for Retail, is an opensource, multi-channel and full web retail management solution for managing an entire Retail business - from Sales and Customer Relationships to Financials and Operations, across different channels. Discounts and promotions, POS multicurrency payments, Gift Cards, on-line and off-line operations, e-commerce integration, mobile and cloud ready... and a lot more.
This document provides an overview of R's internal structures and programming concepts. It discusses topics such as SEXPs (the basic R data structure), environments and variable lookup, attributes, contexts, argument evaluation, autoprinting, serialization formats, encodings, warnings and errors, S4 objects, memory allocation, and graphics devices. The document is intended for developers and advanced users who want to understand how R works under the hood.
This document provides instructions for installing and using TapWatch software. It discusses hardware requirements, installing the software, standard and non-standard software features, connecting to sites and devices, editing site information, viewing data, setting passwords, automatic downloads, file locations, TapWatch hardware components, and how to use TapWatch for troubleshooting. The document contains detailed explanations, screenshots and step-by-step instructions for using TapWatch's various features.
This document is the Mobile Web Developer's Guide published by mobile Top Level Domain (mTLD), Ltd. It provides an introduction to creating simple mobile sites for common handsets. The guide covers mobile web strategy, information architecture, design, standards, best practices and techniques for getting started with XHTML mobile content. It aims to give developers and site owners enough knowledge to start creating web content for mobile users.
This document provides a user guide for CPanel, describing how to use its various features. It covers logging in and out of CPanel, managing email accounts, FTP access, file and domain management, backups, MySQL, and more. Step-by-step instructions are provided for common tasks like adding email accounts, FTP users, databases and more. The guide also explains how to configure options, delete items, and get help.
This document provides instructions for accessing and using voicemail features through a telephone or computer. It describes how to set up and access your mailbox, check and leave messages, customize greetings and other settings, use groups, and integrate with email and fax. The document is a user guide for accessing voicemail and utilizing common voicemail functions.
This document provides information about login scripts in Novell, including:
- Where login scripts should be located and common login script commands
- Examples of sample login scripts for containers, profiles, users, and default scripts
- Descriptions of specific login script commands and variables like MAP, IF/THEN, and INCLUDE
This document is a draft of a book on mathematics for programmers. It covers various topics in mathematics including prime numbers, modular arithmetic, probability, combinatorics, Galois fields, and logarithms. The document provides explanations, examples, and applications of these mathematical concepts for use in computer programming. It is intended to help programmers understand and apply core mathematical principles in their work.
This document is a reference manual for Libgcrypt version 1.6.4, which was released on September 7, 2015. Libgcrypt is a cryptographic library developed by GNU that provides cryptographic primitives like symmetric ciphers, public-key ciphers, hashes, and MACs. The manual provides documentation on using the various cryptographic algorithms and functions provided by Libgcrypt. It also covers topics like error handling, multi-threading, and the use of self-tests and FIPS mode. The manual is published under the GNU GPL license.
This document provides a manual for the MaxCommunicator software. It begins with warnings about toll fraud and liability. It then covers installation, getting started with the main interface, handling calls, configuring settings, and other features like monitoring extensions and using voicemail. The manual provides step-by-step instructions for common phone system tasks in MaxCommunicator.
This document discusses the Greasemonkey scripting tool. It covers getting started with Greasemonkey, creating a basic "Hello World" script, debugging scripts, common scripting patterns, case studies of existing scripts, and advanced topics. The chapters discuss installing and managing Greasemonkey and scripts, adding metadata to scripts, coding and editing scripts, debugging with the JavaScript console, DOM inspector, and other tools, executing scripts on domains and subdomains, testing for elements and attributes, inserting/removing content, styling elements, and more.
This document provides an administrator's guide for webMethods Broker version 8.2. It begins with title and copyright information and a table of contents. The document then covers topics including an overview of the Broker, its architecture and components, using My webMethods to administer Broker, and configuring the Broker Monitor.
지브라 iMZ320 모바일 프린터는 경량의 초소형 디자인으로 필요할 때 언제든 영수증과 청구서를 인쇄할 수 있어 업무 처리가 간소화하는 바코드프린터 입니다.
지브라 iMZ320 모바일 프린터는 스마트폰 또는 태블릿PC (애플 iOS, 안드로이드, Windows® Mobile 및 BlackBerry®) 플랫폼에 블루투스 연결을 지원합니다.
A Sidekick That Won't Weigh You Down
At ¾ of a pound (0.34 kg) or less, these lightweight printers can be worn a full shift without any burden or bother
Comfortably wear the printer via belt clip or shoulder strap for unobtrusive and convenient printing
Simple to Operate
Single push-button media access for simple reloading
Intuitive LEDs indicate on/off, error, and connectivity status
Economical Alternative
A simple, reliable and affordable printer alternative
Each iMZ printer comes standard with USB and Bluetooth connectivity, allowing you to communicate with mobile devices running on iOS, Windows® Mobile, Android and BlackBerry operating systems
Palm-Sized Printing Power
High-speed processor and extensive memory for printing complex barcodes, fonts and graphics
iMZ printers now come with an 802.11n option with dual-band support (2.4 GHz?802.11b/g/n and 5 GHz-802.11a/n) for those overcrowded wireless networks in retail environments where business operations need communication at the less-crowded 5 GHz band
Secure Bluetooth 2.0, 802.11a/b/g/n (optional) or USB (client) connectivity, Wi-Fi® and Cisco® CCX V4 ASD-certified
STANDARD FEATURES
Direct thermal printing of barcodes, text and graphics
203 dpi/8 dots per mm resolution
Print speed: Up to 4"/102 mm per second
CPCL and ZPL® programming languages
Resident fixed and scalable fonts
400MHz 32-bit ARM® processor with 128 MB RAM memory
128 MB Flash memory supports downloadable programs, receipt formats, fonts, and graphics
USB port
1.6Ahr Li-Ion battery
Built-in battery charger
Optical out-of-media sensing using fixed center-position sensor
Tear bar for easy receipt dispensing
Supports vertical and horizontal printing
Printer can be used in any orientation
Fixed media-roll width
Clamshell design for easy media loading
Printer Management: Mirror, SNMP, Web server (with customizable HTML pages), Wavelink Avalanche® [Future firmware update]
Four LEDs as user interface indicators
4'/1.2 m drop to concrete (multiple times)
Label odometer
Bluetooth 2.1
Security modes 1?4
Bluetooth printing from Apple devices (iOS5, iOS6)
IP42-rated for dust and water resistance (IP54 with durability-enhancing case)
Print Touch via NFC?One touch to pair and print via Bluetooth
PRINTER SPECIFICATIONS
Resolution : 203 dpi/8 dots per mm
Memory : 128 MB RAM; 128 MB Flash (standard)
Print width : 2.9"/73.7 mm
Print length : Maximum: Continuous
Print speed : Up to 4"/102 mm per second
Physical Characteristics
Width : 4.11"/104.4 mm
Height : 5.34"/135.6 mm
Depth : 2.26"/57.4 mm
Weight : 0.75 lbs/0.34 kg with battery with battery
>하이온아이티
주소 : 서울 금천구 가산디지털2로 165, 1304호 (백상스타타워2차)
대표번호 : 02-2038-0018 / 이메일 : hion@hionit.com
홈페이지 : http://hionsmart.com/
The document is a user guide for a ZTE Axon M phone. It provides instructions on basic phone set up and use, including installing SIM and memory cards, charging the battery, powering on/off, locking and unlocking the screen, using the touchscreen, understanding key functions, personalizing settings like ringtones and wallpapers, connecting to networks and devices via WiFi, Bluetooth, NFC, and USB. It also covers making phone calls, managing contacts, setting up email accounts, sending messages, and adjusting additional settings. The guide contains detailed explanations and steps for new users to get started with the essential functions of the phone.
This document provides a guide for administering the CallPilot telephone system. It discusses:
- CallPilot features like voicemail, auto attendant, and custom call routing.
- Setting up mailboxes, greetings, and the auto attendant.
- Configuring options like call routing, class of service, and line answering.
- Procedures for adding, changing, and deleting system components.
The guide aims to help administrators effectively set up and manage the CallPilot telephone system.
ZW3D2012 provides a new ribbon interface for an improved user experience. It offers faster graphics that are 2-3 times quicker. Data exchange has been enhanced with native STEP and SAT support. Direct editing has been upgraded for more reliable modeling. Frequently used functions like extrude and revolve are easier to use. The sketching environment is more efficient with new constraint types and improved constraints. 2D drafting is improved with view linkage and other updates. Overall, ZW3D2012 focuses on an easier and more efficient design experience.
Igo Primo Navigation Software User ManualWilliamS78
User manual for Igo primo navigation software, including all settings for igo primo, primo.exe. Download igo primo software from https://www.mygpsmaps.com/
This marketing proposal from Whim Independent Studios outlines social media strategies for two upcoming games, Antics and Selatria. Strategies include maintaining a presence on Facebook, Twitter, Pinterest, forums, Kickstarter, Tumblr, Wikipedia and Reddit to generate interest, share updates, build communities and drive traffic. Game descriptions are also provided to inform the public about the tower defense game Antics, where the player defends candy from bugs, and the RPG Selatria, where two continents are in conflict after one destroys a magical source of power.
This document provides a table of contents for a book on Visual C++ and MFC fundamentals. The table of contents lists 10 chapters that cover topics such as the Visual C++ environment, the MFC library, windows resources, messages and events, and the document/view architecture. It provides an outline of the sections in each chapter.
The document is a reference manual for the BASIC programming language. It describes the BASIC language elements, data types, variables, expressions, operators, commands, and functions. The manual provides details on the syntax and usage of these different components of the BASIC language to help programmers write and troubleshoot BASIC programs.
Openbravo for Retail, is an opensource, multi-channel and full web retail management solution for managing an entire Retail business - from Sales and Customer Relationships to Financials and Operations, across different channels. Discounts and promotions, POS multicurrency payments, Gift Cards, on-line and off-line operations, e-commerce integration, mobile and cloud ready... and a lot more.
This document provides an overview of R's internal structures and programming concepts. It discusses topics such as SEXPs (the basic R data structure), environments and variable lookup, attributes, contexts, argument evaluation, autoprinting, serialization formats, encodings, warnings and errors, S4 objects, memory allocation, and graphics devices. The document is intended for developers and advanced users who want to understand how R works under the hood.
This document provides instructions for installing and using TapWatch software. It discusses hardware requirements, installing the software, standard and non-standard software features, connecting to sites and devices, editing site information, viewing data, setting passwords, automatic downloads, file locations, TapWatch hardware components, and how to use TapWatch for troubleshooting. The document contains detailed explanations, screenshots and step-by-step instructions for using TapWatch's various features.
This document is the Mobile Web Developer's Guide published by mobile Top Level Domain (mTLD), Ltd. It provides an introduction to creating simple mobile sites for common handsets. The guide covers mobile web strategy, information architecture, design, standards, best practices and techniques for getting started with XHTML mobile content. It aims to give developers and site owners enough knowledge to start creating web content for mobile users.
This document provides a user guide for CPanel, describing how to use its various features. It covers logging in and out of CPanel, managing email accounts, FTP access, file and domain management, backups, MySQL, and more. Step-by-step instructions are provided for common tasks like adding email accounts, FTP users, databases and more. The guide also explains how to configure options, delete items, and get help.
This document provides instructions for accessing and using voicemail features through a telephone or computer. It describes how to set up and access your mailbox, check and leave messages, customize greetings and other settings, use groups, and integrate with email and fax. The document is a user guide for accessing voicemail and utilizing common voicemail functions.
This document provides information about login scripts in Novell, including:
- Where login scripts should be located and common login script commands
- Examples of sample login scripts for containers, profiles, users, and default scripts
- Descriptions of specific login script commands and variables like MAP, IF/THEN, and INCLUDE
This document is a draft of a book on mathematics for programmers. It covers various topics in mathematics including prime numbers, modular arithmetic, probability, combinatorics, Galois fields, and logarithms. The document provides explanations, examples, and applications of these mathematical concepts for use in computer programming. It is intended to help programmers understand and apply core mathematical principles in their work.
This document is a reference manual for Libgcrypt version 1.6.4, which was released on September 7, 2015. Libgcrypt is a cryptographic library developed by GNU that provides cryptographic primitives like symmetric ciphers, public-key ciphers, hashes, and MACs. The manual provides documentation on using the various cryptographic algorithms and functions provided by Libgcrypt. It also covers topics like error handling, multi-threading, and the use of self-tests and FIPS mode. The manual is published under the GNU GPL license.
This document provides a manual for the MaxCommunicator software. It begins with warnings about toll fraud and liability. It then covers installation, getting started with the main interface, handling calls, configuring settings, and other features like monitoring extensions and using voicemail. The manual provides step-by-step instructions for common phone system tasks in MaxCommunicator.
This document is a textbook about the science of computing. It is divided into chapters that cover various topics in computing including: logic circuits, data representation, computational circuits, computer architecture, operating systems, artificial intelligence, and language and computation. The textbook is copyrighted to Carl Burch and is intended to provide an introduction to fundamental concepts in computer science.
The document is the user manual for a Samsung mobile phone. It provides instructions on activating the phone, understanding features and keys, making calls, sending messages, using the phonebook and menus. The manual explains basics of the phone's functionality and serves as a reference for users. It contains typical sections like getting started, call functions, text entry, messages and phonebook.
The SWF file format is available as an open specification to create products and technology that implement the specification. SWF 9 introduced the ActionScript™ 3.0 language and virtual machine. The SWF 10 specification expands text capabilities with support for bidirectional text and complex scripts with the new DefineFont4 tag. The DefineBitsJPEG4 tag allows embedding JPEG images that have an alpha channel for opacity and also a smoothing filter. SWF 10 also adds support for the free and open-source Speex voice codec and for higher frequencies in the existing Nellymoser codec.
This document provides information on programming robots using KUKA System Software (KSS) Release 5.2, including:
- The structure and creation of programs, editing programs, and altering programs
- Declaring variables and data objects like arrays, strings, and structures
- Manipulating data using operators and functions
- Using system variables, files, and manipulating string variables
The document is a user manual that provides instructions on how to use a mobile phone. It includes sections on getting started with the phone, idle mode features, call functions, menu functions, and messaging features. The sections cover topics such as installing SIM cards and batteries, making calls, using menus and settings, and sending SMS, MMS and email messages.
This user guide provides instructions for operating the HP 33s scientific calculator. It covers turning the calculator on and off, using the keyboard and display, entering numbers, performing arithmetic, controlling the display format, using fractions, entering and evaluating equations, programming the calculator, and more. The guide includes appendices that cover batteries, memory, ALG mode, solving, integrating, and error messages.
This document provides an overview of CRUD (create, read, update, delete) operations in MongoDB. It describes the basic database operations like querying and modifying documents. It also covers related features like indexes, read preference for replica sets, and write concern. The document consists of several sections that explain MongoDB CRUD concepts and provide tutorial examples for performing CRUD operations.
This document provides an overview of CRUD (create, read, update, delete) operations in MongoDB. It describes the basic database operations like querying and modifying documents. It also covers related features like indexes, read preference for replica sets, and write concern. The document consists of several sections that explain MongoDB CRUD concepts and provide tutorial-style examples for performing CRUD operations.
This document provides an introduction to the C++ programming language. It discusses the history and evolution of C++. The document outlines some key differences between C and C++, such as namespaces, references, and classes. It also introduces several important C++ concepts, like object-oriented programming, the string data type, input/output streams, and classes. The document serves as a textbook for C++ programming courses taught at the University of Groningen.
This document provides an advanced guide for developing macros in IBM Rational Host Access Transformation Services (HATS). It covers macro structure, data types, operators, expressions, how the macro runtime processes macros, screen description and recognition, and available macro actions. The guide contains definitions of terms and includes conceptual diagrams and code samples to illustrate macro concepts and functionality. It is intended to help macro developers better understand and utilize the full capabilities of the HATS macro language.
This document provides an advanced guide for developing macros in IBM Rational Host Access Transformation Services (HATS). It covers macro structure, data types, operators, expressions, how the macro runtime processes macros, screen description and recognition, and available macro actions. The guide contains definitions of terms and includes conceptual diagrams and code samples to illustrate macro design and processing. It is intended to help macro developers better understand and utilize the full capabilities of the HATS macro language.
This document is the manual for the GNU debugger gdb version 7.0.50. It describes how to invoke and use gdb to debug programs. Gdb can be used to run programs, set breakpoints, examine the stack and variables, search source code, and more. The manual covers basics like starting and stopping a program as well as more advanced topics like debugging multi-threaded programs and recording program execution.
This user guide provides instructions for using a Nokia 3520/3560 mobile phone. It describes the phone's basic features like making calls, using menus and keys, adding contacts, and using advanced calling features. The guide includes information on phone setup, entering text, managing the phone book, call history, voice mail, customizing sounds and profiles, and personalizing phone settings.
This document is a textbook titled "Programming Fundamentals - A Modular Structured Approach using C++" by Kenneth Leroy Busbee. It covers topics related to programming fundamentals such as data types, operators, functions, input/output, and more using C++ as the programming language. The textbook is divided into chapters that each cover a programming concept and include examples and exercises. It is intended to teach structured programming techniques using a modular approach in C++.
인터맥 PB21, PB31 및 PB51은 감열타입, 견고한 모바일 프린터로 인보이스, 운송, 물류, 배달, 모바일 POS (point-of-sale) 도매, 소매 영수증, 창고관리, 재고관리 분야에 적합한 모바일 프린터 입니다.
PB21, PB31, PB51 모바일 프린터는 경쟁 모델보다 메모리가 2 배 이상이며, 최적화된 인쇄 메커니즘을 채택하여 영수증과 인보이스를 20 ~ 30 % 더 빠르게 처리할 수 있으며 로고와 같은 복잡한 그래픽도 쉽게 처리 할 수 있습니다.
안정된 인쇄를 위해 Notch, Black Mark, End-of-Roll 및 도어 열림상태 (직관적인 LCD 디스플레이를 통해 모두 전달됨)를 감지하는 온보드 센서로 PB21, PB31, PB51 프린터는 작업자가 프린터의 상태를 항상 알 수 있도록 도와줍니다.
네트워크 연결은 유선 및 무선 인터페이스 (802.11 b / g, Bluetooth, 직렬, USB) 중 하나를 선택하면 환경에 맞는 인터페이스를 선택할 수 있습니다.
또한 프린터는 5피트, 26회 낙하 사양과 (6.5 피트, 옵션 보호 케이스 포함); IP54 등급이 적용되었습니다.
The industry’s fastest 2,3 and 4 inch rugged mobile receipt printers
Built rugged to survive realworld mobility in field service, route accounting and pointof- service applications
20-30% faster time-to-receipt and -invoice printing than competitive products
Low cost of development and support
Paper sensors and standard LCD display minimize lost transactions and wasted time troubleshooting
Seamless integration with Intermec computers and other mobile devices
Secure wired and wireless communication options: Bluetooth®, 802.11 b/g, USB, Serial
Optional integrated card reader supports latest EMV and ISO payment standards
SmartSystems® remote device management reduces support needs
PRINTER CHARACTERISTICS
PB21 :
Width : 101 mm (4 in)
Height : 176 mm (6.9 in)
Depth : 71 mm (2.8 in)
Weight (with battery) : 678 g (23.9oz)
PB31 :
Width : 127 mm (5 in)
Height : 182 mm (7.2 in)
Depth : 81 mm (3.2 in)
Weight (with battery) : 828 g (29.2oz)
ENVIRONMENT
Operating temperature : -15°C to 50°C (5°F to 122°F)
Storage temperature : -30°C to 70°C (-22°F to 158°F)
Humidity : 10 to 90% (non-condensing)
Sealing : IP54 (excludes paper path)
Drop spec : 1.5m (5 ft.) drops to concrete; 26 times including all corners and sides (Mil Std 810F procedure)
PB21/31: 2m (6.5 ft) multiple drops to concrete with optional protective case
POWER
PB21/31 : 7.4V Li-Ion, 2.3 Ah, rechargeable battery (typical)
MEMORY
RAM: 16MB, Flash: 64MB
STANDARD COMMUNICATIONS
RS-232 Serial
USB v.2.0
OPTIONAL COMMUNICATIONS
Bluetooth® (v2.0, Class 1)
802.11b/g (PB21/31 only)
WIRELESS SECURITY
Authentication & Encryption Options : WEP (64 and 128 bit) LEAP; WPA-PSK (TKIP / RC4); WPA2/802.11i- PSK (CCMP / AES);EAP-TLS, -TTLS, -PEAP, -FAST
PRINT SPEED AND RESOLUTION
4ips (101.6mm/sec) 203 dpi (8 dots/mm)
PRINT TECHNOLOGY
Printhead : Direct thermal
CARD READER (PB21/31 Option)
3 track magnetic stripe reader supports ANSI, ISO 7811, AAMVA, CA MVA, RAW formats
EMV-compatable smart card reader is EMV 2000, ISO 7816, CCID compliant
USER INTERFACE
LCD and 4 buttons : standby, paper feed, setup, info Four audio status indicators: error alert, hardware change alert, button press alert and startup alert.
>하이온아이티
주소 : 서울 금천구 가산디지털2로 165, 1304호 (백상스타타워2차)
대표번호 : 02-2038-0018 / 이메일 : hion@hionit.com
홈페이지 : http://hionsmart.com
Software Engineering and Project Management - Introduction, Modeling Concepts...Prakhyath Rai
Introduction, Modeling Concepts and Class Modeling: What is Object orientation? What is OO development? OO Themes; Evidence for usefulness of OO development; OO modeling history. Modeling
as Design technique: Modeling, abstraction, The Three models. Class Modeling: Object and Class Concept, Link and associations concepts, Generalization and Inheritance, A sample class model, Navigation of class models, and UML diagrams
Building the Analysis Models: Requirement Analysis, Analysis Model Approaches, Data modeling Concepts, Object Oriented Analysis, Scenario-Based Modeling, Flow-Oriented Modeling, class Based Modeling, Creating a Behavioral Model.
Rainfall intensity duration frequency curve statistical analysis and modeling...bijceesjournal
Using data from 41 years in Patna’ India’ the study’s goal is to analyze the trends of how often it rains on a weekly, seasonal, and annual basis (1981−2020). First, utilizing the intensity-duration-frequency (IDF) curve and the relationship by statistically analyzing rainfall’ the historical rainfall data set for Patna’ India’ during a 41 year period (1981−2020), was evaluated for its quality. Changes in the hydrologic cycle as a result of increased greenhouse gas emissions are expected to induce variations in the intensity, length, and frequency of precipitation events. One strategy to lessen vulnerability is to quantify probable changes and adapt to them. Techniques such as log-normal, normal, and Gumbel are used (EV-I). Distributions were created with durations of 1, 2, 3, 6, and 24 h and return times of 2, 5, 10, 25, and 100 years. There were also mathematical correlations discovered between rainfall and recurrence interval.
Findings: Based on findings, the Gumbel approach produced the highest intensity values, whereas the other approaches produced values that were close to each other. The data indicates that 461.9 mm of rain fell during the monsoon season’s 301st week. However, it was found that the 29th week had the greatest average rainfall, 92.6 mm. With 952.6 mm on average, the monsoon season saw the highest rainfall. Calculations revealed that the yearly rainfall averaged 1171.1 mm. Using Weibull’s method, the study was subsequently expanded to examine rainfall distribution at different recurrence intervals of 2, 5, 10, and 25 years. Rainfall and recurrence interval mathematical correlations were also developed. Further regression analysis revealed that short wave irrigation, wind direction, wind speed, pressure, relative humidity, and temperature all had a substantial influence on rainfall.
Originality and value: The results of the rainfall IDF curves can provide useful information to policymakers in making appropriate decisions in managing and minimizing floods in the study area.
Advanced control scheme of doubly fed induction generator for wind turbine us...IJECEIAES
This paper describes a speed control device for generating electrical energy on an electricity network based on the doubly fed induction generator (DFIG) used for wind power conversion systems. At first, a double-fed induction generator model was constructed. A control law is formulated to govern the flow of energy between the stator of a DFIG and the energy network using three types of controllers: proportional integral (PI), sliding mode controller (SMC) and second order sliding mode controller (SOSMC). Their different results in terms of power reference tracking, reaction to unexpected speed fluctuations, sensitivity to perturbations, and resilience against machine parameter alterations are compared. MATLAB/Simulink was used to conduct the simulations for the preceding study. Multiple simulations have shown very satisfying results, and the investigations demonstrate the efficacy and power-enhancing capabilities of the suggested control system.
artificial intelligence and data science contents.pptxGauravCar
What is artificial intelligence? Artificial intelligence is the ability of a computer or computer-controlled robot to perform tasks that are commonly associated with the intellectual processes characteristic of humans, such as the ability to reason.
› ...
Artificial intelligence (AI) | Definitio
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Sinan KOZAK
Sinan from the Delivery Hero mobile infrastructure engineering team shares a deep dive into performance acceleration with Gradle build cache optimizations. Sinan shares their journey into solving complex build-cache problems that affect Gradle builds. By understanding the challenges and solutions found in our journey, we aim to demonstrate the possibilities for faster builds. The case study reveals how overlapping outputs and cache misconfigurations led to significant increases in build times, especially as the project scaled up with numerous modules using Paparazzi tests. The journey from diagnosing to defeating cache issues offers invaluable lessons on maintaining cache integrity without sacrificing functionality.
Applications of artificial Intelligence in Mechanical Engineering.pdfAtif Razi
Historically, mechanical engineering has relied heavily on human expertise and empirical methods to solve complex problems. With the introduction of computer-aided design (CAD) and finite element analysis (FEA), the field took its first steps towards digitization. These tools allowed engineers to simulate and analyze mechanical systems with greater accuracy and efficiency. However, the sheer volume of data generated by modern engineering systems and the increasing complexity of these systems have necessitated more advanced analytical tools, paving the way for AI.
AI offers the capability to process vast amounts of data, identify patterns, and make predictions with a level of speed and accuracy unattainable by traditional methods. This has profound implications for mechanical engineering, enabling more efficient design processes, predictive maintenance strategies, and optimized manufacturing operations. AI-driven tools can learn from historical data, adapt to new information, and continuously improve their performance, making them invaluable in tackling the multifaceted challenges of modern mechanical engineering.
Applications of artificial Intelligence in Mechanical Engineering.pdf
Manual cs it
1. In progress Version
Manual (CS-105)
Programming Fundamentals
Labs Using
C
Language
Compiled by:
Muhammad Sahfiq
DEPARTMENT OF INFORMATION TECHNOLOGYUNIVERSITY OF GUJRAT
2. 2
Contents
Chapter# 1 Basic Concept related to C..................................................................................................7
0.1 A simple program that prints “Hello World” ......................................................................................7
0.2 To use of Escape Squences .................................................................................................................8
0.3 Use of Comments................................................................................................................................9
1.1 Use of Variables.....................................................................................................................................9
1.1.1 To print the values of Two variables..............................................................................................10
1.1.2 To calculate area and circumference of circle using define directive. ..........................................14
1.1.3 To find range of variable underflow and overflow........................................................................14
1.1.4 To swaps two values. ....................................................................................................................15
1.2Use of operators ...................................................................................................................................17
1.2.1 Use of Arithmetic operator............................................................................................................18
1.2.2 Use of compound assignment operators.......................................................................................18
1.2.3 Use of Increment operator with prefix/postfix form.....................................................................19
1.2.4 Use of Decrement operator with prefix/postfix form. ..................................................................19
1.2.5 To find salary on the behalf of working hour and hour week ......................................................20
1.3 Use of Scanf() ......................................................................................................................................17
1.3.1 To print the values of two variables using scanf............................................................................18
1.3.2 To print any character value using scanf. ......................................................................................18
1.3.3 To find salary by getting input such as working hour and hour week...........................................19
1.3.4 To find reverse of any input number. ...........................................................................................19
1.3.5 To find the number is even or odd by using arithmetic operator "%". .........................................20
1.3.6 To find size of different data types................................................................................................18
Chapter# 2 Selection or Conditional structure..................................................................................................17
2.1 Selection structure (IF)................................................................................................................................................17
2.1.1 To find that you have entered exact digit or not...........................................................................17
2.1.2 To find that you have entered exact character or not...................................................................18
2.1.3 To find that entered number is even or odd. ................................................................................18
2.1.4 To find minimum number among from the 3 entered numbers...................................................19
2.1.5 To find minimum number among from the 3 entered numbers...................................................19
2.1.6 To find that user is applicable for scholarship or not ....................................................................20
3. 3
2.1.7 To determine that entered number is Positive or Negative..........................................................23
2.2 Use of logical operators in if statement ................................................................................................................21
2.2.1 To determine that entered character is vowel using OR operator ...............................................23
2.2.2 To find maximum number using AND operator. ...........................................................................24
2.2.3 To determine that number is positive or negative using NOT operator .......................................25
2.2.4 To find eligibility for scholarship using Multiple IF condition........................................................27
2.2.5 To find the square-root of an entered number using if condition. ...............................................25
2.3 Use of If-else.....................................................................................................................................................................24
2.3.1 To find about the entered word correction using if-else...............................................................25
2.3.2 To find that entered number is even or odd using if-else .............................................................26
2.3.3 To determine about leap year using if else condition................................................................27
2.4 Use of If-else-If.................................................................................................................................................................24
2.4.1 To print grade against marks using if-else-if statement ................................................................30
2.5 Swicth statement............................................................................................................................................................39
2.5.1 To determine about day using switch statement..........................................................................30
2.5.2 To find the area or circumference of the circle using switch condition ........................................31
2.5.3 To find the result of arithmetic operators using switch statement...............................................31
2.5.4 To determine about vowels and consonants using switch statement. .........................................34
2.6 Use of Conditional operator.......................................................................................................................................39
2.6.1 To print maximum number using conditional operator. ..............................................................35
2.6.2 To determine that number is even or odd using conditional operator.........................................35
2.6.3 To calculate salary and tells the bonus using conditional operator. .............................................36
chapter# 3 Loop iterations or repetations................................................................................................ 39
3.1 For loop............................................................................................................................................................................. 39
3.1.1 To print the message "Red" 10 times using for loop.....................................................................37
3.1.2 To print all Capital Alphabetic keys using for loop.........................................................................38
3.1.3 To print first five odd numbers using for loop...............................................................................39
3.1.4 To print the sum of given numbers using for loop ........................................................................41
3.1.5 To calculate the square-root given numbers using for loop..........................................................40
3.1.6 To print the table of the given number using for loop ..................................................................40
3.1.7 To find the factorial given number using for loop. .......................................................................41
4. 4
3.1.8 To print a horizontal line of box using for loop..............................................................................41
3.1.9 To print the text within the boxes using multiple for loop............................................................42
3.2 Nested loop.......................................................................................................................................................................39
3.2.1 To print right side diagonal............................................................................................................39
3.2.2 To print left side diagonal..............................................................................................................40
3.2.3 To print the cross sign or symbol...................................................................................................40
3.2.4 To print right side triangle. ............................................................................................................41
3.2.5 To print down-side triangle............................................................................................................41
3.2.6 To print the symbol (#). .................................................................................................................42
3.2.7 To print the sum in a matrix shape using for loop.........................................................................43
3.3 While loop.........................................................................................................................................................................56
3.3.1 To display ASCII value until user will not strike the enter key.......................................................43
3.3.2 To count the character until user does not strike the enter key...................................................44
3.3.3 To prints the number is even or odd until user not strike the “-1”...............................................45
3.3.4 To find the total of 5 numbers.......................................................................................................45
3.3.5 To count characters, words, and digits using while loop...............................................................46
3.4 Do-While Loop.................................................................................................................................................................56
3.4.1 To check marks validation using do while loop .............................................................................51
Chapter# 4 Functions........................................................................................................................................ 56
4.1 To demonstrate about the functions................................................................................................52
4.2 To prints right and left angle triangles using functions. ...................................................................53
4.3 To draws rectangle according to the size of the class room, faculty room, and exam hall..............54
4.4 To convert the upper to lower case and lower to upper letters ......................................................55
4.5 To calculate the difference between time........................................................................................55
4.6 To calculates difference between two dates and result in days ......................................................52
4.7 Using parameterized functions ................................................................................................................................56
To calculate difference between two dates and result in days................. Error! Bookmark not defined.
Chapter # 5 Array……..……………………………………………………………………………………………………………... ……..68
5.1 Basics of Arrays ..…………………………………………………………..………………………………………………………………..68
5.1.1 Declaring and printing Array……………………………..…..…………………………………………………………………….68
5.1.2 Input data in Array from User………………..………..……………………………………………………………………………69
5. 5
5.1.3 Finding sum and Average of an Array………………………………………………….………………………………………..70
5.1.4 Print the values of an array by passing it in function……………………………………………………………………..71
5.1.5 Sorting of an Array………………………………………………………………………………………………………………………..73
5.2 String………………………….……………………………………………………………………………………………………………….73
5.2.1 storing and printing a sentence in string……………………………………………………………………………………….73
5.3 Structure Basic.……………………………………………………………………………………………………………………………74
5.3.1 Declaring structure……………………………………………………………………………………………………………………….74
5.3.2 Storing more than on values in structure………………………………………………………………………………………75
5.4 Array type variables of structure…………………………………………………………………………………………………76
5.4.1 A program which store data of 8 students……………………………………………………………………………………76
Chapter#6 Pointers …………………………………………………………………………………………………………………………..77
6.1 Pointer Basics………………………………………………………………………………………………………………………………77
6.1.1 Direct and indirect value of an variable…………………………………………………………………………………………77
6.1.2Calculating the area and perimeter of a circle………………………………………………………………………………..79
6.2 Pointer of Array…………………………………………………………………………………………………………………………..80
6.2.1 Passing array to function using pointer…………………………………………………………………………………………80
Chapter#7 File Handling…………………………………………………………………………………………………………………….82
7.1 Basics of File handling………………………………………………………………………………………………………………….82
7.1.1 Reading from a file……..…………………………………………………………………………………………………………………82
7.1.2 Writing to a file …………………………………………………………………………………………………………………………….83
7.1.3 Writing data to a file in opened mode…………………………………………………………………………………………..84
7.1.4 File Copying with file Handling………………………………………………………………………………………………………85
7.1.5 Using structure and binary modes in file handling ……………………………………………………………………….86
Chapter#8 Graphics ………………………………………………………………………………………………………………………….88
8.1.1 Initialization and changing background color ……………………………………………………………………………….88
6. 6
8.1.2 Printing text in graphics mode with different colors …………………………………………………………………….89
8.1.3 Printing text at different points…………………………………………………………………………………………………….90
8.1.4 Changing font and direction of text in graphics mode ………………………………………………………………….91
8.1.5 Blinking text in graphics ………………………………………...........................................................................92
8.2 Objects in graphics………………………………………………………………………………………………………………………93
7. 7
Chapter# 1
Basic concept related C language
Program 0.1
A simple program that prints "Hello”.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf(" Hello World");
getch();
}
Output:
Program 0.2
To use of Escape sequences.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("Hello n World");
printf("Hello t World");
printf("Hello ' World");
printf("Hello " World");
printf("Hello a World");
printf("Hello r World");
getch();
}
Output:
8. 8
Program 0.3
Use f comments.
#include<stdio.h>//Header file
#include<conio.h>//Header file
void main()//main function
{ //body of main
clrscr();//for clear screen
printf("ntUniversty of Gujrat...!n");//for output
printf("ntComputer Science & Information Technology ...!");//n for
new line t for spaces
getch();//for asdf
}//end of body
Output:
1.1 Use of variables
Program 1.1.1
To print values of two variables.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a=5;
int b=7;
printf("nt The values of a=%d and b=%d ",a,b);
getch();
}
Output:
Program 1.1.2
To calculate area and circumference of circle using define directive.
#include<stdio.h>
#include<conio.h>
#define pi 3.141593
void main()
{
9. 9
clrscr();
flaot a;
float r;
float c;
r=4.50;
a=2*pi*r*r;
c=2*pi*r;
printf("ntArea: %fntCircumference: %f",a,c);
getch();
}
Output:
Program 1.1.3
To find range of variable underflow and overflow.
#include<stdio.h>
#include<conio.h>
void main()
{
int var=32767;
clrscr();
var=var+1;
printf("t%d",var);
getch();
}
Output:
Program 1.1.4
To swaps two values.
#include<stdio.h>
#include<conio.h>
void main()
{
int a=200;
int b=100;
int swap;
printf("ntBefore swappiing a=%d b=%d",a,b);
swap=a;
10. 10
a=b;
b=swap;
printf("nntAfter swapping a=%d b=%dnn",a,b);
getch();
}
Output:
1.2Use of operators
Program 1.2.1
Use of Arithmetic operator.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
a=10;
b=5;
printf("nta+b = %d",a+b);
printf("nta-b = %d",a-b);
printf("nta*b = %d",a*b);
printf("nta/b = %d",a/b);
getch();
}
Output:
Program 1.2.2
Use of compound assignment operators.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
11. 11
int a,b;
a=10;
printf("ntValue of a= %d",a);
a+=5;
printf("ntValue after a+=5: %d",a);
a-=5;
printf("ntValue after a-=5: %d",a);
a*=2;
printf("ntValue after a*=2: %d",a);
a/=2;
printf("ntValue after a/=2: %d",a);
getch();
}
Output:
Program 1.2.3
Use of Increment operator with prefix/postfix form.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,x;
a=b=0;
printf("nta=%d, b=%d, ",a,b);
x=++a;
printf("ntPrefix Increment: a=%d, x=%d",a,x);
x=b++;
printf("ntPostfix Increment: b=%d, x=%d",b,x);
getch();
}
Output:
12. 12
Program 1.2.4
Use of Decrement operator with prefix/postfix form.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,x;
a=b=2;
printf("nta=%d, b=%d, ",a,b);
x=--a;
printf("ntPrefix Decrement: a=%d, x=%d",a,x);
x=b--;
printf("ntPostfix Decrement: b=%d, x=%d",b,x);
getch();
}
Output
Program 1.2.5
To find salary on the behalf of working hour and hour week
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float hr;
float hw;
float pay;
hr=150.00;
hw=15.30;
pay=hr*hw;
printf("t%f",pay);
getch();
}
Output:
1.3 Use of Scanf()
13. 13
Program 1.3.1
T o print the values of two variables using scanf .
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a;
int b;
printf("ntEnter first value=");
scanf("%d",&a);
printf("ntEnter Second value=");
scanf("%d",&b);
printf("ntThe values of a= %d and b= %d ",a,b);
getch();
}
Output:
Program 1.3.2
To print any character value using scanf.
#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("ntEnter a char:t");
scanf("%c",&ch);
printf("ntThe char is:t%c",ch);
getch();
}
14. 14
Output:
Program 1.3.3
To find salary by getting input such as working hour and hour week.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float hr;
float hw;
float pay;
printf("ntEnter hour rate:");
scanf("%f",&hr);
printf("ntEnter working hour:");
scanf("%f",&hw);
pay=hr*hw;
printf(" n tYour Pay is:%f",pay);
getch();}
Output:
Program 1.3.4
To find reverse of any input number.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int n,a,s,d;
printf("tEnter 4-digit number: ");
scanf("%d",&n);
a=n/1000;
n=n%1000;
s=n/100;
n=n%100;
15. 15
d=n/10;
n=n%10;
printf("ntNumber in Revrse order: %d%d%d%d",n,d,s,a);
getch();
}
Output:
Program 1.3.5
To find the number is even or odd by using arithmetic operator "%".
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
printf("ntEnter a Number:");
scanf("%d",&a);
b=a%2;
printf("ntNote:nt If the value is 0 then given number is EVEN");
printf("nt If the value is 1 then given number is ODD");
printf("nntThe Value is=%d",b);
getch();
}
Output:
Program 1.3.6
To find size of different data types.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("ntThe size of char: %d",sizeof(char));
printf("ntThe size of int: %d",sizeof(int));
16. 16
printf("ntThe size of float: %d",sizeof(float));
printf("ntThe size of long: %d",sizeof(long));
printf("ntThe size of double: %d",sizeof(double));
printf("ntThe size of long double: %d",sizeof(long double));
getch();
}
Output :
Exercise:
1. Write a program to check the sizes of the main C data types on your machine.
2. Write a program to illustrate whether the printf() standard library function truncates or rounds
when printing out a floating point number.
3. Write a program to check what the following code segment outputs and explain the results.
char c ;
printf("sizeof( c ) = %dn", sizeof( c ) ) ;
printf("sizeof( 'a' ) = %dn", sizeof( 'a' ) ) ;
printf("sizeof( c = 'a' ) = %dn", sizeof( c='a' ));
4. Run the "hello world" program on your system. Experiment with leaving out parts of the
program, to see what error messages you get.
5. Experiment to find out what happens when printf 's argument string contains c, where c is
some character not listed above.
6. Write a program which reads a character from the keyboard and writes out its ASCII
representation.
7. Now write a program which reads in an integer from the keyboard and print out its character
representation. Make certain you carry out appropriate bounds / error checking.
8. Write a program to read Fahrenheit temperatures and print them in Celsius. The formula is
C = (5/9)(F - 32). Use variables of type double in your program.
9. Write a program that reads in the radius of a circle and prints the circle‟s diameter,
circumference and area. Use the value 3.14159 for “pi”.
10. Write a program to print all input lines that are longer than 80 characters.
17. 17
Chapter# 2
Selection structure:
2.1 Selection structure (IF)
Program 2.1.1
To find that you have entered exact digit or not .
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int num;
printf(“ntEnter digit (5): “);
scanf(“%d”,&num);
if(num==5)
printf("ntYou have entered 5");
getch();
}
Output:
Program 2.1.2
To find that you have entered exact character or not .
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char ch,chh;
printf("ntEnter characters „n‟:");
ch=getche();
if(ch=='n')
printf("ntYou have entered 'n' ");
getch();
}
18. 18
Output:
Program 2.1.3
To find that entered number is even or odd.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int num;
printf("ntEnter a number:");
scanf("%d",&num);
if(num%2==0)
printf("tThe number you have entered is Even.!!!");
if(num%2==1)
printf("tThe number you have entered is Odd.!!!");
getch();
}
Output:
Program 2.1.4
To find minimum number among from the 3 entered numbers.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c,d,e,min;
printf("ntEnter a:");
scanf("%d",&a);
printf("ntEnter b:");
scanf("%d",&b);
printf("ntEnter c:");
scanf("%d",&c);
min=a;
if(b<min)
min=b;
19. 19
if(c<min)
min=c;
printf("ntt Minimum Value is: %d",min);
getch();
}
Output:
Program 2.1.5
To find minimum number among from the 3 entered numbers.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c,max;
printf("ntEnter a:");
scanf("%d",&a);
printf("ntEnter b:");
scanf("%d",&b);
printf("ntEnter c:");
scanf("%d",&c);
max=a;
if(b>max)
max=b;
if(c>max)
max=c;
printf("nttMaximum Value is: %d",max);
getch();
}
Output:
20. 20
Program 2.1.6
To find that user is applicable for scholarship or not.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float gpa,cgpa;
printf("ntEnter GPA:");
scanf("%f",&gpa);
printf("ntEnter CGPA:");
scanf("%f",&cgpa);
if(gpa>=3.0)
if(cgpa>=3.0)
printf("ntCongartualtions...!!!n t You will get full scholorship");
getch();
}
Output:
Program 2.1.7
To determine that entered number is Positive or Negative.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int n;
printf("ntEnter a Number: ");
scanf("%d",&n);
if(n>0)
printf("ntNumber is Positive..!");
if(n<0)
printf("ntNumber is Negative..!");
getch();
}
Output:
21. 21
2.2 Use of logical operators in if statement
Program 2.2.1
To determine that entered character is vowel using OR operator.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char ch;
printf("ntEnter any character: ");
scanf("%ch",&ch);
if(ch=='A'||ch=='a'||ch=='e'||ch=='E'||ch=='i'||ch=='I'||ch=='o'||ch=='O'||ch=='u'||ch=='U')
printf("ntYour entered a vowel: %c",ch);
getch();
}
Output:
Program 2.2.2
To find maximum number using AND operator.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c;
printf("ntEnter a: ");
scanf("%d",&a);
printf("ntEnter b: ");
scanf("%d",&b);
printf("ntEnter c: ");
scanf("%d",&c);
if((a>b)&&(a>c))
printf("ntMaximum number is: %d",a);
if((b>c)&&(b>a))
printf("ntMaximum number is: %d",b);
22. 22
if((c>a)&&(c>b))
printf("ntMaximum number is: %d",c);
getch();
}
Output:
Program 2.2.3
To determine that number is positive or negative using NOT operator.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int n;
printf("ntEnter a Number: ");
scanf("%d",&n);
if(!(n>0))
printf("ntNumber is Negative..!");
if(!(n<0))
printf("ntNumber is Positive..!");
getch();
}
Output:
Program 2.2.4
To find eligibility for scholarship using Multiple IF condition.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float cgpa;
23. 23
int age;
char status, gender,grade;
printf("ntEnter the CGPA 3.0 almost:");
scanf("%f",&cgpa);
printf("ntEnter the age 25 almost:");
scanf("%d",&age);
printf("ntEnter the status as Reglar press 'R':");
status=getche();
printf("nntEnter the Gender 'M' for male and 'F' for female.:");
gender=getche();
printf("nntEnter the Grade.:");
grade=getche();
if(cgpa>=3.0&&age<=25)
if(status=='r'||status=='R')
if(gender=='M'||gender=='F'||gender=='m'||gender=='f')
if(grade=='A'||grade=='a')
printf("nn Congratulations...!!!! You will get scholorship..");
getch();
}
Output:
Program 2.2.5
To find the square-root of an entered number using if condition.
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
int n;
float sqroot;
printf("ntEnter a number:");
scanf("%d",&n);
if(n>0)
sqroot=sqrt(n);
printf("tThe sqroot of %d is %f",n,sqroot);
getch();
}
24. 24
Output:
2.3 Use of If-else
Program 2.3.1
To find about the entered word correction using if-else.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char ch;
printf("ntEnter a character (y): ");
ch=getche();
if(ch=='Y'||ch=='y')
printf("ntYou have enter Y");
else
printf("ntYou have entered another word");
getch();
}
Output:
Program 2.3.2
To find that entered number is even or odd using if-else
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int num;
printf("nn Enter a number:");
scanf("%d",&num);
if(num%2==0)
printf("The number you have entered is Even.!!!");
else
printf("The number you have entered is Odd.!!!");
getch();
}
25. 25
Output:
Program 2.3.3
To determine about leap year using if else condition.
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
int num;
printf("ntEnter year in the format of 0000:");
scanf("%d",&num);
if(num%4==0)
printf("ntThe Year which you have entered Leap Year.!!!");
else
printf(“ntIts no Leap year..!!!”);
getch();
}
Output:
2.4 Use of If-else-If
Program 2.4.1
To print grade against marks using if-else-if statement.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int marks;
printf("ntEnter Marks:");
scanf("%d",&marks);
if(marks>=80&&marks<=100)
printf("ntYou have obtained Grade 'A' ");
else if(marks>=70&&marks<=79)
26. 26
printf("ntYou have obtained Grade 'B' ");
else if(marks>=60&&marks<=69)
printf("ntYou have obtained Grade 'C' ");
else if(marks>=50&&marks<=59)
printf("ntYou have obtained Grade 'D' ");
else
printf("nt Grade 'F' ");
getch();
}
Output:
2.5 Switch Statement
Program 2.5.1
To determine about day using switch statement.
#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("ntEnter a Day number:");
scanf("%d",&n);
switch(n)
{
case 1:
printf("ntFriday");
break;
case 2:
printf("ntSaturday");
break;
case 3:
printf("ntSunday");
break;
case 4:
printf("ntMonday");
break;
case 5:
printf("ntTuesday");
break;
case 6:
printf("ntWednesday");
break;
27. 27
case 7:
printf("ntThursday");
break;
default:
printf("ntInvalid Day number.");
}
getch();
}
Output:
Program 2.5.2
To find the area or circumference of the circle using switch condition.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float a,c,r;
int num;
printf("ntEnter a number=t 1 for area and 2 for circumference:");
scanf("%d",&num);
printf("ntEnter the Radius:");
scanf("%f",&r);
switch(num)
{
case 1:
printf("ntFor Area.:");
a=3.1416*r*r;
printf("ntThe Area is:%f",a);
break;
case 2:
printf("ntFor Circumference.:");
c=2*3.1416*r;
printf("ntThe Circumference is:%f",c);
break;
default:
printf("ntWrong Number you have entered");
}
getch();
}
28. 28
Output:
// OR
Program 2.5.3
To find the result of arithmetic operators using switch statement.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float a,b,c;
char optr;
printf("ntEnter choice + - * / %: ");
scanf("%c",&optr);
printf("ntEnter first value: ");
scanf("%f",&a);
printf("ntEnter second value: ");
scanf("%f",&b);
switch(optr)
{
case '+':
c=a+b;
printf("ntThe Addition is:%f",c);
break;
case '-':
c=a-b;
printf("ntThe Subtration is:%f",c);
break;
case '*':
c=a*b;
29. 29
printf("ntThe Multiplication is:%f",c);
break;
case '/':
c=a/b;
printf("ntThe Division is:%f",c);
break;
case '%':
c=int(a)%int(b);
printf("ntThe Modulus is:%d",c);
break;
default:
printf("ntWrong Operator..!!!!");
}
getch();
}
Output:
Program 2.5.4
To determine about vowels and consonants using switch statement.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char letter;
printf("ntEnter a letter:);
scanf("%c",&letter);
switch(letter)
{
case „a‟:
case „A‟:
case „e‟:
case „E‟:
case „i‟:
case „I‟:
case „o‟:
case „O‟:
case „u‟:
case „U‟:
printf("ntYou have entered a Vowel");
break;
30. 30
default:
printf("ntYou have entered Consonant");
getch();
}
Output:
2.6 Use of conditional operator
Program 2.6.1
To print maximum number using conditional operator.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int num1,num2,result;
printf("ntEnter first number: ");
scanf("%d",&num1);
printf("ntEnter second number: ");
scanf("%d",&num2);
//result=(num1>num2)?1:0;
result=(num2<num1)?printf("ntFirst number is
greater"):printf("ntSecond number is greater");
getch();
}
Output:
Program 2.6.2
To determine that number is even or odd using conditional operator.
#include<stdio.h>
#include<conio.h>
void main()
{
int num,reslt;
clrscr();
printf("ntEnter a number: ");
31. 31
scanf("%d",&num);
//reslt=(num%2==0)? 0:1;
reslt=(num%2==0)? printf("ntEven"):printf("ntOdd");
getch();
}
Output:
Program 2.6.3
To calculate salary and tells the bonus using conditional operator.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
float sal,bonus,rsal,result;
printf("ntEnter Your current Salary Please:");
scanf("%f",&sal);
result=(sal>10000)?printf("ntYour Bonus is 10%"):printf("ntYour Bonus is 5%");
bonus=sal*10/100;
printf("nntYou will get %f bonus.",bonus);
rsal=sal+bonus;
printf("nntYour revised salary is:%f",rsal);
getch();
}
Output:
32. 32
Exercise of chapter 2:
1. Write a program which prints out the ASCII and hex values of all characters input at the
keyboard terminating only when the character `q' or `Q' is entered.
2. Write a program to keep count of the occurrence of a user specified character in a
stream of characters of known length (e.g. 50 characters) input from the keyboard.
Compare this to the total number of characters input when ignoring all but alphabetic
characters.
Note: The ASCII values of 'A'...'Z' are 65...90 and 'a'...'z' are 97...122.
3. Write a program to find the roots of a user specified quadratic equation. Recall the roots
of ax bx c 02
are
-b b 4ac
2a
2
The user should be informed if the specified quadratic is valid or not and should be
informed how many roots it has, if it has equal or approximately equal roots (b2
==
4ac), if the roots are real (b2
- 4ac > 0) or if the roots are imaginary (b2
- 4ac < 0). In the
case of imaginary roots the value should be presented in the form (x + i y).
Note that C has a standard library function sqrt( ), which returns the square root of its
operand, and whose prototype can be found both in the help system.
4. Write a program that allows the user to read a user specified number of double precision
floating point numbers from the keyboard. Your program should calculate the sum and
the average of the numbers input. Try and ensure that any erroneous input is refused by
your program, e.g. inadvertently entering a non-numeric character etc.
5. Write and simulate a program using the C language:
- Input 1 lowercase ASCII letter (between „a‟ and „z‟)
- Change lowercase ASCII letter to uppercase ASCII letter.
- Output them on screen.
6. Write a program that prompts the user for a string, and prints its reverse.
7. Write a C program which converts the number in seconds to hour, minute and seconds.
If the number is less than 1000, the program should print the message “You should enter
an integer number greater than or equal to 1000”
Sample runs:
Enter the number of seconds> 7322
7322 seconds is equivalent to 2 hours 2 minutes 2 seconds.
Enter the number of seconds> 500
You should enter an integer number greater than or equal to 1000
8. Write a program that reads in five integers and then determines and prints the largest
and the smallest integers in the group. Use only the programming techniques you have
learned in the lecture.
Sample run:
Input 5 integers: 9 4 5 8 7
The largest value is 9
33. 33
The smallest value is 4
9. Write a C program that reads three nonzero integers and determines and prints if they
could be the sides of a right triangle. [Hint: Use Pythagorean Theorem]
Sample runs:
Enter three integers: 3 4 5
The three integers are the sides of a right triangle
Enter three integers: 5 3 4
The three integers are the sides of a right triangle
Enter three integers: 9 4 1
The three integers are not the sides of a right triangle
10. Write a program that reads an integer from keyboard. Assuming it is the number of
month of the year, print out the name of that month. Your program should also check
that the number is a valid month number. If it is not a valid number, you should print a
warning message.
Sample runs:
Enter the month number> 11
NOVEMBER
Enter the month number> 13
Not a valid month number!
34. 34
Chapter# 3
Loop iterations or repetitions
3.1 For loop
Program 3.1.1
To print the message "Red" 10 times using for loop.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
for (int t=0; t<10; t++)
printf("tRed n");
getch();
}
Output:
Program 3.1.2
To print all Capital Alphabetic keys using for loop.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char ch;
for(ch='A';ch<='Z';ch++)
printf("%c ",ch);
getch();
}
35. 35
Output:
Program 3.1.3
To print first five odd numbers using for loop.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
for(int num=1;num<=10;num+=2)
printf("%d",num);
getch();
}
Output:
Program 3.1.4
To print the sum of given numbers using for loop.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int j,k,sum,n;
printf("ntEnter serial numbers:");
scanf("%d",&n);
sum=0;
printf("ntIntegertt sum");
for(j=1;j<=n;j++)
{
sum=sum+j;
printf("nt %dtt %d",j,sum);
}
getch();
}
36. 36
Output:
Program 3.1.5
To calculate the square-root given numbers using for loop.
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float j,sq,n;
printf("ntEnter serial numbers:");
scanf("%f",&n);
printf("tIntegertt Square root");
for(j=1;j<=n;j++)
{
sq=sqrt(j);
printf("nt %f",j);
printf("t %f",sq);
}
getch();
}
Output:
Program 3.1.6
To print the table of the given number using for loop.
#include<stdio.h>
#include<conio.h>
void main()
37. 37
{
clrscr();
int c,r;
printf("ntEnter a number:");
scanf("%d",&c);
for(int n=1;n<=10;n++)
{
printf(“t”);
r=n*c;
printf("%d*%d=%dn",c,n,r);
}
getch();
}
Output:
Program 3.1.7
To find the factorial given number using for loop.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int n,f;
printf("ntEnter number: ");
scanf("%d",&n);
f=1;
for(int c=n;c>=1;c--)
{
f=f*c;
}
printf("ntThe Factorial is: %d",f)
getch();
}
38. 38
Output:
Program 3.1.8
To print a horizontal line of box using for loop.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf(“t”);
for (int t=0; t<10; t++)
{
printf("=");
}
getch();
}
Output:
Program 3.1.9
To print the text within the boxes using multiple for loop.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
for(int i=1;i<=24;i++)
{
printf("#");
}
printf("n");
printf("# University Of Gujrat #n");
for(int j=1;j<=24;j++)
{
printf("#");
}
printf("n");
getch();
}
39. 39
Output:
3.2 Nested loop
Program 3.2.1
To print right side diagonal.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
for(int outer=7;outer>=1;outer--)
{
for(int inner=1;inner<=outer;inner++)
{
printf(" ");
}
printf("#");
printf("n");
}
getch();
}
Output:
Program 3.2.2
To print left side diagonal.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
for(int outer=1;outer<=7;outer++)
{
for(int inner=1;inner<=outer;inner++)
{
printf(" ");
41. 41
Program 3.2.4
To print right side triangle.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
for(int outer=1;outer<=7;outer++)
{
for(int inner=1;inner<=outer;inner++)
{
printf("#");
}
printf("n");
}
getch();
}
Output:
Program 3.2.5
To print down-side triangle.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
for(int outer=7;outer>=1;outer--)
{
for(int inner=1;inner<=outer;inner++)
{
printf("#");
}
printf("n");
}
getch();
}
Output:
42. 42
Program 3.2.6
To print the symbol (#).
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
for(int i=1;i<=5;i++)
{
for(int j=1;j<=5;j++)
{
if(i*j%2==0)
printf("=");
else
printf(" ");
}
printf("n");
}
getch();
}
Output:
Program 3.2.7
To print the sum in a matrix shape using for loop.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
for(int i=1;i<=5;i++)
{
printf(“t”);
for(int j=1;j<=5;j++)
{
43. 43
printf("%d",i+j);
}
printf("n");
}
getch();
}
Output:
3.3 While loop
Program 3.3.1
To display ASCII value until user will not strike the enter key.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char ch='a';
while(ch!='r')
{
printf("n Enter Character:");
ch=getche();
printf("nn The ASCII value of %c=%d",ch,ch);
}
getch();
}
Output:
Program 3.3.2
To count the character until user does not strike the enter key.
#include<stdio.h>
#include<conio.h>
44. 44
void main()
{
clrscr();
int count=0;
printf("ntEnter Phrase:");
while(getche()!='r')
{
count++;
}
printf("ntNumber of Characters= %d",count);
getch();
}
Output:
Program 3.3.3
To prints the number is even or odd until user not strike the “-1”.
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
int i;
while(i!=-1)
{
printf("ntEnter a Number:");
scanf("%d",&i);
if((i%2)==0)
{
printf("ntNumber is even");
}
else
printf("ntNumber is Odd");
}
getch();
}
45. 45
Output:
Program 3.3.4
To find the total of 5 numbers.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int total=0;
int count=0;
while(count<=4)
{
total=total+count;
count++;
printf("nt %d",total);
}
getch();
}
Output:
Program 3.3.5
To count characters, words, and digits using while loop.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int wc=0;
46. 46
int cc=-1;
int dc=0;
char ch;
printf("ntEnter Phrase: ");
while(ch!='r')
{
ch=getche();
if(ch==' ')
wc++;
else if(ch>=48&&ch<=57)
dc++;
else
cc++;
}
printf("nntTotal Characters %d,Total Words %d,Total Digits %d",cc,++wc,dc);
getch();
}
Output:
3.4 Do-While loop
Program 3.4.1
To check marks validation using do while loop.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int score;
do
{
printf("ntEnter Marks: ");
scanf("%d",&score);
if(score<0||score>100)
printf("ntInvalid score, you have entered.!!! nntPlease Enter Valid Marks b/w (1-
100)..");
}
while(score<0||score>100);
if(score>=90&&score<=100)
printf("ntA grade");
else if(score>=80&&score<=90)
printf("ntB grade");
47. 47
else if(score>=70&&score<=80)
printf("ntC grade");
else if(score>=60&&score<=70)
printf("ntD grade");
else if(score>=50&&score<=60)
printf("ntE grade");
else
printf("ntFail");
getch();
}
Output:
Exercise of Chapter 3:
1. Write a program to print out all the Fibonacci numbers using short integer variables until the
numbers become too large to be stored in a short integer variable i.e. until overflow occurs.
a. Use a for loop construction.
b. Use a while loop construction.
Note: Fibonacci numbers are (1,1,2,3,5,8,13,...
2. Write a program which simulates the action of a simple calculator. The program should take
as input two integer numbers then a character which is one of +,-,*,/,%. The numbers should
be then processed according to the operator input and the result printed out. Your program
should correctly intercept any possible erroneous situations such as invalid operations, integer
overflow, and division by zero.
3. Write a program that prompts the user for a sentence, and prints each word on its own line.
4. Write a function that outputs a right isosceles triangle of height and width n, so n = 6 would
look like
*
**
***
****
*****
******
48. 48
5. Write a function that outputs a sideways triangle of height 2n-1 and width n, so the output for
n = 4 would be:
*
**
***
****
***
**
*
6. Write a function that outputs a right-side-up triangle of height n and width 2n-1; the output for
n = 6 would be
*
***
*****
*******
*********
***********
7. Write a function to calculate if a number is prime. Return 1 if it is prime and 0 if it is not a
prime.
8. Execute the following code and look at the result and then try to change the code in some
way.
(1)
void main(){
char i;
clrscr();
for(i=120;i<=128;i++){
printf("%d ",i);
}
getch();
}
Output: Infinite loop
(2)
void main(){
int i;
clrscr();
for(i=0,i++,i<=5;i++,i<=2;i=0,i<=5,i+=3){
printf("%d ",i);
}
getch();
}
Output: 2
(3)
49. 49
void main(){
int i=1;
clrscr();
for(;;){
printf("%d ",i);
}
getch();
}
Output: Infinite loop
(4)
void main(){
int i=2;
clrscr();
for(i=0;i<=3;i++){
static int i;
i=i+8;
}
printf("%d",i);
getch();
}
Output: 4
(5)
extern int j;
void main(){
int i=0;
clrscr();
for(i=0;i<=2;i+=1){
int j=5;
printf("%d ",j);
j++;
}
getch();
}
int j=25;
Output: 5 5 5
(6)
extern int j;
void main(){
int i=0;
clrscr();
for(i=0;i<=2;i+=1){
int j=5;
printf("%d ",j);
j++;
51. 51
Chapter# 4
Functions:
Program 4.1
To demonstrate about the functions.
#include<stdio.h>
#include<conio.h>
void drawline(void);
void main()
{
clrscr();
drawline();
printf("nt#University Of Gujrat#n");
drawline();
printf("n");
drawline();
printf("n");
printf("t# Faculty of Cs & It #n");
drawline();
getch();
}
void drawline(void)
{
printf("t");
for(int i=1;i<=22;i++)
printf("#");
}
Output:
Program 4.2
52. 52
To prints right and left angle triangles using functions.
#include<stdio.h>
#include<conio.h>
void leftangle(void);
void rightangle(void);
void main()
{
clrscr();
leftangle();
rightangle();
getch();
}
void leftangle(void)
{
for(int i=1;i<=7;i++)
{
printf(“t”);
for(int j=1;j<=i;j++)
printf("#");
printf("n");
}
}
void rightangle(void)
{
for(int k=7;k>=1;k--)
{
printf(“t”);
for(int l=1;l<=k;l++)
printf("#");
printf("n");
}
}
Output:
Program 4.3
53. 53
To draws rectangle according to the size of the class room, faculty room, and exam
hall using functions.
#include<stdio.h>
#include<conio.h>
void drawline(int width,int length);
void main()
{
clrscr();
printf("tClass room:n");
drawline(4,9);
printf("tFaculty room:n");
drawline(5,7);
printf("tExam Hall:n");
drawline(5,16);
getch();
}
void drawline(int width,int length)
{
for(int a=1;a<=width;a++)
{
printf("tt");
for(int b=1;b<=length;b++)
printf("#");
printf("n");
}
}
Output:
Program 4.4
To convert the upper to lower case and lower to upper letters.
#include<stdio.h>
#include<conio.h>
char getlc(void);
54. 54
void main()
{
clrscr();
char ch;
printf("ntEnter UpperCase Letter: ");
ch=getlc();
printf("ntResult in lower case letter is:%c",ch);
printf("ntEnter lower Case Letter: ");
ch=getlc();
printf("ntResult in lowe case letter is: %c",ch);
getlc();
getch();
}
char getlc(void)
{
char ch;
ch=getche();
if(ch>=65&&ch<=90)
ch=ch+32;
else
ch=ch-32;
return(ch);
}
Output:
Program 4.5
To calculate the difference between time.
#include<stdio.h>
#include<conio.h>
int getmint(void);
void main()
{
clrscr();
int mint1,mint2;
printf("ntEnter first time(hour:minutes):");
mint1=getmint();
printf("ntEnter second time(hour:minutes):");
mint2=getmint();
printf("ntDifference in Minutes %d",mint2-mint1);
getch();
55. 55
}
int getmint(void)
{
int hour,minut;
scanf("%d:%d",&hour,&minut);
return(hour*60+minut);
}
Output:
Program 4.6
To calculates difference between two dates and result in days.
#include<stdio.h>
#include<conio.h>
int ageday(void);
void main()
{
clrscr();
int d1,d2;
printf("ntEnter first date format year-month-day (5-3-10):");
d1=ageday();
printf("ntEnter Second date format year-month-day (3-3-10):");
d2=ageday();
printf("ntDifference in Days: %d",d2-d1);
getch();
}
int ageday(void)
{
int year,month,days;
scanf("%d-%d-%d",&year,&month,&days);
return((year*365)+(month*30)+days);
}
Output:
56. 56
4.1 Using parameterized functions
Program 4.1.1
To calculate difference between two dates and result in days.
#include<stdio.h>
#include<conio.h>
int ageday(int year,int month,int days);
void main()
{
int d1,d2;
printf("ntThe first date is: 2003-03-10");
d1=ageday(03,03,10);
printf("ntThe Second date is: 2005-03-10):");
d2=ageday(05,03,10);
printf("nntDifference in Days: %d",d2-d1);
getch();
}
int ageday(int year,int month,int days)
{
return((year*365)+(month*30)+days);
}
Output:
Exercise:
1. Write a program that can convert temperatures from the Fahrenheit scale to Celsius and
back. The relationship is C = (5/9)(F - 32). Your program should read a temperature and
which scale is used and convert it to the other, printing out the results. Write one or more
functions to carry out the actual conversion.
2. Write a program that reads in the radius of a circle and prints the circle‟s diameter,
circumference and area. Write functions for appropriate logical tasks in your program. You
should #define all appropriate constants in your program.
3. Write and test a function to convert an unsigned integer to binary notation. Use the sizeof
operator to make the program machine independent i.e. portable.
4. Write and test two functions, one that packs two character variables into one integer variable
and another which unpacks them again to check the result.
57. 57
5. Write and test a circular shift left function for one byte unsigned variables i.e. unsigned
characters.
e.g. 10011100 circular shift left by 2 yields 01110010.
6. An integer is said to be prime if it is divisible only by one and itself. Write a function which
determines whether an integer is prime or not. To test your function write a program that prints
out all prime numbers between 1 and 10,000.
7. Write and test a function to read in a signed integer from the standard input device. Your
function should not be allowed to use the scanf function. The function should have the prototype
int getint( void ) ;
and should be able to accommodate the presence of a minus sign, a plus sign or no sign ( i.e.
positive by default ). Note that the ASCII values of the digits 0 - 9 are consecutive, 48 - 57 and
that if we wish to convert the digit „3‟ for example to an integer we simply subtract the ASCII
value of digit „0‟ from its ASCII value i.e. „3‟ - „0‟ = 51 - 48 = 3.
8. Write and test a function to get a floating point number from the standard input device. The
function should have the prototype
float getfloat( void ) ;
and should be able to accommodate normal floating point notation and exponential notation.
You should make use of the getint() function in exercise 5. to read in the various components of
the floating point number.
9. Write and test a function
double power ( double x, int n );
to calculate the value of x raised to the power of n.
(a) Use your own calculations.
(b) Use the standard library function pow() ( for more information use help system )
paying particular attention to type compatibilities.
10. Write a recursive function to calculate and print out all the Fibonacci values up to and
including the nth
. Recall that the Fibonacci series is 1, 1, 2, 3, 5, 8, 13, ... .To test your program
allow the user to enter the value of n and then print out the series. The program should run
continuously until it is explicitly terminated by the user.
58. 58
Chapter# 5
Arrays:
5.1 Basics of Array
Program 5.1.1
Declaring and printing an array.
#include<conio.h>
#include<stdio.h>
void main()
{
/*declaration and printing an Array*/
clrscr();
/*initializing array without passing the number of subscripts*/
int arr[]={25,30,20,10,35,45};
/*initialization of array with declaring the size*/
int arr1[4]={40,10,5,50};
for(int i=0;i<=5;i++) //printing the array 1
{
printf("The Element no %d is %dn",i+1,arr[i]);
}
for( i=0;i<4;i++)
{
printf("Member %d is %dn",i+1,arr1[i]);
}
getch();
}
Output:
Program 5.1.2
Input data in an array from user.
59. 59
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
/*asking user to input data in array.*/
int arr[5]; //declaring the number of indexes is compulsory here.
for(int i=0;i<5;i++)
{
printf("Enter the number %d: ",i+1);
scanf("%d",&arr[i]);
printf("n");
}
for(i=0;i<=4;i++)
{
printf("Number %d is %d n",i+1,arr[i]);
}
getch();
}
Output:
Program 5.1.3
Finding sum and average of an array members.
#include<stdio.h>
#include<conio.h>
void main()
{
/*Finding sum and average of Array members.*/
clrscr();
int sum=0;
float avg;
int marks[5];
for(int i=0;i<5;i++)
{
60. 60
printf("Enter the marks in subject %d ",i+1);
scanf("%d",&marks[i]);
printf("n");
}
for(i=0;i<=4;i++)
{
sum=sum+marks[i];
}
printf("Sum is %d. n",sum);
avg=sum/5.0;
printf("Average is %f ",avg);
getch();
}
Output:
Program 5.1.4
Print the values of an array bay passing it in function.
#include<conio.h>
#include<stdio.h>
void display(int a);
void main()
{
/*printing the values of array by passing into the function*/
clrscr();
int arr[5];
for(int j=0;j<5;j++)
{
printf("Enter the number %d ",j+1);
scanf("%d",&arr[j]);
printf("n");
}
for(int i=0;i<=4;i++)
{
display(arr[i]); //Passing array members by value
}
61. 61
getch();
}
void display(int a)
{
printf("%dn",a);
}
Output:
Progr5.1.5
Sorting of an array .
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
int arr[5];
for(int a=0;a<=4;a++)
{
printf("Enter the number %d: ",a+1);
scanf("%d",&arr[a]); //scanning the value of array.
}
clrscr();
printf("nn Array before sorting is ");
for(a=0;a<=4;a++)
{
printf("%d ",arr[a]); //printing the value of array before sorting.
}
int temp;
printf("nn After sorting, it is t ");
for(int i=0;i<=4;i++)
{
for(int j=i;j<=4;j++)
{
if(arr[i]>arr[j]) //Decision making
{
temp=arr[i];
62. 62
arr[i]=arr[j]; //values interchanging
arr[j]=temp;
}
}
}
for(int c=0;c<=4;c++) //Final loop
{
printf("%d ",arr[c]); //printing the list after sorting...
}
getch();
}
Output:
5.2 String
5.2.1
Storing and printing a sentence using string.
#include<conio.h>
#include<stdio.h>
void main()
{clrscr();
char name[100];
printf("nEnter any sentence nn");
gets(name);
printf("nYou Enter nn");
puts(name);
getch();
}
Output:
63. 63
5.3 Structure Basics
Program 5.3.1
Declaring structure
#include<conio.h>
#include<stdio.h>
struct xyz
{
char name[10];
};
void main()
{
Clrscr();
xyz name;
printf(“n Enter any sentence without space…….n”);
scanf(“%s”,&name.name);
getch();
}
Output:
Program 5.3.2
Storing more then one values in a structure.
#include<conio.h>
#include<stdio.h>
struct xyz
{
char name[100],address[1000];
int number;
};
void main()
{
64. 64
Clrscr();
xyz name;
printf("nEnter Name of person = ");
gets(name.name);
printf("nEnter Adress of person = ");
gets(name.adress);
printf("nEnter Mobile number of person = ");
scanf("%d",&name.number);
printf("nEntered Name = ");
puts(name.name);
printf("nEntered Adress = ");
puts(name.adress);
printf("nEntered Mobile number = %d",name.number);
getch();
}
Output:
5.4 Array type variable and members of Structure
Program 5.4.1
A program which stores data of 8 students.
#include<conio.h>
#include<stdio.h>
struct rec
{
int sub[6],sum;
float av_stu;
};
void main()
{clrscr();
int i,j;
float av_class=0.0; :
rec student[8];
for(i=0;i<=7;i++)
{student[i].sum=0;
printf("nStudent # %d",i+1);
for(j=0;j<=5;j++)
65. 65
{
printf("nEnter marks of subject %d = ",j+1);
scanf("%d",&student[i].sub[j]);
student[i].sum=student[i].sum+student[i].sub[j];
}
student[i].av_stu=student[i].sum/6.0;
printf("nAverage of student # %d = %.2f ",i+1,student[i].av_stu);
av_class=av_class+student[i].av_stu;
}
av_class=av_class/8.0;
printf("nnAverage Class = %.2f",av_class);
getch();
}
Output:
66. 66
Exercise:
1. Write a program in C to read a set of numbers and store in one-dimensional array and
then to find the largest and the smallest number. Find also the difference between the
two numbers.
2. Write a program in C that uses array to store the telephone no. of 20 students against
their roll no. Input a Roll no, and then search the arrays for the student‟s telephone
number.
3. Find the sum of the numbers of an array
4. Find the highest value in an array
5. Linear Search Technique in an array
6. Write a C program to bubble sort.
7. Write a C program to Selection Sort.
8. Write a C program to Insertion sort.
9. Write a C program to accept a sting as input and convert the lower case letters to
uppercase & vice-versa of that string.
10. Write a program in C to find the number of vowels in each word of a given text using
pointer.
11. String Operation using array:String Copy, catenation, compare, find length
12. Write a C program to accept a sting as input and convert the lower case letters to
uppercase & vice-versa of that string.
13. Write a program in C to read a set of names, roll number, gender, height and weight of
the student from the keyboard and to sort them in an ascending order of name using a
structure.
67. 67
Chapter# 6
Pointers:
6.1 pointer Basics
Program 6.1.1
Direct and indirect value of an variable.
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
/* Basics Of Pointer */
int a=10;
int *ap=&a;
printf("Value in A is %dn",a);
printf("Address of A is %dn",&a);
printf("Indirect value of A is %dn",*ap);
printf("Indirect adderss of A is %dn",ap);
printf("Address of pointer is %dn",&ap);
getch();
}
Output:
Program 6.1.2
Printing the values call by reference and call by value .
#include<conio.h>
#include<stdio.h>
void disp1(int a, int b);
void disp2(int *a, int *b);
void main()
{
clrscr();
/*Pointer Introduction*/
int a=10,b=21;
68. 68
disp1(a,b);
disp2(&a,&b);//also can initialize int ap=&a and int bp=&b and pass ap and bp
getch();
}
void disp1(int a, int b)
{
printf("Calling by value.n%dn%dn",a,b);
}
void disp2(int *a, int *b)
{
printf("Calling by Referance.n%dn%d",*a,*b);
}
Output:
Program 6.1.2
Calculating the area and perimeter of a circle.
#include<conio.h>
#include<stdio.h>
void arp(float , float *, float *);
void main()
{
/*Calculating Area and Perimeter by help of Pointer*/
clrscr();
float rad,a,p;
printf("nEnter the Radius of circle: ");
scanf("%f",&rad);
arp(rad,&a,&p);
printf("Area is %f.n",a);
printf("Perimeter is %f",p);
getch();
}
void arp(float r,float *a, float *p)
{
69. 69
*a=3.14*r*r;
*p=2*3.14*r;
}
Output:
6.2 pointer of Array
Program 6.2.1
Passing array to a function using pointer.
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
int arr[5];
for(int a=0;a<=4;a++)
{
printf("Enter the number %d: ",a+1);
scanf("%d",&arr[a]); //scanning the value of array.
}
clrscr();
printf("nn Array before sorting is ");
for(a=0;a<=4;a++)
{
printf("%d ",arr[a]); //printing the value of array before sorting.
}
int temp;
printf("nn After sorting, it is t ");
for(int i=0;i<=4;i++)
{
for(int j=i;j<=4;j++)
{
if(arr[i]>arr[j]) //Decision making
{
70. 70
temp=arr[i];
arr[i]=arr[j]; //values interchanging
arr[j]=temp;
}
}
}
for(int c=0;c<=4;c++) //Final loop
{
printf("%d ",arr[c]); //printing the list after sorting...
}
getch();
Output:
Exercise:
1. Write a program to display the contents of two dimensional array using pointer.
2. Write a program to demonstrate how a pointer to a function is declared to perform simple
arithmetic operation such as addition, subtraction, multiplication and division of two
numbers.
3. Write a program in C to compare two given strings using pointers.
71. 71
Chapter# 7
File Handling:
7.1 Basics of File Handling
Program 7.1.1
Reading from a file.
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
/* File Handling basics */
FILE *fp=fopen("C:1.txt","r");
if(fp==NULL) Output:
printf("Error");
else
{
char ch;
while(1)
{
ch=fgetc(fp);
printf("%c",ch);
if(ch==EOF)
break;
}
}
fclose(fp);
getch();
}
Output:
Program 7.1.2
Writing to a file.
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
/* File Handling basics */
74. 74
Program 7.1.5
Using Structure and Binary modes in File Handling.
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
void main()
{
clrscr();
/* Using Structure and Binary modes in File Handling */
FILE *fp;
char ch='y';
struct std //structure declaration
{
char name[20];
int age;
float marks;
};
struct std n; //object decleration
fp=fopen("C:Std.dat","wb"); //file opening in write binary mode
if(fp==NULL)
{
puts("Cannot open the source file");
exit(1);
}
while(ch=='y')
{
75. 75
printf("Enter the Name: ");
gets(n.name);
printf("nEnter the age: ");
scanf("%d",&n.age);
printf("nEnter the marks: ");
scanf("%d",&n.marks);
/*writing to file using binary functions and fwrite */
fwrite(&n,sizeof(n),1,fp);
printf("Enter Y if want to add another record.n");
fflush(stdin);
ch=getche();
}
fclose(fp);
getch();
}
Output:
Exercise:
1. Write a program in C to create a product inventory file containing product name, cost
and quantity and then read the product inventory file.
2. Write a program in C using random access file function to create a database of the
students information such roll number, name, sex, address and the program should have
the following facilities.
a. to list the entire database
b. to display a particular record
c. to delete a record.
76. 76
Chapter# 8
Graphics:
Program 8.1.1
Initialization and changing background color.
#include<graphics.h>
#include<conio.h>
void main()
{
clrscr();
int d,m;
d=DETECT;
initgraph(&d,&m,"c:turboc3bgi");
setbkcolor(4);
getch();
closegraph();
}
Output:
Program 8.1.2
Printing text in graphics mode with different colors.
#include<graphics.h>
77. 77
#include<conio.h>
void main()
{clrscr();
int d,m;
d=DETECT;
initgraph(&d,&m,"c:turboc3bgi");
cleardevice();
setbkcolor(4);
outtext("University of Gujrat.");
setcolor(1);
outtext("University of Gujrat.");
setcolor(2);
outtext("University of Gujrat.");
getch();
closegraph();
}
Output:
Program 8.1.3
Printing text in graphics mode with different colors at different position .
#include<graphics.h>
#include<conio.h>
void main()
{clrscr();
int d,m;
d=DETECT;
initgraph(&d,&m,"c:turboc3bgi");
cleardevice();
setbkcolor(4);
outtextxy(10,20,"University of Gujrat.");
setcolor(1);
outtextxy(50,50,"University of Gujrat.");
setcolor(2);
outtextxy(80,80,"University of Gujrat.");
getch();
closegraph();
}
78. 78
Output:
Program 8.1.4
Changing fonts and direction of text in graphics mode.
#include<conio.h>
#include<graphics.h>
void main()
{
int d,m;
d=DETECT;
initgraph(&d,&m,"c:turboc3bgi");
cleardevice();
Setbkcolor(5);
Setcolor(1);
settextstyle(1,0,5);
outtextxy(75,8,“Pakistan.");
Setcolor(15);
settextstyle(1,1,5);
outtextxy(75,40,“Pakistan.");
getch();
closegraph();
}
Output:
79. 79
Program 8.1.5
Blinking text in graphics.
#include<graphics.h>
#include<conio.h>
#include<dos.h>
void main()
{clrscr();
int d,m,i=1;
d=DETECT;
initgraph(&d,&m,"c:turboc3bgi");
cleardevice();
setbkcolor(4);
settextstyle(7,0,4);
while(!kbhit())
{
setcolor(i);
outtextxy(50,100,"University of Gujrat.");
delay(150);
i++;}
getch();
closegraph();
}
Output: