Posts

Showing posts from January, 2019
Image
Program to calculate area of different shape in C using switch statement #include<stdio.h> void main () { int choice,r,l,b,base,h,area1,area2,area3; clrscr(); printf ("\n you can perform following operation:"); printf ("\n 1. Area of circle:"); printf ("\n 2. Area of rectangle:"); printf ("\n 3. Area of parallelogram;"); printf ("\n Enter your choice:"); scanf ("%d", &choice); switch ( choice ) {        case 1:        printf ("\n Enter value of radius:");        scanf ("%d", &r);        area1 = 3.14*(r*r);        printf ("%d", area1); break;        case 2:        printf ("\n Enter value of length:");        scanf ("%d", &l);        printf ("\n Enter value of breadth:");        scanf ("%d", &b);        area2 = l*b;        printf ("%d", area2); break;        case 3:        printf ("

Program for sorting of array element using bubble sort in C

Image
Program for sorting of array element using bubble sort in C What is sorting ? The term sorting means arrangement of element in particular order i.e in ascending or descending  order is known as sorting. Example:: 45,55,25,35,65 Sorted data :: 25,35,45,55,65 How bubble sort work ? Bubble sort method works on method of comparing two consecutive digits. 45,55,25,35,65 working:: 45,55,25,35,65 45,25,55,35,65 25,45,55,35,65 25,45,35,55,65 25,35,45,55,65 ( sorted data ) Program for bubble sort in c  #include<stdio.h> #include<conio.h> void main () { int i,j,n,t,a[100]; clrscr (); printf ("\n Enter size of array:"); scanf ("%d", &n); printf ("\n Enter element in array:"); for (i=0;i<n;i++) { scanf ("%d", &a[i]); } for (i=o;i<n-1;i++) { for (j=0;j<n-i-1;j++) { if (a[j]>a[j+1]) { t=a[j]; a[j]=a[j+1]; a[j+1]=t; } } } printf (sorted array="); for (i=0;i<n;i++) {

Program to do binary search of element in C

Image
Program to do binary search of element in C What is searching ? It is defined as find data of a element. We use different types of searching techniques for searching an element.                Here we use binary search techniques in C. Program to do binary search of element in C #include<conio.h> void main () { int data[10],beg,mid,end,item,lb,ub,i; clrscr (); printf ("\n Enter 5 element in selected order:"); scanf ("%d", &item); beg=0; end=4; mid=(beg+end)/2; while(beg<=end && data[mid]!=item) {       if (item>data[mid])      {       beg=mid+1;       }       else        {       end=mid-1;        }       mid=(beg+end)/2; } if(beg<end) {    printf("\n location = %d",mid+1); } else {    printf("\n unsuccessful:"); } getch (); } OUTPUT ::  Enter 5 element in selected order = 25,45,65,75,85                  ITEM SEARCHED ; 45

Program in C to print different types of pattern

Image
Program in C to print different types of pattern For printing this type structure in C: * * * * * * * * *  * * *  * *  *  Here as we seen the figure is in row and column form thus we have to declare two variable ( i and j ) for row and column respectively. Here we use for loop statement of c. /* program to print structure */ #include<stdio.h> void main() { int i,j,n ; clrscr () ; printf ("\n Enter number of rows:") ; scanf ("%d", &n) ; for (i=1;i<=n;i++) { for (j=1;j<=n;j++) { if (i<=j) printf ("*") ; else  printf ("  ") ; } printf ("\n") ; } getch () ; } Output screen ::  Enter number of rows :: 5 output ::  * * * * * * * * *  * * *  * *  * 

Program in C to print different types of structure

For printing this type structure in C: * * * * *  * * * * *  * * * * *  * * * * *  * * * * *  Here as we seen the figure is in row and column form thus we have to declare two variable ( i and j ) for row and column respectively. Here we use for loop statement of c. /* program to print structure */ #include<stdio.h> void main() { int i,j,n ; clrscr () ; printf ("\n Enter number of rows:") ; scanf ("%d", &n) ; for (i=1;i<=n;i++) { for (j=1;j<=n;j++) { printf ("*") ; printf ("  ") ; } printf ("\n") ; } getch () ; } Output screen ::  Enter number of rows :: 5 output ::               * * * * *  * * * * *  * * * * *  * * * * *  * * * * *  For printing this type structure in C: *  * * * * * * * * * * * * * * * * * * * * Here as we seen the figure is in row and column form thus we have to declare two variable ( i and j )

How do I schedule a post in a Facebook group

Image
If you are the group owner or an administrator and you want to schedule posts so they go out at specific times and days, you can simply do that when you click the blank field to write a new post and then choose the option “schedule post.” Although usually I do not recommend to schedule posts beforehand in your groups - groups are all about interactions, vulnerability, etc, there are a few instances in which this is a good idea. For example, I have a client that posts a new video with content every Wednesday. We schedule those posts beforehand. If you are tired of commenting on posts of the groups you are a part of, my best advice is that you leave the group and keep only the groups you are truly interested in interacting with :)

The Basics of C Programming 2019

Image
C is a general-purpose, procedural, imperative computer programming language developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system. C is the most widely used computer language. It keeps fluctuating at number one scale of popularity along with Java programming language, which is also equally popular and most widely used among modern software programmers. In 1978, Brian Kernighan and Dennis Ritchie produced the first publicly available description of C, now known as the K&R standard. The UNIX operating system, the C compiler, and essentially all UNIX application programs have been written in C. C has now become a widely used professional language for various reasons. Easy to learn Structured language It produces efficient programs It can handle low-level activities It can be compiled on a variety of computer platforms Why use C C was initially used for system development work, particularly the programs t

6 Robot Technology 2019 - Awesome Robots | Military Robots

Image
1. Robots that deliver There are so many delivery robots at CES that it’s easy to imagine that we’ll all be stumbling over them on the sidewalk — or in the elevator — before long. Zuberi says it’s among the new robot trends with the most promise because the field is drawing on some of the same advances that power self-driving cars. Segway Robotics, part of the same company that makes electric rental scooters for Lime, Jump and Bird, is the latest to get into the delivery game with a new machine it calls Loomo Delivery. The wheeled office robot can avoid obstacles, board elevators and deliver documents to another floor. A similar office courier called the Holabot was unveiled by Chinese startup Shenzhen Pudu Technology. CEO Felix Zhang says his company already has a track record selling robots in China, where its Pudubot robot — which looks like shelves on wheels — navigates busy restaurants as a kind of robotic waiter. Nearly all of these robots use a technology called visu

The world's top 10 robotics science experts

Image
1.) Prof. John J. Leonard - MIT John J. Leonard is an American roboticist and Professor of Mechanical and Ocean Engineering at the Massachusetts Institute of Technology. A member of the MIT Computer Science and Artificial Intelligence Laboratory (CSAIL), Leonard is a renowned researcher in simultaneous localization and mapping, and was the team lead for MIT's team at the 2007 DARPA Urban Challenge, one of the six teams to cross the finish line in the final event, placing fourth overall. 2.) Prof. Dieter Fox - University of Washington Dieter Fox is a German roboticist and a Professor in the Department of Computer Science & Engineering at the University of Washington, Seattle. He is most notable for his contributions to several fields including robotics, Artificial intelligence, Machine learning and Ubiquitous computing. Together with Wolfram Burgard and Sebastian Thrun he is a co-author of the book Probabilistic Robotics. 3.) Prof. Peter Corke - Queensland Uni

Remove broken images and links from WordPress website

Image
Just install a plugin  Broken Link Checker 1. Download the plugin from the WordPress Directory, install and activate the plugin. 2. Click on Link Checker > Settings. The plugin will start the search for broken links in your WordPress. This may take time, depending on how much content you have in your website. The results will be displayed in a neat table. You can click on each result to view the broken link.Using the Settings option, you can adjust the frequency of checking, set email alerts for broken links and stop search engines from following broken links. 3. You can set the broken links right by editing the URL, editing the post to which the URL relates or undertaking a bulk action to unlink all broken links.

how to configure w3 cache plugin

Image
Setting Up W3 Total Cache: So you’re set on trying it out? Great! Here’s how to go about doing it. Of course, if you have any questions please feel free to ask me via the comments! 1. Download It Naturally the first thing you’ll want to do is download it directly via your WordPress plugin interface or via the WordPress.org repository and then upload it via FTP: Just put in "W3 Total Cache" and it should find it. Then, install it: Go for it...! Or if you have to upload manually make sure to put it in your wp-content/plugins folder: I like to do things manually - I'm more in control. One you’ve uploaded it it’s time to get into setting it up! 2. Activate It Once you activate it you may run into a number of issues right out of the gate, just like WP Super Cache. For starters you might have to chmod 777 again because of this “fatal error”: Fatal error? Sad! CHMOD 777! You’ll have to change the permissions on your wp

Fix leverage browser caching wordpress without plugin

Image
Leveraging Browser Cache is really important to improve your web page loading time. Paste code in your .htaccess file <IfModule mod_expires.c>ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType application/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 2 days" </IfModule