source code is in C++ language

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 14RQ
icon
Related questions
Question

Modify the following program to which you have to add the amplitude (A) frequency (f) energy (E)
this source code is in C++ language
please help me to run the program

#include <iostream>
#include <math.h>
#include <stdlib.h>

main()
{
    int i,j;
    float x;
    for(i=0; i<50; i++)
    {
       for (j=0; j<40+20+exp(-i/20)*sin(i*3.1416/10); j++)
       std:: cout <<' ';
    std:: cout << '*' << std:: endl;
    }
    std:: cout << std:: endl;
    system("pause");
}

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT