Modify the following program to which you have to add the amplitude (A) frequency (f) energy (E)

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 1TF
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 4 steps with 2 images

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning