Answer:
The C code is below.
Explanation:
#define amplitude 1
02 #define b 1
03 #define c 200
04 class Sinewave
05 {
06 protected:
07
08 double freq;
09 int y;
10
11 public:
12 Sinewave()
13 {
14
15 }
16 void generateSinewave()
17 {
18 COLORREF yellow = RGB(255,255,0);
19 COLORREF lightblue = RGB(173,216,230);
20
21 // make sure the names match
22 SetConsoleTitle(L"ConGraphics");
23 HWND hWnd = FindWindow(NULL, L"ConGraphics");
24 HDC hDC = GetDC(hWnd);
25
26 //for(int x = 0; x < freq; x++)
27 for(int x = 0;; x++)
28 {
29 // center at y = 200 pixels
30
31 y = amplitude*(int)(sin(x/100.0)*100 + 150);
32 SetPixel(hDC, x, y, lightblue);
33
34
35 }
36
37 }
38 };
Answer:
45359.2 grams are in 100 pounds
Explanation:
Hope this helped, Have a Wonderful Day!!
Answer:
Routers control traffic between networks while switches control traffic within a network
Explanation:
There are different devices involves in computer networking. These devices include hub, switch, router and other components.
Switch is used to connect the computer with in the network. It controls the traffic between different computers within the network. Different computers are connected with each other through different cables with the help of switch.
On the other hand, different LAN's connected through the cable with a router to communicate with each other. This device is used to control the traffic between different networks.
Answer:
public static void drawGraphics (Graphics g, int width, int height) {
int r = Math.round(width/2);
int x = 45;
int y = 30;
g.setColor(Color.RED);
g.fillRect(x, y, width, height);
g.setColor(Color.BLUE);
g.fillOval(Math.round(x/2), Math.round(y/2), r, r);
}
Explanation:
The Java method "drawGraphics" of the Graphics class accepts draws a square with the "fillRect()" method of the Graphics class object and at its center, a circular path is drawn as well.
Answer:
<em>Creation of Dependencies</em> is not the only benefit of trade in the list.
Explanation:
People can provide the access to their resource with the help of trading, it will also increase the satisfaction of customer as he will be able to buy the product of his own choice with satisfactory price, as it breaks the monopoly of local producers.
There many disadvantages of the trade, such as it will create dependencies on other countries and local producers not be able to produce that products, this will lead to increase in imports and will increase the trade deficit of the country.