TAB

One of the works done by our Robotics and Machine Learning division,
SELF-LEVELING QUADCOPTER
Arduino based Quadcopter.
Self-leveling is acheived by the aligning the quadcopter using the readings from the gryo as well as the accelerometer.
A four channel RC transmitter is used to control the movement of the quadcopter when in flight. Kindly subscribe to our YouTube Channel and stay tuned.

Friday 22 January 2016

PRACTICE PROBLEM 1 (20-1 to 27-1) : BAKING A BREAD

#include<stdio.h>
void main()
{
float time=0.0;
char b,s,t;
scanf("%c\n%c\n%c",&b,&s,&t);
if(b=='w')
{
time=time+6782;
if(t=='a')
{
time=time+9000;
}

}
else
{
time=8582;
if(t=='a')
{
time=time+8400;
}
}
if(s=='d')
{
time=time+(time*0.5);
}
printf("%.0f",time);

}
/*P.S.:Use a blank space instead of "\n" in input console if skillrack shows an error indicating "use standard input console"*/

6 comments:

  1. this wrong idea to createing blog mr karthick rajaprabhan .u should stop this.otherwise because of u alot of students wont solve the problems simply they do copy paste .this will lead to a big damage of universities who are using as well s students. because of you .if u didnt stop this tudents become lazy.this is not good .if u want to create blog please create on other topic and improve ur traffic/users .otherwise i will i will complaint in my universsity about this problem

    ReplyDelete
  2. Firstly, stop threatening.Secondly, get the name right.
    Go ahead and complain.They are "PRACTICE problems"
    .. PRACTICE! So I don't see what's the point.... I only offer the solution how you make use of it is up to one's own moral. You should know that there are many ppl who give up interest in coding because of "stupid errors". And as far as copy paste is concerned, people who want to copy paste will any way find someone who will just give them the code.
    And what they will realize is that they cannot find solutions for the assessments being conducted so I believe they will end up learning anyway.
    Now coming to this blog, I meant it to be more interactive with people asking questions in the comments (and not threaten to take the blog down). Now that I don't see that happening, I will modify the way I post (not giving the answer right away).That being said, I will post the answer if many are in need.

    ReplyDelete
  3. Thanks bro, keep up the good work.
    And you're right not everyone is fond of coding, some students do it just because their university compels them to. But some jerks won't get it so simply ignore them. Btw thanks again!

    ReplyDelete
  4. THANK YOU.
    This means a lot to me.

    ReplyDelete
  5. hai bro,
    this code is not getting executed its shows that private test cases failed can u get me the code its urgent today evening 7 the test will be closed for us

    ReplyDelete