Answer:
Following are the program to this question:
#include <iostream>//defining header file
using namespace std;
void OR_gate()//defining a method OR_gate
{
bool a,b;//defining bool vaiable
cin>>a>>b;//input value
if(a or b)//use if block to check condition
{
cout<<"1";//print message
}
}
int main()//defining main method
{
OR_gate();//calling method OR_gate
return 0;
}
Output:
0
1
1
Explanation:
In the above program, a method "OR_gate" is declared, and inside the method two bool variable "a and b" is defined, which input the value from the user end.
In the next step, an if block is defined, that uses the or gate to check input value and print the value that is equal to 1, and inside the main method, it call the "OR_gate" method.
To verify a Windows system meets the minimum processor requirements
to install software, use the system control panel window.
<h3>What is System control panel window?</h3>
This is the window which is found in all computers and comprises of the
following:
- Device information such as Hardware and Software.
Checking this window will help to check if the windows system meets the
necessary requirements.
Read more about System control here brainly.com/question/14878948
Answer:
Following are the answer for the given question
for(int i=1;i<=99;++i) // for loop
{
cout<<"EXAM"<<endl; // display the word EXAM
}
Explanation:
In this question we using for loop which is iterating 99 times and print the
word "EXAM " 99 times.
The variable i is initialized by 1 and check the condition if the condition in loop is true it will execute the loop and print "EXAM" .The loop will executed 99 times when the condition in loop is false then loop become terminated.
Following are the program in c++
#include<iostream>// header file
using namespace std;
int main() // main method
{
for(int i=1;i<=99;++i) // for loop
{
cout<<"EXAM"<<endl; // display the word EXAM
}
return 0;
}
Answer:
A. Xcode libraries
Explanation:
We have to find a requirement for developing game applications on devices running Apple’s iOS operating system. For that, I will evaluate each answer.
A. Xcode libraries
Xcode can be generally defined as a development kit or integrated development environment to facilitate the Apple software development. Apple use iOS operating system for its devices. To develop anything compatible with iOS, you generally have to code it using Xcode. Obviously, each development kit includes libraries for project to be built. Therefore, this option is correct.
B. Android Development Kit
Just like Xcode, Android Development Kit is used to build the software for android. It is pretty much comprehensible from its name. So, this option is false.
C. ARM technology and D. advanced microprocessors
These both options are related to hardware and available on both the devices. It is used for overall processing but these options are not that relevant to iOS operating system. Therefore, these options are false too.
So, Correct option is Xcode libraries.
Answer:
p(x,n)
1. if(n==0) [if power is 0]
2. then result =1.
3.else
4. { result=1.
5. for i=1 to n.
6. { result = result * x. } [each time we multiply x once]
7. return result.
8. }
Let's count p(3,3)
3
0, so come to else part.
i=1: result = result *3 = 3
i=2: result = result *3 = 9
i=2: result = result *3 = 27
Explanation:
here the for loop at step 4 takes O(n) time and other steps take constant time. So overall time complexity = O(n)