Answer:
The code to the given question can be given as:
Code:
1)
2 arrays that used to store 10 employee identification number and grosspay amount in parallel and its data-type is int and double.
int Employee_id[10]; //array that store integer value
double Weekly_Gross_Pay[10]; //array that store double value
2)
Define loop for print the details of employees’ identification number and weekly gross pay.
for(int i=0; i<10; i++)
{
cout <<Employee_id[i] <<" " << Weekly_Gross_Pay[i] << endl;
}
Explanation:
The explanation of the above code can be given as:
In Code (1) we declare two array that's data-type is integer and double. In Employee_id array it store the integer values and Weekly_Gross_Pay it store the double value.
In Code(2) It is used to print the value of array. In that code, we used for a loop because of its entry control loop and we know the size of the array. In this loop, we declare a variable (i) and initialized the value 0 and check the condition(i)less than 1 and increment of i. It prints all the 10 values.
Sophia es un robot humanoide (ginoide) desarrollado por la compañía, con sede en Hong Kong, Hanson Robotics. Ha sido diseñada para aprender, adaptarse al comportamiento humano y trabajar con estos satisfactoriamente.
Answer:
Explanation:
Duplicate tuples are not allowed in a relation because the specifications of the constraints of the regional integrity are violated, especially the main constraint that states that there can be no identical values for the attributes of two tuples at any database relation state.
Also, duplicate tuples are not allowed in a relation due to the fact that they lead to redundancy of the data base which in turn, slowing down the speed of the database when data processing such as inserting, querying, updating, deleting, etc are being performed.
By looking at your code, it seems like you're trying to let the user enter positive numbers until the user enters a negative number. To achieve this, you need to indent int(input("Enter a number, negative to stop")) inside the loop.
The second answer choice is correct.