The connector for ethernet cables is called RJ45. for phone jack is RJ11. Although they look the same, the RJ11 has only 4 leads, as opposed to 9 leads in RJ45. Also, RJ11 is not as wide as RJ45, so the connector does not fit.
Even if it would, the signals would be totally incompatible, so no success can be expected.
The program illustrates the use of loops and conditions.
Loops are used for repetitions, while conditions are used to make decisions
The game program in Python, where comments are used to explain each line is as follows:
#This initializes the point to 100
point = 100
#The following loop is repeated 4 times
for i in range(4):
#This gets the current action
action = input("Hit or Miss: ")
#This following if statement calculates the point
if action.lower() == "hit":
point+=10
else:
point-=20
#This prints the calculated point
print(point)
Read more about loops and conditions at:
brainly.com/question/14284157
Answer:
See explaination
Explanation:
#include<iostream>
#include<stack>
#include <algorithm> // std::make_heap, std::pop_heap, std::push_heap, std::sort_heap
#include <vector> // std::vector
using namespace std;
void StaticArray()
{
unsigned int array[64536];
for(unsigned int i=0;i<64536;i++)
array[i]=i;
}
void Stack()
{
stack<unsigned int> mystack;
for(unsigned int i=0;i<64536;i++)
mystack.push(i);
}
void Heap()
{
unsigned int myints[64536];
for(unsigned int i=0;i<64536;i++)
myints[i]=i;
vector<unsigned int> v(myints,myints+64535);
make_heap (v.begin(),v.end());
push_heap (v.begin(),v.end());
}
int main()
{
StaticArray();
Stack();
Heap();
return 0;
}