Skip to main content

Posts

Showing posts from 2017

URI ONLINE JUDGE -1044

Solution of 1044 number ! please do not copy it rather watch it for learning purpose :) #include <iostream> #include <bits/stdc++.h> using namespace std; int main () {     int a,b;     cin >> a >> b;     if(a<b)     {     if(b%a==0 ) cout << "Sao Multiplos" << endl;     else     cout << "Nao sao Multiplos" << endl;     }     else     {         if(a%b==0 ) cout << "Sao Multiplos" << endl;     else     cout << "Nao sao Multiplos" << endl;     }     return 0; } If you do not understand please leave a message here. or mail us mechaboo786@gmail.com or you can leave a message at fb . Link :- https://www.facebook.com/mechaboo/

URI ONLINE JUDGE -1043

Solution of 1043 number ! please do not copy it do it yourself use this as a guideline :) #include <iostream> #include <bits/stdc++.h> using namespace std; int main () {     double a,b,c;     cin >> a >> b >> c;     if(a<b+c&&b<a+c&&c<a+b)     {         cout << "Perimetro = "<<fixed << setprecision(1)<< a+b+c<<endl;     }     else cout << "Area = "<<fixed << setprecision(1)<< (((a+b)/2)*c)<<endl;     return 0; } If you do not understand please leave a message here. or mail us mechaboo786@gmail.com or you can leave a message at fb . Link :- https://www.facebook.com/mechaboo/

URI ONLINE JUDGE - 1042

Solution of 1041 number ! please do not copy it rather watch it for learning purpose :) #include <iostream> #include <bits/stdc++.h> using namespace std; int main () {     int a[3],b[3];     for(int i=0;i<3;i++)cin >> a[i];     for(int i=0;i<3;i++)b[i]=a[i];     sort (a,a+3);     for(int i=0;i<3;i++)cout << a[i] <<endl;     cout <<endl;     for(int i=0;i<3;i++)cout << b[i] <<endl;     return 0; } If you do not understand please leave a message here. or mail us mechaboo786@gmail.com or you can leave a message at fb . Link :- https://www.facebook.com/mechaboo/

URI ONLINE JUDGE - 1041

Solution of 1041 number ! please do not copy it rather watch it for learning purpose :) #include <iostream> #include <bits/stdc++.h> using namespace std; int main () {     double a,b;     cin >> a >> b;     if(a==0.0&&b==0.0)cout << "Origem" << endl;     if(a>0&&b>0) cout << "Q1" << endl;     if(a<0&&b>0) cout << "Q2" << endl;     if(a<0&&b<0) cout << "Q3" << endl;     if(a>0&&b<0) cout << "Q4" << endl;     if(a>0&&b==0)cout << ("Eixo X") << endl;     if(a<0&&b==0)cout << ("Eixo X") << endl;     if(b>0&&a==0)cout << ("Eixo Y") << endl;     if(b<0&&a==0)cout << ("Eixo Y") ...

URI ONLINE JUDGE - 1040

Solution of 1040 number ! please do not copy it rather watch it for learning purpose :) #include <iostream> #include <bits/stdc++.h> using namespace std; int main () {     double a,b,c,d;     cin >> a >> b >> c >> d;     a=(a*2+b*3+4*c+1*d)/10.0;     if(a>=5.00&&a<7.0)     {             cout << "Media: "<<fixed <<setprecision(1)<<a<<endl<<"Aluno em exame."<<endl;             double e;             cin >> e;             cout << "Nota do exame: "<<fixed <<setprecision(1)<<e<<endl;             a=(a+e)/2.0;   ...

URI ONLINE JUDGE - 1038

Solution of 1038 number ! Please try by yourself first than check this one. This is another way of solving the problem. #include <iostream> #include <bits/stdc++.h> using namespace std; int main () {     int a,b;     cin >> a >>b ;     double c[5]={4.00,4.50,5.00,2.00,1.50};     double d=(double)(c[a-1]*b);     cout << "Total: R$ "<<fixed << setprecision(2)<< d <<endl;     return 0; }

C++ input and Output

In this post we will teach you how to take input from the user and how to print. type :- int a; cin >>  a; thats how you can input a number in a variable and for output or print :- You have to type:- int a=10; cout <<a ; lets see a code  below :- #include <iostream> #include <bits/stdc++.h> using namespace std; int main () {     int a;     cin >> a;     cout << a;     return 0; }

Skeleton Of C++

Today we will see the body structure of c++ below is given the structure:- #include <iostream> #include <bits/stdc++.h> using namespace std; int main () {     //your codes goes here     return 0; }   You will start writing your code from main function.

Key to code_Turning flowchart into JAVA code.(in nutshell)

So, you already got the idea of flowchart and  we also posted video in our YouTube channel about the flowchart more are coming in case you did not get it properly. But now I am here today starting off with Java code.I am not going to start all at once so now I am just going to give you some basic about it. To remind you again for to learn code its really very important that you learn flowchart first. As from last blog post and also from the YouTube video you should know by now the basic signs of flow chart keep those in my mind you are going need it later here. First of all what is Java, now the  answer is it's a computer language. -(some)hey,we know that.L O L what a looser boring topic. Me:you sure you want to hear the hard way. -(all)Huh! try me! me:ok,  " Java  is a general-purpose computer  programming language  that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible...

Key to writing Code_Flowcahrt (beginner)

Hello everyone! welcome to our site. In this section we will give you a little idea about flowchart. I am considering you are a Computer Science student, If you are not , nothing to worry about. we will keep it simple and easy. Flow chart is "A  diagram of the sequence of movements or actions of people or things involved in a complex system or activity"(collected from Google) in short  its a construction map for code or anything, it's like sequence work. To give you an example its kind of like this : So,lets start with the basics there are few things to remember before drawing a flow chart: 1.To a flowchart you have to use some stander signs . 2.By giving arrow you have to show the flow. 3.You should not write flowchart in a particular programming language. That's the things to remember while writing a flowchart. Now,here are some signs that are used in flowchart and there meaning:  There are 3 types of Flowchart : 1.Simple ...

Happy New Year

Get up early. Stay focused. Watch less tv. Read more books. Avoid time wasters. Invest in your health. Take calculated risks. Write down your goals. Work smarter, not Harder. Do something you believe in. Look for meaningful relationships. Make 2017 a year of growth !