Answer:
the growing interdependence of the world's economies.
Explanation:
it's of all the cultures and populations that crossed the border by trading
Answer:
Check the explanation
Explanation:
INCLUDE Irvine32.inc
TRUE = 1
FALSE = 0
.data
gradeAverage WORD ?
credits WORD ?
oKToRegister BYTE ?
str1 BYTE "Error: Credits must be between 1 and 30" , 0dh,0ah,0
main PROC
call CheckRegs
exit
main ENDP
CheckRegs PROC
push edx
mov OkToRegister,FALSE
; Check credits for valid range 1-30
cmp credits,1 ; credits < 1?
jb E1
cmp credits,30 ; credits > 30?
ja E1
jmp L1 ; credits are ok
; Display error message: credits out of range
E1:
mov edx,OFFSET str1
call WriteString
jmp L4
L1:
cmp gradeAverage,350 ; if gradeAverage > 350
jna L2
mov OkToRegister,TRUE ; OkToRegister = TRUE
jmp L4
L2:
cmp gradeAverage,250 ; elseif gradeAverage > 250
jna L3
cmp credits,16 ; && credits <= 16
jnbe L3
mov OkToRegister,TRUE ; OKToRegister = TRUE
jmp L4
L3:
cmp credits,12 ; elseif credits <= 12
ja L4
mov OkToRegister,TRUE ; OKToRegister = TRUE
L4:
pop edx ; endif
ret
CheckRegs ENDP
END main
Answer:
Following are the code to the given question:
#include <iostream>//header file
using namespace std;
class Window //defining a class Window
{
private:
int width, height;//defining integer variable
public:
friend ostream& operator << (ostream& stm, Window& width)//defining a friend function that takes two parameters
{
return stm<<"a ("<<width.width<<" x "<<width.height<<") window"; //use return keyword that return its values
}
Window(int width, int height): width(width), height(height)//defining parameterized constructor that inherit width and height in its parameters
{}
};
int main() //Main method
{
Window w(80,90);//calling class constructor
cout<<w;//print object value
return 0;
}
Output:
a (80 x 90) window
Explanation:
In the above code, a class "Window" is defined that uses a friend function "ostream& operator" is declared that uses the "ostrea&" as a data type to hold two-variable "stm and w" in its parameter, and declared the parameterized constructor to hold value by inheriting width and height in its parameters.
Inside the main method, a class object is created that calls the constructor and uses the print method to print object value.