Python, Unity 3D, C++Notepad
Answer:
Explanation:
#Using python to create the list
#first we create an empty list to store our numbers.
import math
data = []
x = 0
InputSum = 0
NumInput=int(input("how many number do you want to add"))
while x <=(NumInput):
Input=int(input("Enter the numbers here"))
data.append(Input)
x = x+1
InputSum = InputSum + Input #this is to add the numbers entered
print("The number you entered are ")
print(*data) #this print the numbers entered
print("The sum of the numbers is", InputSum)
You’d be better off just searching robot parts on google
Answer:
The answer to the given question in the option "a".
Explanation:
In the given c++ program the correct sets value of x and y is option a:
void dClass::setXY(int a, int b) //function implementation
{ //function body.
x = bClass.setX(a); //variable x hold value of setX() function.
b = y; //variable b holds value of y.
}
And other option are not correct that can be described as:
- In option b, x is private variable of the base class that is inherit by the derived class but variable y is not part of the base class. that's why it is wrong.
- In option c, x= a is correct but y=b is not correct. that's why it is wrong.
- In option d we access the value of the private variable x that is a part of the base class but in this we not use any variable that holds its value. that's why it is wrong.
So the answer to this question is the option "a".