Answer:
See explaination
Explanation:
#include <iostream>
using namespace std;
int main()
{
float marks;
cout<<"Enter your grade value :";
cin>>marks;
if(marks>=90)
cout<<"Your grade is 'A'";
else if(marks>=80&& marks<90)
cout<<"Your grade is 'B'";
else if(marks>=70&& marks <=80)
cout<<"Your grade is 'C'";
else if(marks>=60&& marks <70)
cout<<"Your grade is 'D'";
else
cout<<"Your grade is 'F'";
}
A robot may have to avoid an obstacle without coming to a complete stop before turning. If the robot is able to make a wide enough, long turn. instead of stopping, then turning sharply. For example if the robot were to come across an object and can sense said object before hand. it can then take action into turning before it is close enough.
The use of loop in java is to run a block of code for a certain number of times.