c program C Program

C Program for multiplication of two matrices

#include <stdio.h>#define MAX 10 // Maximum size of the matricesvoid multiplyMatrices(int first[MAX][MAX], int second[MAX][MAX], int result[MAX][MAX], int rowFirst, int columnFirst, int rowSecond, int columnSecond);int main() {int first[MAX][MAX], second[MAX][MAX], result[MAX][MAX];int rowFirst, columnFirst, rowSecond, columnSecond;// Input for the first matrixprintf(“Enter rows and columns for first matrix: “);scanf(“%d %d”, &rowFirst, &columnFirst);printf(“Enter elements of the first matrix:n”);for (int i […]

program to find the largest of n numbers and its location in an array C Program

Program to find the largest of n numbers and its location in an array

#include <stdio.h>#include <conio.h> // Required for clrscr() and getch()int main() {int array[100], maximum, size, c, location = 1;clrscr(); // Clear the screen (only works in some compilers)printf(“Enter the number of elements in the array:n”);scanf(“%d”, &size); // Read the size of the arrayprintf(“Enter %d integers:n”, size);for (c = 0; c < size; c++)scanf(“%d”, &array[c]); // Read […]

Write a program to open a file using fopen() C Program

Write a program to open a file using fopen()

#include<stdio.h> void main() { fopen() file *fp; fp=fopen(“student.DAT”, “r”); if(fp==NULL) { printf(“The file could not be open”); exit(0); } 1. Include Directives #include <stdio.h> #include <stdlib.h> #include <stdio.h>: Includes the Standard Input Output library, which is essential for functions like printf, fopen, and fclose. #include <stdlib.h>: Includes the Standard Library, which is necessary for using […]

c program C Program

Write a C program to read name and marks of n number of students

#include <stdio.h> int main() { char name[50]; int marks, i,n; printf(“Enter number of students”); scanf(“%d”, &n); FILE *fptr; fptr=(fopen(“C:\student.txt”,”a”)); if (fptr==NULL){ printf(“Error!”); exit(1); } for(i=0;i<n;++i) { printf(“For student%dnEnter name: “,i+1); scanf(“%s”,name); printf(“Enter marks”); scanf(“%d”, &marks); fprintf(fptr, “nName: %snMarks=%dn”, name, marks); } fclose(fptr); Return 0; } 1. Include Directives #include <stdio.h>: Includes the Standard Input Output […]

Differentiate between structured semi-structured and unstructured data Business Analytics

What is understood by classification

Classification is the grouping of a data set, based on some predefined criteria. The criteria are usually based on some historic information, and classification tries to classify the data set, based on information received from that historic criteria. An example: A company wants to have a database of 1 million customers in the United States, including […]

What are some of the tools used for statistical analysis Business Analytics

what is understood by logistic regression

Logistic regression is the technique of finding relationships between a set of input variables and an output variable (just like any regression), but the output variable, in this case, would be a binary outcome (think of 0/1 or yes/no). For example: Will there be a traffic jam in a certain location in Bangalore? is a […]

What is understood by neural network Business Analytics

What is understood by neural network

Neural network (also known as artificial neural network) is inspired by the human nervous system: how complex information is absorbed and processed by the system. Just as with humans, neural networks learn by example and are configured to a specific application. Neural networks are used to find patterns in complex data, and thus can forecast […]

What are some of the visualization tools available in the market today Business Analytics

What are some of the visualization tools available in the market today

Visualization tools can be divided into three broad categories:Graphical tools:• MS Excel : Microsoft Excel is the standard offering in the Microsoft Office bundle. It is used mostly by analysts for all lightweight analysis, as well as a visualization tool.• D3.js : A JavaScript library to create graphs in HTML and related web technologies• FusionCharts […]