Answer:
#include <iostream>
using namespace std;
void askCat(int &cateto1, int &cateto2);
int AreaRett(int cateto1, int cateto2, int &area);
void stampaRisultato(int area);
int main()
{
int cateto1, cateto2, area;
askCat(cateto1, cateto2);
area = AreaRett(cateto1, cateto2,area);
stampaRisultato(area);
}
void askCat(int &cateto1, int &cateto2)
{
cout << "Inserisci lunghezza cateto1: ";
cin >> cateto1;
cout << "Inserisci lunghezza cateto2: ";
cin >> cateto2;
}
int AreaRett(int cateto1, int cateto2, int &area)
{
area = (cateto1*cateto2)/2;
return area;
}
void stampaRisultato(int area)
{
cout << "L'area del triangolo rettangolo e': " << area << endl;
}
Answer:
Trap is a software interrupt that occurs when there is a system call, while hardware interrupt occurs when a hardware component needs urgent attention.
Explanation:
Interrupt is an input signal that disrupt the activities of a computer system, giving immediate attention to a hardware or software request.
In trap interrupt, the system activities are stop for a routine kernel mode operation, since it has a higher priority than the user mode. At the end of the interrupt, it switches control to the user mode.
The hardware interrupt is a signal from hardware devices like the input/output devices, storage and even peripheral devices that draws an immediate attention of the processor, stopping and saving other activities and executing the event with an interrupt handler.
The answer : do things a human hand can’t do like touch hot things like a hot iron rod and feed animals that would attack a human or eat the hand so (enjoy..)
Have a nice day
By 0dreamwastake0
Answer:
C. text-based interface for working with an operating system
Explanation: