Solution 1 Grading your Percentage

Get Into Code provides you with free C++ and Java Course in Hindi/Urdu and also provides you the opportunity to practice your skills to be perfect. In the previous video we have discussed about the Grading Your Percentage.  In this video we are going to provide you the solution of  Challenge 1.
Challenge 1 Grading your Percentage
Most of the time, Student knows every thing about Programming but doesn't know to user his or her ideas to make a program. It is because, they only learn the language and not practice. on internet there a lot of courses to learn but it is hard to find the material to practice your learning skills.

But our Site Get Into Code provides you with the opportunity to practice your skills. So, Go Ahead and write a C++ program to Grade your percentage as follows.
Percentage    Grade
Above 90%      A
80% - 89%       B
70% - 79%       C 
60% - 69%       D
50% - 59%       E
Less than 50% Fail

Solution 1 Grading your Percentage
#include <iostream>
using namespace std;
int main()
{
      int percent;
      cout<<"Enter your percentage\n";
      cin>>percent;

      if (percent>=90) cout<<"Your Grade is A";
      else
            if(percent>=80) cout<<"Your Grade is B";
            else
                 if(percent>=70) cout<<"Your Grade is C";
                 else
                      if(percent>=60) cout<<"Your Grade is D";
                      else
                           if(percent>=50) cout<<"Your Grade is E";
                           else
                            if(percent<50) cout<<"You are Fail";
return 0;
}
If you know Urdu or Hindi Language Watch The Video Below to Understand your Challenge 1's Solution

No comments

Powered by Blogger.