Skip to main content

Posts

Tech Burner Buy New Car Tesla Model X

Car Features All-New Interior Focus on Driving The ultimate focus on driving: no stalks, no shifting. Model X is the best SUV to drive, and the best SUV to be conducted in. Cinematic Experience A 17” touchscreen with left-right tilt offers 2200 x 1300 resolution, true colors,, and exceptional responsiveness for gaming, movies, and more. Wireless Gaming Up to 10 teraflops of processing power enable in-car gaming on par with today's newest consoles. Wireless controller compatibility lets you game from any seat. Stay Connected Multi-device Bluetooth, wireless and USB-c talkin 'for every passenger, with any power to fast-charge your tablets and laptops. Your Best Audio System A 22-speaker, 960-watt audio system with Active Road Noise Reduction offers the best listening experience wherever you are. Model X The Dual Motor All-Wheel Drive platform has the longest range and now delivers incredible power and acceleration. 3.8 s                   ...

Simulation of a Simple Calculator | COMPUTER PROGRAMMING LABORATORY | 21CPL27/17 | C program | Engineering

simple calculater #include<stdio.h> #include<stdlib.h> void main() { float a,b,c; char op; printf("enter the two operands\n"); scanf("%f%f",&a,&b); printf("enter an operator\n"); scanf(" %c",&op); switch (op) { case '+': c=a+b; printf("%f+%f=%f\n",a,b,c); break; case '-': c=a-b; printf("%f-%f=%f\n",a,b,c); break; case '*': c=a*b; printf("%f*%f=%f\n",a,b,c); break; case '/': if(b!=0) { c=a/b; printf("%f/%f=%f\n",a,b,c); exit(0); } else printf("division by 0 error"); break; default: printf("enter valid operation"); } } simple calculater Start  Read 2 numbers as a and b Read operator (+ or – or * or /) a...

All programs computer science 1sem Engineering

Simple calculator Quadratic equation Electricty Bill Binary Search on Integers / Names Matrix multiplication Taylor series Bubble sort.  string operations such as compare, concatenate, string length.  above and below the average   pointers  Binary to Decimal Conversion. engineering computer all programs 1sem 2022

STRING concatenation77

STRINGconcatenation #include<stdio.h> #include<stdlib.h> int length (char str[]); int compare (char str1[],char str2[]); void concatenate (char str1[],char str2[]); void main() { char str1[30],str2[30]; int choice,a,i,j; printf("enter 1-string comparision\n"); printf("enter 2-string length\n"); printf("enter 3-string concatenation\n"); printf("enter 4-exit\n"); scanf("%d",&choice); switch(choice) { case 1:printf("enter string 1\n"); scanf("%s",str1); printf("enter string 2\n"); scanf("%s",str2); a=compare(str1,str2); if(a==0) { printf("%s and%s are identical\n",str1,str2); } else { printf("%s and%s are not identical\n",str1,str2); } break; case 2:pr...

Taylor series77

Taylorseries #include<stdio.h> #include<stdlib.h> #include<math.h> int main() {  int ch,i;  float num,den,x,degree,sum=0,term;  printf("enter 1 for sin(x)\n enter 2 for cos(x)\n");  scanf("%d",&ch);  printf("enter the degree\n");  scanf("%f",&degree);  x=(degree*3.14)/180.0;  switch(ch) {   case 1:num=x;   den=1;   i=2; break;   case 2:num=1;   den=1;   i=1;   break;   default:printf("enter the proper choice\n");   exit(0); }   do {   term=num/den;   num=-num*x*x;   den=den*i*(i+1);   sum=sum+term;   i=i+2; } while(fabs(term)>0.000001);   if(ch==1) {   printf("sin(%f)without using built in function=%f\n",degree,sum);   printf("sin(%f)with using built in function=%f\n",degree,sin(x)); } else {  printf("cos(%f) without using built i...

Binary Search on Integers / Names77

BinarySearch #include<stdio.h> #include<stdlib.h> #include<string.h> void main() { int a[20],low,mid,high,i,n,k,ch; char b[20][20],key[20]; printf("1. binary search for integer\n2. Binary search for string/name\n"); printf("Enter your choice:\t"); scanf("%d",&ch); switch(ch) { case 1: /* For integers */              printf("Enter the number of elements  in ascending order  \n");              scanf("%d",&n);                          printf("Enter the elements\n");              for(i = 0 ; i < n ; i++)                   ...