1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nimfa-mama [501]
3 years ago
14

For C++ (please make sure it runs properly)

Computers and Technology
1 answer:
Jlenok [28]3 years ago
7 0

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 };

You might be interested in
What is referred to by the phrase “Web 2.0”?
Tresset [83]

Answer:

Web 2.0

the second stage of development of the World Wide Web, characterized especially by the change from static web pages to dynamic or user-generated content and the growth of social media.

Explanation:

It refers to websites that emphasizes user-generated content, ease of use,  compatible with other products, systems, and devices for end users.

4 0
3 years ago
Use the horizontal scroll bar to navigate through the _______.?
soldier1979 [14.2K]
The answer is B, rows. 

You cannot scroll through tabs, you always click them. Worksheets just doesn't make sense and collums are vertical. This leaves your only answer as rows.
7 0
4 years ago
Hey guys,i have a question. 2x + 7x + 1y.how do i simplify it
Nastasia [14]

Answer:

9x+y Lol use photo math :) !!

5 0
3 years ago
2. Sanjay thinks it's okay to plagiarize because he thinks his instructors won't find out. However, it's
Tatiana [17]
The correct answer is B
8 0
3 years ago
Fill in the blank question. Suppose U.S. nominal GDP was $14.9 trillion in 2011 and $15.6 trillion in 2012. The growth rate of n
Juliette [100K]

The growth rate of nominal GDP in the U.S between 2011 to 2012 is 4.7%

<h3>Equation</h3>

An equation is an expression that shows the relationship between two or more variables and numbers.

From the question:

Growth rate = [(15.6 trillion - 14.9 trillion) / (14.9 trillion)] * 100% = 4.7%

The growth rate of nominal GDP in the U.S between 2011 to 2012 is 4.7%

Find out more on Equation at: brainly.com/question/2972832

7 0
2 years ago
Other questions:
  • Finally, Lee wants to modify the table he linked to his presentation. How should he begin?
    8·1 answer
  • What is the name of the malware included in CCleaner?
    11·1 answer
  • Plssss helpppp!!<br><br>Thanks
    11·2 answers
  • How does a content management system differ from a basic wysiwyg web authoring tool??
    11·1 answer
  • 50) Universal Containers has an integration that runs nightly to update the Product (Product2) object in Salesforce with updated
    9·1 answer
  • Suppose a computer has 1GB of memory. Operating System takes 256 MB of memory. Imagine each task takes up 196 MB of memory and t
    12·1 answer
  • Your it department enforces the use of 128-bit encryption on all company transmissions. your department also protects the compan
    13·1 answer
  • g Write a function number_of_pennies() that returns the total number of pennies given a number of dollars and (optionally) a num
    7·1 answer
  • Write a function called changeCharacter that takes three parameters – a character array, its size, and the replacement character
    15·1 answer
  • The _____ of a story describes the time and location of a story.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!