Because of the more than one month lock down daily wages lost their income. Breadwinners were at homes. So we supplied them dry food items and money. Thanks for all the donors and the best wishers who were with us.
Because of the more than one month lock down daily wages lost their income. Breadwinners were at homes. So we supplied them dry food items and money. Thanks for all the donors and the best wishers who were with us.
/*
Question A 01
*/
#include
int main (void){
int count;
float tot,add;
char type,additional,service;
printf(“Enter Package Type (G,B,S) = “);
scanf(” %c”,&type);
printf(“Enter No Of Participants = “);
scanf(“%d”,&count);
while(type==’G’||type==’g’||type==’B’||type==’b’||type==’S’||type==’s’){
if (type==’G’||type==’g’){
tot=count*20000;
break;
}else if (type==’B’||type==’b’){
tot=count*15000;
break;
}else if (type==’S’||type==’s’){
tot=count*10000;
break;
}else {
printf(“Invalid Type Try Again”);
}
printf(“Enter Package Type (G,B,S) = “);
scanf(” %c”,&type);
}
printf(“Do You Want To Additional Sevice (Y,N) = “);
scanf(” %c”,&additional);
while(additional==’Y’||additional==’N’||additional==’y’||additional==’n’){
if (additional==’Y’||additional==’y’){
printf(“Enter Sevice You Like To Book (C,V,E) = “);
scanf(” %c”,&service);
while(service==’C’||service==’V’||service==’E’||service==’c’||service==’v’||service==’e’){
if (service==’C’||service==’c’){
add=add+5000;
break;
}else if (service==’V’||service==’v’){
add=add+7500;
break;
}else if (service==’E’||service==’e’){
add=add+10000;
break;
}else {
printf(“Invalid Type Try Again”);
}
printf(“Enter Sevice You Like To Book (C,V,E) = “);
scanf(” %c”,&service);
}
}else if (additional==’n’||additional==’N’){
break;
}else {
printf(“Invalid Selection Enter Y or N \n”);
}
printf(“Do You Want To Additional Sevice (Y,N) = “);
scanf(” %c”,&additional);
}
if (count>10){
tot=tot-tot*10/100;
tot=tot+add;
}else{
tot=tot+add;
}
printf(“Total Amount To Be Paid : Rs.%.2f”,tot);
return 0;
}
/*
Question A 01
*/
#include
int main (void){
int count;
float tot,add;
char type,additional,service;
printf(“Enter Package Type (G,B,S) = “);
scanf(” %c”,&type);
printf(“Enter No Of Participants = “);
scanf(“%d”,&count);
while(type==’G’||type==’g’||type==’B’||type==’b’||type==’S’||type==’s’){
if (type==’G’||type==’g’){
tot=count*20000;
break;
}else if (type==’B’||type==’b’){
tot=count*15000;
break;
}else if (type==’S’||type==’s’){
tot=count*10000;
break;
}else {
printf(“Invalid Type Try Again”);
}
printf(“Enter Package Type (G,B,S) = “);
scanf(” %c”,&type);
}
printf(“Do You Want To Additional Sevice (Y,N) = “);
scanf(” %c”,&additional);
while(additional==’Y’||additional==’N’||additional==’y’||additional==’n’){
if (additional==’Y’||additional==’y’){
printf(“Enter Sevice You Like To Book (C,V,E) = “);
scanf(” %c”,&service);
while(service==’C’||service==’V’||service==’E’||service==’c’||service==’v’||service==’e’){
if (service==’C’||service==’c’){
add=add+5000;
break;
}else if (service==’V’||service==’v’){
add=add+7500;
break;
}else if (service==’E’||service==’e’){
add=add+10000;
break;
}else {
printf(“Invalid Type Try Again”);
}
printf(“Enter Sevice You Like To Book (C,V,E) = “);
scanf(” %c”,&service);
}
}else if (additional==’n’||additional==’N’){
break;
}else {
printf(“Invalid Selection Enter Y or N \n”);
}
printf(“Do You Want To Additional Sevice (Y,N) = “);
scanf(” %c”,&additional);
}
if (count>10){
tot=tot-tot*10/100;
tot=tot+add;
}else{
tot=tot+add;
}
printf(“Total Amount To Be Paid : Rs.%.2f”,tot);
return 0;
}
*/
verson A
Question 02 A Eka
*/
#include
int main(void){
float rainfall[7]={0};
int i,j;
float avg,max,tot;
float min=100000000;
for(i=0;i<7;i++){
printf("Input The Rain Fall Of Day %d = ",i+1);
scanf("%f",&rainfall[i]);
}
for(j=0;jrainfall[j]){
min=rainfall[j];
}
if (max<rainfall[j]){
max=rainfall[j];
}
printf("Average Rain Fall : %.2f\n",avg);
printf("Maximum Rain Fall : %.2f\n",max);
printf("Minimum Rain Fall : %.2f\n\n",min);
}
return 0;
}
Session – 02 – A
Question 02 B
*/
#include
int main(void){
int smatrix[4][4]={{0},{0}};
int i,j,k,l,type;
for(i=0;i<4;i++){
printf("Enter Values Of Row %d \n",i+1);
for(j=0;j<4;j++){
printf("Enter Element %d = ",j+1);
scanf("%d",&smatrix[i][j]);
}
printf("\n");
}
for(k=0;k<4;k++){
for(l=0;l<4;l++){
printf("%d ",smatrix[k][l]);
}
printf("\n");
}
if(smatrix[0][l]==smatrix[1][0]){
if(smatrix[2][0]==smatrix[0][2]){
if(smatrix[3][0]==smatrix[0][3]){
if(smatrix[2][1]==smatrix[1][2]){
if(smatrix[3][0]==smatrix[0][3]){
if(smatrix[2][1]==smatrix[1][2]){
if(smatrix[3][1]==smatrix[1][3]){
if(smatrix[3][2]==smatrix[2][3]){
printf("\nThis Matrix Is Symmetric");
}else{
printf("This Matrix Is Not Symmetric");
}
}else{
printf("This Matrix Is Not Symmetric");
}
}else{
printf("This Matrix Is Not Symmetric");
}
}else{
printf("This Matrix Is Not Symmetric");
}
}else{
printf("This Matrix Is Not Symmetric");
}
}else{
printf("This Matrix Is Not Symmetric");
}
}else{
printf("This Matrix Is Not Symmetric");
}
}else{
printf("This Matrix Is Not Symmetric");
}
return 0;
}
Session – 02 – A
Question 03
*/
#include
float calcPayment(int age,float size);
float calcSubsidy(float payment);
void displayDetails(float payment, float subsidy);
int main(void){
int age,size,i;
float payment,subsidy;
for(i=0;i=7){
urea=30*size;
tsp=0*size;
mop=0*size;
}else if(age==6){
urea=50*size;
tsp=0*size;
mop=25*size;
}else if(age>=4){
urea=65*size;
tsp=0*size;
mop=25*size;
}else if(age>=2){
urea=30*size;
tsp=0*size;
mop=0*size;
}else if(age>=0){
urea=0*size;
tsp=35*size;
mop=0*size;
}
paymet=urea*68+tsp*60+mop*75;
return paymet;
}
float calcSubsidy(float payment){
float subsidy;
subsidy=payment*15/100;
}
void displayDetails(float payment, float subsidy){
float total;
total = payment-subsidy;
printf(“Paybel Amount \t Subsidy Amount \n”);
printf(“%.2f\t %.2f\n”,total,subsidy);
}