Answer:
getSelectedValue
Explanation:
The item that is clicked in a JList can be retrieved using the getSelectedValue method of JList.
This returns the first selected value in the list. In case of list supports multi selection, it returns the value with the lowest index. In case nothing is selected in the list, getSelectedValue returns null.
The return type of this method is the same as the datatype of the contents of the list. For example, If the list contains String data , the return type will be String.
c because it wil stop it from whatever its doing
Answer:
Pascaline, also called Arithmetic Machine, the first calculator or adding machine to be produced in any quantity and actually used. The Pascaline was designed and built by the French mathematician-philosopher Blaise Pascal between 1642 and 1644.
Explanation: hope that helps
Answer and Example:
Pseudocode is an artificial and informal language that helps programmers develop algorithms.
Pseudocode is a "text-based" detail (algorithmic) design tool. The rules of Pseudocode are reasonably straightforward. All statements showing "dependency" are to be indented.
Pseudocode is understood by the programmers of all types. it enables the programmer to concentrate only on the algorithm part of the code development.
Java would use this.
Answer:
Program is in C++
Explanation:
C++ Code:
#include <iostream>
#include <cctype>
using namespace std;
int main(){
char ch;
do{
cout<<"Enter Character: ";
cin>>ch;
if (isupper(ch)){
cout<<"OK"<<"\n";
}
}
while(ch!='!');
return 0;
}
_______________________________________
Code Explanation
First execute a do while loop as we want user to enter at least first character to check whether its upper case or not. If user enters exclamation character then this loop will terminate along with the program.
To check whether the entered character is upper case or not we will be using isupper(ch) method defined in cctype library.
If the character is upper case then if condition will show Ok by printing it using cout and this program will show nothing if the character is not upper case.
Sample Output
Enter Character: A
OK
Enter Character: b
Enter Character: c
Enter Character: d
Enter Character: E
OK
Enter Character: G
OK
Enter Character: F
OK
Enter Character: !