wireless slide unit 5 and unit 6
Assalamualaikum,
Please find the latest slide..
http://www.ziddu.com/download/20492660/Unit5.rar.html
http://www.ziddu.com/download/20492738/unit6_1.rar.html
Thanks
C PRO SLIDE UNIT 5 PART 2
Dears,
Here is another part of slide for unit 5.
http://www.ziddu.com/download/20344895/5.4.rar.html
happy programming..
alahai..
this week is the last week for syawal..
Different between char, float, int and double
You always write a programming using char
, int
, float
and double
), and optional specifiers (signed
, unsigned
, short
, long
).
What is the different between this four type??
THE MAIN DIFFERENT IS SIZE.
Type Explanation Type Explanation char smallest addressable unit of the machine that can contain basic character set. It is an integer type. Actual type can be either signed or unsigned depending on implementation signed char same as char
, but guaranteed to be signed.unsigned char same as char
, but guaranteed to be unsigned.short
short int
signed short
signed short intshort signed integer type. At least 16 bits in size. unsigned short
unsigned short intsame as short
, but unsigned.int
signed intbasic signed integer type. At least 16 bits in size. unsigned
unsigned intsame as int
, but unsigned.long
long int
signed long
signed long intlong signed integer type. At least 32 bits in size. unsigned long
unsigned long intsame as long
, but unsigned.long long
long long int
signed long long
signed long long intlong long signed integer type. At least 64 bits in size. Specified since the C99 version of the standard. unsigned long long
unsigned long long intsame as long long
, but unsigned. Specified only in C99 version of the standard.float (single precision) floating-point type. Actual properties unspecified, however on most systems this is IEEE 754 single precision floating point format. double double precision floating-point type. Actual properties unspecified, however on most systems this isIEEE 754 double precision floating point format. long double extended precision floating-point type. Actual properties unspecified. Unlike types float anddouble, it can be either 80-bit floating point format, the non-IEEE "double-double" or IEEE 754 quadruple precision floating-point format if a higher precision format is provided, otherwise it is the same as double. See this page for details.
exercise 4(unit 3) solution
base on the flow chart.
write a coding.
Here is the example which implementing while loop.
#include <stdio.h>
main()
{
int a =1;
float total = 0;
int total_A = 0;
int total_B = 0;
int total_C = 0;
int total_D = 0;
int total_F = 0;
float marks;
while (a<19) // be aware that in the flow chart i just use 11 for 10 value, in the test data it give 18
values.
{
printf("\nInsert the %d's student's marks = ", a);
scanf("%f", &marks);
if (marks>100) {
printf("Invalid marks value(must be less than 100)");
} else if (marks>=90) {
//printf("Grade is: A");
total_A+=1;
} else if (marks>=70) {
//printf("Grade is: B");
total_B+=1;
} else if (marks>=50) {
//printf("Grade is: C");
total_C+=1;
} else if (marks>=35) {
//printf("Grade is: D");
total_D+=1;
} else if (marks>=0) {
//printf("Grade is: F");
total_F+=1;
} else {
printf("Invalid score");
}
a++;
}
printf("A's scorer = %d\n",total_A);
printf("B's scorer = %d\n",total_B);
printf("C's scorer= %d\n",total_C);
printf("D's scorer= %d\n",total_D);
printf("D's scorer= %d\n",total_F)
}
RFID READING MATERIAL
Here are some good information to enhance your knowledge.
http://www.ziddu.com/download/20225195/RFIDTutorial.rar.html