Skip to main content

Posts

assignment 4

  1. Define a structure in C. Write the syntax for structure declaration with an example. In C, a structure is a user-defined data type that can hold different types of data. A structure is defined using the struct keyword. Syntax for structure declaration: struct structure_name { data_type member1; data_type member2; // More members }; Example: #include <stdio.h> // Defining a structure to store student details struct Student { int roll_no; char name[50]; float marks; }; int main() { // Declaring and initializing a structure variable struct Student student1 = {101, "John Doe", 85.5}; // Displaying the student's details printf("Roll Number: %d\n", student1.roll_no); printf("Name: %s\n", student1.name); printf("Marks: %.2f\n", student1.marks); return 0; } 2. Declare the C structures for the following scenario: (i) College contains the following fields: College code (...
Recent posts

Block chain ,Crypto currencies,Cloud Computing

  Blockchain: Introduction to Blockchain: Blockchain is a decentralized, distributed digital ledger technology that records transactions across many computers so that the recorded data cannot be altered retroactively. It was first conceptualized as the underlying technology behind Bitcoin, but it has since evolved to support various use cases beyond cryptocurrencies. Overview of Blockchain: A blockchain consists of blocks (groups of transactions) linked in a chain in a chronological order. Each block contains a timestamp, transaction data, and a reference to the previous block (the hash). Blockchain operates in a peer-to-peer network, where each participant holds a copy of the entire blockchain. Transactions are verified using consensus mechanisms like Proof of Work (PoW) or Proof of Stake (PoS). The decentralized nature of blockchain ensures transparency, security, and immutability. Features of Blockchain: Decentralization: No single entity has control over the block...

UNIT 3 : Internet: Overview, Architecture, Functioning, Basic Services

  Internet: Overview, Architecture, Functioning, Basic Services Overview of the Internet: The Internet is a global system of interconnected computer networks that communicate using standard protocols, primarily the Internet Protocol (IP) and Transmission Control Protocol (TCP) . It allows for the exchange of data and resources between devices, including computers, smartphones, and various other connected devices. The Internet has revolutionized communication, commerce, education, and entertainment. Architecture of the Internet: The Internet's architecture is structured in layers to manage the flow of data and services: Physical Layer: This includes the hardware components such as routers, switches, fiber optic cables, wireless signals, etc. Data Link Layer: This layer is responsible for the error-free transmission of data between devices connected to the same physical medium. Network Layer (IP Layer): The Internet Protocol (IP) operates at this level, ensuring t...

UNIT 2 : Operating system And Computer Network.

  Operating System (OS) Definition: An Operating System (OS) is a system software that manages computer hardware, software resources, and provides common services for computer programs. It acts as an intermediary between computer hardware and the user, facilitating efficient execution of programs. Functions of an Operating System: Process Management: The OS manages processes in the system, including process scheduling, execution, and termination. It ensures the smooth operation of all processes by allocating CPU time and resources. Memory Management: The OS manages the computer’s memory, allocating and deallocating memory spaces as needed by processes. It also ensures the optimal use of memory and handles virtual memory. File System Management: The OS organizes and manages files on storage devices. It provides access control, storage allocation, and file protection. Device Management: The OS controls hardware devices such as printers, disk drives, and ...

R programming

R is a programming language. R is often used for statistical computing and graphical presentation to analyze and visualize data. Example How to output some text, and how to do a simple calculation in R: "Hello World!" 5 + 5 Result: [1] "Hello World!" [1] 10 Example How you can use R to easily create a graph with numbers from 1 to 10 on both the x and y axis: plot(1:10) Result: What is R R is a popular programming language used for statistical computing and graphical presentation. Its most common use is to analyze and visualize data. Why Use R? It is a great resource for data analysis, data visualization, data science and machine learning It provides many statistical techniques (such as statistical tests, classification, clustering and data reduction) It is easy to draw graphs in R, like pie charts, histograms, box plot, scatter plot, etc++ It works on different platforms (Windows, Mac, Linux) It is open-source and free It has a large community support It has many pa...

ORGANIZATIONAL BEHAVIOUR

 ORGANIZATIONAL BEHAVIOUR The concept of organisational Behaviour Organization is the backbone of management. No management can perform its functions smoothly Without an efficient organization. DEFINITION It's refers to the behavior of individuals and groups within organizations and the interaction between organizational members and their external environment. https://deepanshugautam9899.medium.com/organizational-behaviour-10702e0307ce Nature of organization behaviour  A separate field of study An applied science A total system Approach An Interdisciplinary Approach Normative Science Humanistic and optimistic Approach A separate field of study: A discipline is an accepted science that is based on a theoretical foundation. But ,  organization behaviour  has a multi-interdisciplinary orientation and is, thus, not based on a specific theoretical background. Therefore, it is better reasonable to call  organization behaviour  a separate field of study rather th...

Python program to make simple calculator

Python program to make simple calculator In this example you will learn to create a simple calculator that can add,subtract,multiply or divide depending upon the input from the user. Example: simple calculator by using functions. def   add ( num1 , num2 ):    return  num1+num2   def   subtract  ( num1 , num2 ):    return  num1-num2   def   multiply  ( num1 , num2 ):    return  num1*num2   def   divide  ( num1 , num2 ):    return  num1/num2   print ( "please enter your choice :\n" \          "2.subtract\n" \        "3.multiply\n" \        "4.divide\n" )   ch=int( input ( "please enter your choice :" )) num1 = int( input ( "Enter the first number:" ))   if  ch== 1 :    print (num1+num2) elif ...