Answer:
Explanation:
It is assumed that name and age have been declared suitably for storing names and ages. so the following is the code to read in a name and age and printout the message "the age of name is age. "
cin >> Name;
cin >> Age;
cout << "The age of " << Name << " is " << Age << ".";
Answer:
(a) yes, this protocol allows only serializable schedules for transactions as due to this the system maintains it's consistency. As in this protocol a unique transaction id is being assigned and with the help of that transaction id the system would be able to identify the process which has taken place in what particular order. For example, in case of bank transfers
balance = 1000 transaction id 100
write ADD 200 transaction id 101
write SUB 1100 transaction id 102
write ADD 900 transaction id 103
in here with the help of transaction id we can check which operation has happened in which order, if not then some operation will not happen like 102 immediately after 100 and skipping 101
(b) the modified version of this protocol would be to also consider the time of transaction and take this factor in the consideration
A or b i think hope it helps good luck and i hope it helps
The value of result of the code segment is executed is known to be 4.
<h3>Why is the value of the code segment so?</h3>
When the result of is not executed because the condition is said to be false and also when there is a false condition is, the else statement will be said to be true
Therefore, result = result + 2; -> result is brought up by 2 to bring about 4 and as such, the value of result of the code segment is executed is known to be 4.
Learn more about scores from
brainly.com/question/19492935
#SJ1