OK! So here is the big one. My three students in 9th grade always wanted to learn software engineering since the beginning. And I of course, once upon a time, worked as a software engineer. It was hard however to go to software engineering when they were having so much trouble with their regular academics. So, I postponed and postponed.Until December!
Welcome my three ninth graders who are working on C++ while learning the dreaded Mole Concept!
This is their first independent program, written, compiled, debugged by them:
#include
#include
#include
#include
void main(){
clrscr();
int c;
float weight,mole,amu;
printf("enter the choice 1 if you want find the weight or 2 if you want find the mole");
scanf("%d",&c);
if(c==1){
printf("enter the mole");
scanf("%f",&mole);
printf("enter the amu");
scanf("%f",&amu);
weight=mole*amu;
printf("weight is the %fgram",weight);}
else if(c==2)
{
printf("enter the amu");
scanf("%f",&amu);
printf("enter the weight");
scanf("%f",&weight);
mole=weight/amu;
printf("mole isthe %f",mole);}
getch();
}
When I started six months back, the world was completely upside down for me...This has been one of the biggest high of the year!
Welcome my three ninth graders who are working on C++ while learning the dreaded Mole Concept!
This is their first independent program, written, compiled, debugged by them:
#include
#include
#include
#include
void main(){
clrscr();
int c;
float weight,mole,amu;
printf("enter the choice 1 if you want find the weight or 2 if you want find the mole");
scanf("%d",&c);
if(c==1){
printf("enter the mole");
scanf("%f",&mole);
printf("enter the amu");
scanf("%f",&amu);
weight=mole*amu;
printf("weight is the %fgram",weight);}
else if(c==2)
{
printf("enter the amu");
scanf("%f",&amu);
printf("enter the weight");
scanf("%f",&weight);
mole=weight/amu;
printf("mole isthe %f",mole);}
getch();
}
When I started six months back, the world was completely upside down for me...This has been one of the biggest high of the year!
No comments:
Post a Comment