Answer:
d) Improper documentation
Explanation:
A flowchart is a type of diagram in which it presents the flow of the work or how the process is to be followed. It is a diagram that represents an algorithm that defines step by step approach to solving the task. In this, there are various boxes that are linked with the arrows
There are various advantages like in this, there is a better communication, coding is to be done in an efficient way, system could be tested also there is a proper documentation
hence, the correct option is d
Answer:
See Explaination
Explanation:
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class GradesAverage {
private static int checkNum(String num) {
int tmpNum;
try {
tmpNum = Integer.valueOf(num);
} catch(IllegalArgumentException e) {
System.out.println("You did not enter an integer.");
return -1;
}
return tmpNum;
}
private static boolean validNum(int num) {
if(num>=0 && num<=100) {
return true;
}
System.out.println("You did not enter an integer, try again
To skip a line, then write the rest like this!
See? Good spacing, right?
cout<<"Enter a number in the range of 1 - 10 ";
cin>>num;
// check if the input is valid
if(num<0 || num > 10)
cout<<"Invalid Number"
// checking for appropriate output
switch(num){
case 1:
cout<< "|";
case 2:
cout<< "||";
case 3:
cout<< "|||";
case 4:
cout<< "|V";
case 5:
cout<< "V";
case 6:
cout<< "V|";
case 7:
cout<< "V||";
case 8:
cout<< "V|||";
case 9:
cout<< "|X";
case 10:
cout<< "X";
default :
cout<<" Nothing found";
}