Answer:
There is an error in "String s=s1-s2 ";
Explanation:
In java programming, we can subtract subtract two strings variable with "-" operator.Java programming does not support an overload of the '-' operator.In java, we can use only "+" operator to append two strings variable.There is no such method to subtract strings in java.Therefore in the given code String s=s1-s2 will give an "bad operand type" error because we can not subtract one string variable from the second string variable.
I used this from a other.
False
Software is the collection of large program or instruction of codes, which is used to perform some task. It is of two types of system software and application software.
The system software is used as a container for the application software and it is used to handle all other software it is used to operate the system.
Application software is used to perform any operation. This type of software can be used by the user if it is installed on the local machine on any system software
The operating system is also the part of the system software because it is used to operate the system and it is also the soul of the computer system which is also the function of the system software but the above question states that the operating system is not the part of the system software which is not correct. Hence false is the correct answer to the above question.
Explanation:
If your asking the program in modular programming of Q-Basic & in sub procedure then here it is.
I hope it will help you..
<em>-</em><em> </em><em>Regards</em><em> </em><em>Rishab</em><em>.</em><em>.</em>
Answer:
- #include <iostream>
- using namespace std;
- int main() {
- int number =5;
- if (number>=0&& number <=100){
- cout<<"passed.\n";
- }
- else{
- cout<<"failed.\n";
- }
- return 0;
- }
Explanation:
There where multiple errors in the code given in the questions
Line 1: Missing <iostream>
Line 5: The comparison operator was wrong correction is highlighted
Line 12 Missing closing brace for the main function
All the errors have been fixed and the code above compiles