Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles on Trending Technologies
Technical articles with clear explanations and examples
Life Cycle Phases of Data Analytics
Life Cycle Phases of Data AnalyticsThe Data Analytics Lifecycle is a cyclic process which explains, in six stages, how information in made, collected, processed, implemented, and analyzed for different objectives.Data DiscoveryThis is the initial phase to set your project's objectives and find ways to achieve a complete data analytics lifecycle. Start with defining your business domain and ensure you have enough resources (time, technology, data, and people) to achieve your goals.The biggest challenge in this phase is to accumulate enough information. You need to draft an analytic plan, which requires some serious leg work.Accumulate resourcesFirst, you have to analyze the ...
Read MoreSoftware Inspection Guiding Principles
Testing Shows the Presence of DefectsEach application must pass through a search of testing phases such as system integration testing, user acceptance testing and beta testing, etc. before they are released into production. Some form of defects will always be found, Regardless of how much testing one conducts.The core purpose of the testing team should focus on finding the defects in an application. The inspection team must use different methods to discover as many errors as they can. It helps in reducing the number of undiscovered errors in a software application. Even though the testing team fails to find any ...
Read MoreHow to create a histogram without bins in base R?
We can set type argument to s in plot function to create a histogram without bins but first we need to create the histogram and store it in an object. For example, if we have a vector say x then the histogram of x can be stored in an object called p then we can use the command plot(c(p$counts,0),type="s") to create the histogram without bins as shown in the below example.Example> x p plot(c(p$counts,0),type="s")Output
Read MoreWrite a C program to maintain cricketer’s information in tabular form using structures
ProblemHow to store the cricketer’s data in tabular form in sorted order based on average runs using structures in C Programming language.SolutionLet’s try to enter the cricketer information such as name, age, no of matches and average runs he scored. It will be entered in the console at runtime using the structure concept.And try to display the information in tabular form in sorted order based on average runs scored by each person so that it is easy to identify each person's details clearly.The logic we used to sort the cricketers in ascending order based on average runs they scored is ...
Read MoreWrite a C program to calculate the average word length of a sentence using while loop
ProblemEnter a sentence at run time and write a code for calculating the average length of words that are present in a sentenceSolutionAlgorithmSTART Step 1: declare character, int and double variables Step 2: Enter any statement Step 3: while loop Check condition stmt[i]=getchar()) != '' True then enter into loop Increment I and call the function at step 5 Step 4: Print the average length return by function From step 5 Step 5: called function calculatewordlength i. declare and initialize ...
Read MoreWrite a C program to print the message in reverse order using for loop in strings
Here we write a program to reverse the sentence without predefined functions. By using for loop, we can easily print statement in reverse order.Program 1#include int main(){ char stmt[100]; int i; printf("enter the message:"); for(i=0;i=0;i--) //printing each char in reverse order putchar(stmt[i]); putchar(''); return 0; }Outputenter the message: Hi welcome to my world the reverse statement is: dlrow ym ot emoclew iHProgram 2Here, we will write a C program to reverse a string using strrev library function −#include #include void main(){ //Declaring two strings// char result[50], string[25]; //Reading string 1 ...
Read MoreHow to print the stars in Diamond pattern using C language?
Here, to print stars in diamond pattern, we are using nested for loops.The logic that we use to print stars in diamond pattern is shown below −//For upper half of the diamond the logic is: for (j = 1; j
Read MoreWrite a C program of library management system using switch case
ProblemHow to store the books-related information of library using C programming.AlgorithmStep 1: Declare a structure which holds data members Step 2: declare variables which are used for loop Step 3: use switch case to work on each module Step 4: case 1- for Adding book information Case 2- for Display book information Case 3- for Finding number for books in library Case 4- for EXITProgram#include #include #include #include struct library{ char bookname[50]; char author[50]; int noofpages; float price; }; int main(){ struct library ...
Read MoreWrite a C program for electing a candidate in Elections by calling functions using Switch case
ProblemHow to cast vote, count, and display the votes for each candidate that participates in elections using C language?SolutionLet’s consider three persons who participated in elections. Here we need to write a code for the following −Cast vote − Selecting a candidate by pressing the cast voteFind vote count − Finding the total number of votes each candidate gains declaring the winner.ExampleAll these operations are performed by calling each function using Switch case −#include #define CANDIDATE_COUNT #define CANDIDATE1 "ABC" #define CANDIDATE2 "XYZ" #define CANDIDATE3 "PQR" int votescount1=0, votescount2=0, votescount3=0; void castvote(){ int choice; printf(" ### Please choose your ...
Read MoreHow to create bar plot in base R with different limits for Y-axis?
To create a bar plot in base R with different limits for Y-axis, we can use ylim argument but generally that behaves badly, such as extending the bars below X-axis. Therefore, we need to fix those things. Check out the below example to understand how it can be done.Example> x barplot(x)OutputExample> barplot(x,ylim=c(300,600))OutputExample> barplot(x,ylim=c(300,600),xpd=FALSE)OutputExample> box(bty="l") Output
Read More